9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-27 10:59:07 +00:00

feat(block): 优化作物方块行为和掉落实现

This commit is contained in:
jhqwqmc
2025-03-28 12:01:13 +08:00
parent 6c94e4f2ab
commit d98032160f
5 changed files with 29 additions and 23 deletions

View File

@@ -43,7 +43,7 @@ items:
model:
template: default:model/simplified_generated
arguments:
path: "minecraft:item/custom/ender_pearl_crop_seed"
path: "minecraft:block/custom/ender_pearl_crop_seed"
behavior:
type: block_item
block: default:ender_pearl_crop
@@ -199,26 +199,19 @@ blocks:
pools:
- rolls: 1
entries:
- type: alternatives
children:
- type: item
item: "default:ender_pearl_crop_seed"
conditions:
- type: survives_explosion
- type: item
item: "minecraft:ender_pearl"
conditions:
- type: crop_ripe
functions:
- type: apply_bonus
enchantment: minecraft:fortune
formula:
type: ore_drops
- type: explosion_decay
count:
type: uniform
min: "1"
max: "5"
- type: item
item: "default:ender_pearl_crop_seed"
conditions:
- type: survives_explosion
- rolls:
type: uniform
min: "1"
max: "5"
entries:
- type: item
item: "minecraft:ender_pearl"
conditions:
- type: crop_ripe
states:
properties:
age: