Fix peridot ore drop. Closes #2995

This commit is contained in:
drcrazy 2022-07-02 15:18:23 +03:00
parent e6224a62f5
commit 33da2ad59e

View file

@ -1,19 +1,56 @@
{ {
"type": "minecraft:block", "type": "minecraft:block",
"pools": [ "pools": [
{ {
"rolls": 1, "rolls": 1,
"entries": [ "entries": [
{ {
"type": "minecraft:item", "type": "minecraft:alternatives",
"name": "techreborn:peridot_ore" "children": [
} {
], "type": "minecraft:item",
"conditions": [ "name": "techreborn:peridot_ore",
{ "conditions": [
"condition": "minecraft:survives_explosion" {
} "condition": "minecraft:match_tool",
] "predicate": {
} "enchantments": [
] {
} "enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
]
},
{
"type": "minecraft:item",
"name": "techreborn:peridot_gem",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 1.0,
"max": 2.0,
"type": "minecraft:uniform"
}
},
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops"
},
{
"function": "minecraft:explosion_decay"
}
]
}
]
}
]
}
]
}