Fix ore drop. Closes #2427

This commit is contained in:
drcrazy 2021-07-05 12:00:54 +03:00
parent 23868443b5
commit 53cd1d8f6b
5 changed files with 220 additions and 70 deletions

View file

@ -2,16 +2,46 @@
"type": "minecraft:block", "type": "minecraft:block",
"pools": [ "pools": [
{ {
"rolls": 1, "rolls": 1.0,
"bonus_rolls": 0.0,
"entries": [ "entries": [
{
"type": "minecraft:alternatives",
"children": [
{ {
"type": "minecraft:item", "type": "minecraft:item",
"name": "techreborn:iridium_ore"
}
],
"conditions": [ "conditions": [
{ {
"condition": "minecraft:survives_explosion" "condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
],
"name": "techreborn:iridium_ore"
},
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops"
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "techreborn:raw_iridium"
}
]
} }
] ]
} }

View file

@ -2,16 +2,46 @@
"type": "minecraft:block", "type": "minecraft:block",
"pools": [ "pools": [
{ {
"rolls": 1, "rolls": 1.0,
"bonus_rolls": 0.0,
"entries": [ "entries": [
{
"type": "minecraft:alternatives",
"children": [
{ {
"type": "minecraft:item", "type": "minecraft:item",
"name": "techreborn:lead_ore"
}
],
"conditions": [ "conditions": [
{ {
"condition": "minecraft:survives_explosion" "condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
],
"name": "techreborn:lead_ore"
},
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops"
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "techreborn:raw_lead"
}
]
} }
] ]
} }

View file

@ -2,16 +2,46 @@
"type": "minecraft:block", "type": "minecraft:block",
"pools": [ "pools": [
{ {
"rolls": 1, "rolls": 1.0,
"bonus_rolls": 0.0,
"entries": [ "entries": [
{
"type": "minecraft:alternatives",
"children": [
{ {
"type": "minecraft:item", "type": "minecraft:item",
"name": "techreborn:silver_ore"
}
],
"conditions": [ "conditions": [
{ {
"condition": "minecraft:survives_explosion" "condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
],
"name": "techreborn:silver_ore"
},
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops"
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "techreborn:raw_silver"
}
]
} }
] ]
} }

View file

@ -2,16 +2,46 @@
"type": "minecraft:block", "type": "minecraft:block",
"pools": [ "pools": [
{ {
"rolls": 1, "rolls": 1.0,
"bonus_rolls": 0.0,
"entries": [ "entries": [
{
"type": "minecraft:alternatives",
"children": [
{ {
"type": "minecraft:item", "type": "minecraft:item",
"name": "techreborn:tin_ore"
}
],
"conditions": [ "conditions": [
{ {
"condition": "minecraft:survives_explosion" "condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
],
"name": "techreborn:tin_ore"
},
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops"
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "techreborn:raw_tin"
}
]
} }
] ]
} }

View file

@ -2,16 +2,46 @@
"type": "minecraft:block", "type": "minecraft:block",
"pools": [ "pools": [
{ {
"rolls": 1, "rolls": 1.0,
"bonus_rolls": 0.0,
"entries": [ "entries": [
{
"type": "minecraft:alternatives",
"children": [
{ {
"type": "minecraft:item", "type": "minecraft:item",
"name": "techreborn:tungsten_ore"
}
],
"conditions": [ "conditions": [
{ {
"condition": "minecraft:survives_explosion" "condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
],
"name": "techreborn:tungsten_ore"
},
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops"
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "techreborn:raw_tungsten"
}
]
} }
] ]
} }