关于
ParticleGenerator 是一款主要为建筑者和地图制作者打造的 Minecraft 模组。它在游戏中添加了粒子生成器方块。
粒子生成器方块高度可定制,其使用方式比命令方块更加便捷高效。它允许你从一个方块生成多种粒子,或设置生成粒子的位置和速度随机化。
用法
命令
/pgen show - 显示粒子生成器的边缘
/pgen hide - 隐藏粒子生成器的边缘
/pgen info - 显示模组信息
/pgen help - 显示帮助消息
粒子生成器方块状态
position=[center(默认)/top/bottom] - 决定粒子生成的位置
粒子生成器 NBT 标签
Particles:[{...}] - 复合体列表:
id:"" - 粒子 ID
Motion:[x,y,z] - 粒子速度 [格/刻](在大多数情况下)
MotionRand:[x,y,z] - "Motion" 值的随机化
PositionOffset:[x,y,z] - 粒子位置的偏移量
PositionRand:[x,y,z] - 粒子位置的随机化
Interval:int - 粒子之间的间隔 [刻]
Probability:double - 粒子生成的概率
ParticleCount:int - 生成时的粒子数量
ParticleMaxCount:int - 最大粒子数量
SignalMin:int - 激活粒子所需的最小红石信号
SignalMax:int - 激活粒子所需的最大红石信号
AdditionalTags:{} - 额外标签(如方块 ID)
UseAnimateTick:bool - 在 animateTick 时生成粒子
*对于位置和运动,随机值范围为 val-(rand/2) 到 val+(rand/2)。
*对于粒子数量,随机值范围为从 ParticleCount 到 ParticleMaxCount。
*默认情况下,UseAnimateTick 标签设置为 false。这意味着粒子会尝试每刻生成一次,其生成率可以通过 Interval 和 Probability 标签进行操控。当设置为 true 时,粒子将在调用 animateTick 方法时尝试生成。这将允许你重现例如火把和使用 animateTick 生成粒子的许多其他方块的粒子生成率。
*如果你想生成需要额外方块或物品 ID 的粒子(例如 block 粒子),请添加标签 AdditionalTags:{id:"some_block_id"}。
实用的 Minecraft 方块物品 NBT 标签 (1.20.5 之前)
BlockStateTag:{...} - 指定方块状态
BlockEntityTag:{...} - 指定方块 NBT 标签
实用的 Minecraft 方块物品数据组件 (1.20.5+)
block_state:{...} - 指定方块状态
block_entity_data:{id:"pgen:particle_generator",...} - 指定方块 NBT 标签
提示
你可以在 找到包含其 ID 的粒子列表。
如果你想复制粒子生成器方块(带有 NBT 数据),请在按下鼠标中键时按住 Control 键。
示例
简单的烟雾粒子生成器

使用 /setblock: /setblock ~ ~ ~ pgen:particle_generator{Particles:[{id:"smoke"}],UseAnimateTick:true}
使用 /give (1.20.5 之前): /give @p pgen:particle_generator{BlockEntityTag:{Particles:[{id:"smoke"}],UseAnimateTick:true}}
使用 /give (1.20.5+): /give @p pgen:particle_generator[block_entity_data={id:"pgen:particle_generator",Particles:[{id:"smoke"}],UseAnimateTick:true}]
类似营火的粒子生成器

