9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2026-01-04 15:41:38 +00:00

Add formula factory

This commit is contained in:
XiaoMoMi
2025-02-11 23:32:44 +08:00
parent 546725adc4
commit 27d79905d0
4 changed files with 102 additions and 9 deletions

View File

@@ -329,13 +329,14 @@ templates:
conditions:
- type: enchantment
predicate: minecraft:silk_touch>=1
- type: item
item: "{ore_drop}"
functions:
- type: apply_bonus
enchantment: minecraft:fortune
formula: ore_drops
- type: explosion_decay
- type: item
item: "{ore_drop}"
functions:
- type: apply_bonus
enchantment: minecraft:fortune
formula:
type: ore_drops
- type: explosion_decay
loot_table:leaves:
pools:
- rolls: 1