Fixed ore drops

This commit is contained in:
drcrazy 2019-08-06 14:44:49 +03:00
parent ab0293c7e9
commit 5bbb48b3e2
15 changed files with 478 additions and 546 deletions

View file

@ -1,48 +1,39 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
],
"name": "techreborn:cinnabar_ore"
},
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops"
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "techreborn:cinnabar_dust"
}
]
}
]
}
]
}
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "techreborn:cinnabar_ore",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
]
},
{
"type": "minecraft:loot_table",
"weight": 100,
"name": "techreborn:blocks/ore_drop/cinnabar_ore"
}
]
}
]
}
]
}

View file

@ -0,0 +1,51 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "techreborn:cinnabar_dust",
"functions": [
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops"
},
{
"function": "minecraft:explosion_decay"
}
]
}
]
},
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:redstone",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 0.0,
"max": 1.0,
"type": "minecraft:uniform"
}
},
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops"
},
{
"function": "minecraft:explosion_decay"
}
]
}
]
}
]
}

View file

@ -0,0 +1,59 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "techreborn:ruby_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"
}
]
}
]
},
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "techreborn:red_garnet_gem",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 0.0,
"max": 1.0,
"type": "minecraft:uniform"
}
},
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops"
},
{
"function": "minecraft:explosion_decay"
}
]
}
]
}
]
}

View file

@ -0,0 +1,59 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "techreborn:sapphire_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"
}
]
}
]
},
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "techreborn:peridot_gem",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 0.0,
"max": 1.0,
"type": "minecraft:uniform"
}
},
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops"
},
{
"function": "minecraft:explosion_decay"
}
]
}
]
}
]
}

View file

@ -0,0 +1,51 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "techreborn:sodalite_dust",
"functions": [
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops"
},
{
"function": "minecraft:explosion_decay"
}
]
}
]
},
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "techreborn:aluminum_dust",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 0.0,
"max": 1.0,
"type": "minecraft:uniform"
}
},
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops"
},
{
"function": "minecraft:explosion_decay"
}
]
}
]
}
]
}

View file

@ -0,0 +1,51 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "techreborn:sphalerite_dust",
"functions": [
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops"
},
{
"function": "minecraft:explosion_decay"
}
]
}
]
},
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "techreborn:yellow_garnet_gem",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"min": 0.0,
"max": 1.0,
"type": "minecraft:uniform"
}
},
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops"
},
{
"function": "minecraft:explosion_decay"
}
]
}
]
}
]
}

View file

@ -1,19 +1,48 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "techreborn:pyrite_ore"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "techreborn:pyrite_ore",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
]
},
{
"type": "minecraft:item",
"name": "techreborn:pyrite_dust",
"functions": [
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops"
},
{
"function": "minecraft:explosion_decay"
}
]
}
]
}
]
}
]
}

View file

@ -1,19 +1,39 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "techreborn:ruby_ore"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "techreborn:ruby_ore",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
]
},
{
"type": "minecraft:loot_table",
"weight": 100,
"name": "techreborn:blocks/ore_drop/ruby_ore"
}
]
}
]
}
]
}

View file

@ -1,19 +1,39 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "techreborn:sapphire_ore"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "techreborn:sapphire_ore",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
]
},
{
"type": "minecraft:loot_table",
"weight": 100,
"name": "techreborn:blocks/ore_drop/sapphire_ore"
}
]
}
]
}
]
}

View file

@ -1,19 +1,39 @@
{
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "techreborn:sodalite_ore"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]
}
"type": "minecraft:block",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:alternatives",
"children": [
{
"type": "minecraft:item",
"name": "techreborn:sodalite_ore",
"conditions": [
{
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
]
},
{
"type": "minecraft:loot_table",
"weight": 100,
"name": "techreborn:blocks/ore_drop/sodalite_ore"
}
]
}
]
}
]
}

View file

@ -9,6 +9,7 @@
"children": [
{
"type": "minecraft:item",
"name": "techreborn:sphalerite_ore",
"conditions": [
{
"condition": "minecraft:match_tool",
@ -23,44 +24,12 @@
]
}
}
],
"name": "techreborn:sphalerite_ore"
]
},
{
"type": "minecraft:sequence",
"children": [
{
"type": "minecraft:item",
"functions": [
{
"function": "minecraft:apply_bonus",
"enchantment": "minecraft:fortune",
"formula": "minecraft:ore_drops"
},
{
"function": "minecraft:explosion_decay"
}
],
"name": "techreborn:sphalerite_dust"
},
{
"type": "minecraft:item",
"name": "techreborn:yellow_garnet_gem",
"functions": [
{
"function": "minecraft:explosion_decay"
},
{
"function": "minecraft:set_count",
"count": {
"min": 0.0,
"max": 1.0,
"type": "minecraft:uniform"
}
}
]
}
]
"type": "minecraft:loot_table",
"weight": 100,
"name": "techreborn:blocks/ore_drop/sphalerite_ore"
}
]
}

View file

