Smashing Rock
粉碎石物品,投掷后破坏范围内的方块。
基本属性
| 属性 | 值 |
|---|---|
| 父类 | BaseItem |
| 注册名 | smashingRock |
| 使用方式 | 右键投掷 |
功能
onItemRightClick 行为:
- 消耗 1 个物品(非创造模式)
- 播放 “random.bow” 音效
- 生成 EntitySmashingRock 实体
投掷实体
EntitySmashingRock (EntityThrowable):
onImpact触发 smash 效果- 半径 5 格,衰减 3
- 破坏目标面方向的方块
smash 行为
smash(world, x, y, z):
- 破坏指定坐标的方块
- 影响范围内低硬度方块
- 播放破坏音效
音效
random.bow- 0.5F 音量,0.4F 音调偏移