The Confettinator 模组

The Confettinator 模组添加了一个方块——Confettinator!
它的运作方式类似于发射器,你可以右键点击来访问其 9 格的物品栏。它可以朝向四个方向中的任意一个,但始终向上发射。与发射器不同,它不会随机选择物品,而是使用物品栏中找到的第一个物品。
当通过红石激活时,它可以射出:
- 五彩纸屑(放入一张纸)
- 彩色纸屑(放入任意染料)
- 彩虹纸屑(放入萤石粉)
- 烟花(与普通发射器相同)
- 烟花火箭(类似烟花,但会立即爆炸)
Confettinator 还有一个用于 红石校准 的特殊侧面。如果你曾经使用过校准过的潜影贝传感器,可能会对此感到熟悉。
当校准侧面的红石粉通电时,它会将任何纸屑(仅纸张物品)、烟花和烟花火箭的颜色更改为对应于红石信号强度的颜色。(注意:以此方式修改的每个烟花中只保留一次爆炸效果,并且移除所有烟花或烟花火箭的任何渐变色)
此模组使用了 Tomate0613 开发的 Confetti Lib。
本项目的源代码可在 获取。
The Confettinator mod

The Confettinator mod adds one block—the Confettinator!
It works similarly to a dispenser, you can access its 9-slot inventory by right-clicking. It can be oriented in any of 4 directions, though it always shoots upwards. Unlike a dispenser, instead of choosing a random item, it uses the first item it finds in the inventory.
When activated with redstone, it can shoot out:
- Confetti (by giving a paper item)
- Colored confetti (by giving any dye item)
- Rainbow confetti (by giving a glowstone dust item)
- Fireworks (like a regular dispenser)
- Firework stars (like a firework but it immediately explodes)
The Confettinator also has one special side for redstone calibration. It may be familiar to you if you've ever used a calibrated sculk sensor.
When a redstone dust has power on the calibration side, it changes the color of any confetti (only as a paper item), firework, and firework star to the color corresponding to the redstone signal strength. (note: only one explosion is kept in each firework modified this way, and any fade color of any firework or firework star is removed)
This mod uses Confetti Lib by Tomate0613.
The source code of this project is available at .
评论 0
登录后参与评分
还没有评论,来抢沙发吧