Magic Particles
一个 Fabric 服务端装饰性模组,允许管理员使用简单的 JSON 文件创建自定义粒子效果。
命令
/mp- 列出所有可用的魔法粒子 -magic-particles.root/mp set <id>- 设置当前使用的魔法粒子 -magic-particles.particle/mp disable- 禁用当前使用的魔法粒子 -magic-particles.disable/mp reload- 重新加载魔法粒子和消息配置 -magic-particles.reload
自定义粒子
本模组包含超过 40 种默认粒子,可作为理解文件格式的有用示例。
JSON 格式
每个魔法粒子类型都需要一个易于人类阅读的名称以及它由哪些粒子组成的列表。
根节点
{
"name": "Some name", // 人类可读的名称
"particles": [
// 粒子定义
]
}
粒子定义
目前共有 3 种粒子定义类型(simple、image 和 bezier)。除了各自特有的属性外,它们还共享一些公共值。
Simple(基础)
{
"type": "simple",
"count": 1, // 粒子数量(可选)
"pos": [1.0, 2.0, 0.0], // 相对于原点的偏移量(受旋转影响)
"delta": [0.1, 0.1, 0.1], // 粒子区域大小(可选)
"speed": 0, // 粒子速度参数,部分粒子类型会使用此参数(可选)
"particle_type": {
"type": "minecraft:angry_villager" // 粒子类型:https://minecraft.wiki/w/Particles_(Java_Edition)#Types_of_particles
// 某些粒子类型具有额外的属性,需要在此处指定
},
"anchor": "feet", // 粒子原点 ["feet"|"eyes"](可选)
"origin": [0.0, 0.5, 0.0], // 相对于原点的偏移量(可选)
"billboard": "fixed" // 哪个旋转轴应影响 "pos" ["fixed", "vertical", "horizontal", "center"](可选)
}
Image(图像)
{
"type": "image",
"image": "drex.png", // 图片路径,图片需放置在 config/magic-particles/images/<image> 目录下
"size_x": 0.8, // 粒子图像的宽度
"size_y": 0.8, // 粒子图像的高度
"pixel_size": 0.6, // 单个像素粒子的大小
"pos": [1.0, 2.0, 0.0], // 相对于原点的偏移量(受旋转影响)
"anchor": "feet", // 粒子原点 ["feet"|"eyes"](可选)
"origin": [0.0, 0.5, 0.0], // 相对于原点的偏移量(可选)
"billboard": "fixed" // 哪个旋转轴应影响 "pos" ["fixed", "vertical", "horizontal", "center"](可选)
}
Bezier(贝塞尔曲线)
(不建议使用此类型,创建所需形状的图像并使用 image 类型会更简单)
Magic Particles
A fabric server side cosmetics mod, that allows administrator to create custom particles using simple json files
Commands
/mp- List all available magic particles -magic-particles.root/mp set <id>- Set current magic particle -magic-particles.particle/mp disable- Disable current magic particle -magic-particles.disable/mp reload- Reload magic particles and messages -magic-particles.reload
Custom Particles
This mod includes more than 40 default particles, which can be useful example files for understanding the format.
JSON Format
Each magic particle type needs a human friendly name and a list of particles it consists of
Root
{
"name": "Some name", // Human friendly name
"particles": [
// Particle definitions
]
}
Particle definition
There are currently 3 particle definition types (simple, image and bezier). All of these share a couple of common values in addition to their specialized ones.
Simple
{
"type": "simple",
"count": 1, // Amount of particles (optional)
"pos": [1.0, 2.0, 0.0], // Offset from origin (affected by rotation)
"delta": [0.1, 0.1, 0.1], // Particle area size (optional)
"speed": 0, // Particle speed parameter, used by some particle types (optional)
"particle_type": {
"type": "minecraft:angry_villager" // Particle type: https://minecraft.wiki/w/Particles_(Java_Edition)#Types_of_particles
// Some particles types have extra attributes, which need to be specified here
},
"anchor": "feet", // The particle origin ["feet"|"eyes"] (optional)
"origin": [0.0, 0.5, 0.0], // Offset from origin (optional)
"billboard": "fixed" // What rotation axis should affect "pos" ["fixed", "vertical", "horizontal", "center"] (optional)
}
Image
{
"type": "image",
"image": "drex.png", // Path to the image, the image needs to be in config/magic-particles/images/<image>
"size_x": 0.8, // The width of the particle image
"size_y": 0.8, // The height of the particle image
"pixel_size": 0.6, // The size of each individual particle
"pos": [1.0, 2.0, 0.0], // Offset from origin (affected by rotation)
"anchor": "feet", // The particle origin ["feet"|"eyes"] (optional)
"origin": [0.0, 0.5, 0.0], // Offset from origin (optional)
"billboard": "fixed" // What rotation axis should affect "pos" ["fixed", "vertical", "horizontal", "center"] (optional)
}
Bezier
(Can't really recommend to use this, creating an image of the desired shape and using the image type is easier)
下载 MagicParticles
下载 MagicParticles
下载 MagicParticles
下载 MagicParticles
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 MagicParticles
下载 MagicParticles
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 MagicParticles
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 MagicParticles
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 MagicParticles
下载 MagicParticles
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
更改
- 建议移除对话警告提示
- 移除了 message-api 库
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
适用于 MC 1.18+ 的 Effekseer 加载器
模组
? 使用命令保存和加载玩家或他人的背包/套装。
模组
对 Minecraft 的沙漠神殿进行了全面重新设计!
模组
感受痛苦!
模组
TerraFirmaCraft (TFC) 是一个全面转换模组,对生存模式进行了彻底的改造与重新设计。
评论 0
登录后参与评分
还没有评论,来抢沙发吧