使用 /setblock: /setblock ~ ~ ~ pgen:particle_generator[position=bottom]{Particles:[{id:"campfire_cosy_smoke",Motion:[0.0,0.07,0.0],PositionRand:[0.67,0.0,0.67],ParticleCount:2,ParticleMaxCount:3,Probability:0.11}]}
使用 /give (1.20.5 之前): /give @p pgen:particle_generator{BlockStateTag:{position:"bottom"},BlockEntityTag:{Particles:[{id:"campfire_cosy_smoke",Motion:[0.0,0.07,0.0],PositionRand:[0.67,0.0,0.67],ParticleCount:2,ParticleMaxCount:3,Probability:0.11}]}}
使用 /give (1.20.5+): /give @p pgen:particle_generator[block_state={position:bottom},block_entity_data={id:"pgen:particle_generator",Particles:[{id:"campfire_cosy_smoke",Motion:[0.0,0.07,0.0],PositionRand:[0.67,0.0,0.67],ParticleCount:2,ParticleMaxCount:3,Probability:0.11}]}]
你可以轻松通过使用 /pgen help 获取这些命令,并将其用作模板。
About
ParticleGenerator is a Minecraft mod created mainly for builders and mapmakers. It adds Particle Generator block into the game.
Particle Generator block is highly customisable and using it is much more convenient and efficient than using command blocks. It allows you to generate multiple particles from one block or set generated particles position and speed randomization.
Usage
Commands
/pgen show - Shows edges of Particle Generators
/pgen hide - Hides edges of Particle Generators
/pgen info - Displays information about mod
/pgen help - Displays the help message with
Particle Generator block states
position=[center(default)/top/bottom] - determines position of particles generation
Particle Generator NBT tags
Particles:[{...}] - list of compounds:
id:"" - particle id
Motion:[x,y,z] - particle velocities [blocks/tick] (in most cases)
MotionRand:[x,y,z] - randomization of "Motion" values
PositionOffset:[x,y,z] - offset of particle positions
PositionRand:[x,y,z] - randomization of particle positions
Interval:int - interval between particles [ticks]
Probability:double - probability of particle spawning
ParticleCount:int - number of particles when spawned
ParticleMaxCount:int - maximum number of particles
SignalMin:int - minimal redstone signal to activate particle
SignalMax:int - maximal redstone signal to activate particle
AdditionalTags:{} - additional tags (like block id)
UseAnimateTick:bool - spawn particles on animateTick
*For position and motion, random value is in range from val-(rand/2) to val+(rand/2).
*For particle count, random value is in range from ParticleCount to ParticleMaxCount.
*By default UseAnimateTick tag is set to false. That means particles will try to spawn every tick and their spawn rate can be manipulated using Interval and Propability tags. When set to true particles will try to spawn when animateTick method is called. This will allow you to recreate particle spawn rate of for example torches and many other blocks that uses animateTick to spawn particles.
*If you want to spawn particles that require additional block or item ID (like block particle) add tag AdditionalTags:{id:"some_block_id"}.
Useful Minecraft BlockItem NBT tags (pre-1.20.5)
BlockStateTag:{...} - specifies block states
BlockEntityTag:{...} - specifies block NBT tags
Useful Minecraft BlockItem data components (1.20.5+)
block_state:{...} - specifies block states
block_entity_data:{id:"pgen:particle_generator",...} - specifies block NBT tags
Tips
You can find list of particles with its IDs on
If you want to copy Particle Generator block (with NBT data) hold control key when pressing MMB.
Examples
Simple smoke Particle Generator

Using /setblock: /setblock ~ ~ ~ pgen:particle_generator{Particles:[{id:"smoke"}],UseAnimateTick:true}
Using /give (pre-1.20.5): /give @p pgen:particle_generator{BlockEntityTag:{Particles:[{id:"smoke"}],UseAnimateTick:true}}
Using /give (1.20.5+): /give @p pgen:particle_generator[block_entity_data={id:"pgen:particle_generator",Particles:[{id:"smoke"}],UseAnimateTick:true}]
Particle Generator like campfire

Using /setblock: /setblock ~ ~ ~ pgen:particle_generator[position=bottom]{Particles:[{id:"campfire_cosy_smoke",Motion:[0.0,0.07,0.0],PositionRand:[0.67,0.0,0.67],ParticleCount:2,ParticleMaxCount:3,Probability:0.11}]}
Using /give (pre-1.20.5): /give @p pgen:particle_generator{BlockStateTag:{position:"bottom"},BlockEntityTag:{Particles:[{id:"campfire_cosy_smoke",Motion:[0.0,0.07,0.0],PositionRand:[0.67,0.0,0.67],ParticleCount:2,ParticleMaxCount:3,Probability:0.11}]}}
Using /give (1.20.5+): /give @p pgen:particle_generator[block_state={position:bottom},block_entity_data={id:"pgen:particle_generator",Particles:[{id:"campfire_cosy_smoke",Motion:[0.0,0.07,0.0],PositionRand:[0.67,0.0,0.67],ParticleCount:2,ParticleMaxCount:3,Probability:0.11}]}]
You can easily get these commands by using /pgen help and use them as a template.
评论 0
登录后参与评分
还没有评论,来抢沙发吧