@ -447,273 +447,6 @@
}
]
},
"techreborn/blocks/BlockOre": {
"className": "techreborn/blocks/BlockOre",
"annotations": [
{
"desc": "Lreborncore/common/registration/RebornRegister;",
"values": [
"value",
"techreborn"
],
"api": 458752
}
],
"fields": [
{
"access": 9,
"name": "rubyMinQuatity",
"desc": "I",
"annotations": [
{
"desc": "Lreborncore/common/registration/config/ConfigRegistry;",
"values": [
"config",
"misc",
"category",
"blocks",
"key",
"rubyMinQuatity",
"comment",
"Minimum quantity of Ruby gems per Ruby ore"
],
"api": 458752
}
]
},
{
"access": 9,
"name": "rubyMaxQuantity",
"desc": "I",
"annotations": [
{
"desc": "Lreborncore/common/registration/config/ConfigRegistry;",
"values": [
"config",
"misc",
"category",
"blocks",
"key",
"rubyMaxQuantity",
"comment",
"Maximum quantity of Ruby gems per Ruby ore"
],
"api": 458752
}
]
},
{
"access": 9,
"name": "sapphireMinQuantity",
"desc": "I",
"annotations": [
{
"desc": "Lreborncore/common/registration/config/ConfigRegistry;",
"values": [
"config",
"misc",
"category",
"blocks",
"key",
"sapphireMinQuantity",
"comment",
"Minimum quantity of Sapphire gems per Sapphire ore"
],
"api": 458752
}
]
},
{
"access": 9,
"name": "sapphireMaxQuantity",
"desc": "I",
"annotations": [
{
"desc": "Lreborncore/common/registration/config/ConfigRegistry;",
"values": [
"config",
"misc",
"category",
"blocks",
"key",
"sapphireMaxQuantity",
"comment",
"Maximum quantity of Sapphire gems per Sapphire ore"
],
"api": 458752
}
]
},
{
"access": 9,
"name": "pyriteMinQuatity",
"desc": "I",
"annotations": [
{
"desc": "Lreborncore/common/registration/config/ConfigRegistry;",
"values": [
"config",
"misc",
"category",
"blocks",
"key",
"pyriteMinQuatity",
"comment",
"Minimum quantity of Pyrite dust per Pyrite ore"
],
"api": 458752
}
]
},
{
"access": 9,
"name": "pyriteMaxQuantity",
"desc": "I",
"annotations": [
{
"desc": "Lreborncore/common/registration/config/ConfigRegistry;",
"values": [
"config",
"misc",
"category",
"blocks",
"key",
"pyriteMaxQuantity",
"comment",
"Maximum quantity of Pyrite dust per Pyrite ore"
],
"api": 458752
}
]
},
{
"access": 9,
"name": "sodaliteMinQuatity",
"desc": "I",
"annotations": [
{
"desc": "Lreborncore/common/registration/config/ConfigRegistry;",
"values": [
"config",
"misc",
"category",
"blocks",
"key",
"sodaliteMinQuatity",
"comment",
"Minimum quantity of Sodalite dust per Sodalite ore"
],
"api": 458752
}
]
},
{
"access": 9,
"name": "sodaliteMaxQuantity",
"desc": "I",
"annotations": [
{
"desc": "Lreborncore/common/registration/config/ConfigRegistry;",
"values": [
"config",
"misc",
"category",
"blocks",
"key",
"sodaliteMaxQuantity",
"comment",
"Maximum quantity of Sodalite dust per Sodalite ore"
],
"api": 458752
}
]
},
{
"access": 9,
"name": "cinnabarMinQuatity",
"desc": "I",
"annotations": [
{
"desc": "Lreborncore/common/registration/config/ConfigRegistry;",
"values": [
"config",
"misc",
"category",
"blocks",
"key",
"cinnabarMinQuatity",
"comment",
"Minimum quantity of Cinnabar dust per Cinnabar ore"
],
"api": 458752
}
]
},
{
"access": 9,
"name": "cinnabarMaxQuantity",
"desc": "I",
"annotations": [
{
"desc": "Lreborncore/common/registration/config/ConfigRegistry;",
"values": [
"config",
"misc",
"category",
"blocks",
"key",
"cinnabarMaxQuantity",
"comment",
"Maximum quantity of Cinnabar dust per Cinnabar ore"
],
"api": 458752
}
]
},
{
"access": 9,
"name": "sphaleriteMinQuatity",
"desc": "I",
"annotations": [
{
"desc": "Lreborncore/common/registration/config/ConfigRegistry;",
"values": [
"config",
"misc",
"category",
"blocks",
"key",
"sphaleriteMinQuatity",
"comment",
"Minimum quantity of Sphalerite dust per Sphalerite ore"
],
"api": 458752
}
]
},
{
"access": 9,
"name": "sphaleriteMaxQuantity",
"desc": "I",
"annotations": [
{
"desc": "Lreborncore/common/registration/config/ConfigRegistry;",
"values": [
"config",
"misc",
"category",
"blocks",
"key",
"sphaleriteMaxQuantity",
"comment",
"Maximum quantity of Sphalerite dust per Sphalerite ore"
],
"api": 458752
}
]
}
]
},
"techreborn/blockentity/machine/tier1/GrinderBlockEntity": {
"className": "techreborn/blockentity/machine/tier1/GrinderBlockEntity",
"annotations": [