Fixed ore drops
This commit is contained in:
parent
ab0293c7e9
commit
5bbb48b3e2
15 changed files with 478 additions and 546 deletions
|
@ -1,87 +0,0 @@
|
|||
/*
|
||||
* This file is part of TechReborn, licensed under the MIT License (MIT).
|
||||
*
|
||||
* Copyright (c) 2018 TechReborn
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in all
|
||||
* copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
package techreborn.blocks;
|
||||
|
||||
import net.fabricmc.fabric.api.block.FabricBlockSettings;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.Material;
|
||||
import reborncore.common.registration.RebornRegister;
|
||||
import reborncore.common.registration.config.ConfigRegistry;
|
||||
import techreborn.TechReborn;
|
||||
|
||||
@RebornRegister(TechReborn.MOD_ID)
|
||||
public class BlockOre extends Block {
|
||||
|
||||
@ConfigRegistry(config = "misc", category = "blocks", key = "rubyMinQuatity", comment = "Minimum quantity of Ruby gems per Ruby ore")
|
||||
public static int rubyMinQuatity = 1;
|
||||
@ConfigRegistry(config = "misc", category = "blocks", key = "rubyMaxQuantity", comment = "Maximum quantity of Ruby gems per Ruby ore")
|
||||
public static int rubyMaxQuantity = 2;
|
||||
@ConfigRegistry(config = "misc", category = "blocks", key = "sapphireMinQuantity", comment = "Minimum quantity of Sapphire gems per Sapphire ore")
|
||||
public static int sapphireMinQuantity = 1;
|
||||
@ConfigRegistry(config = "misc", category = "blocks", key = "sapphireMaxQuantity", comment = "Maximum quantity of Sapphire gems per Sapphire ore")
|
||||
public static int sapphireMaxQuantity = 2;
|
||||
@ConfigRegistry(config = "misc", category = "blocks", key = "pyriteMinQuatity", comment = "Minimum quantity of Pyrite dust per Pyrite ore")
|
||||
public static int pyriteMinQuatity = 1;
|
||||
@ConfigRegistry(config = "misc", category = "blocks", key = "pyriteMaxQuantity", comment = "Maximum quantity of Pyrite dust per Pyrite ore")
|
||||
public static int pyriteMaxQuantity = 2;
|
||||
@ConfigRegistry(config = "misc", category = "blocks", key = "sodaliteMinQuatity", comment = "Minimum quantity of Sodalite dust per Sodalite ore")
|
||||
public static int sodaliteMinQuatity = 1;
|
||||
@ConfigRegistry(config = "misc", category = "blocks", key = "sodaliteMaxQuantity", comment = "Maximum quantity of Sodalite dust per Sodalite ore")
|
||||
public static int sodaliteMaxQuantity = 2;
|
||||
|
||||
|
||||
|
||||
public BlockOre() {
|
||||
super(FabricBlockSettings.of(Material.STONE).strength(2f, 2f).build());
|
||||
}
|
||||
|
||||
//TODO move to json
|
||||
// @Override
|
||||
// public void getDrops(BlockState state, DefaultedList<ItemStack> drops, World world, BlockPos pos, int fortune) {
|
||||
// Block ore = state.getBlock();
|
||||
// Random random = new Random();
|
||||
//
|
||||
// // Secondary drop, like Yellow Garnet from Sphalerite ore added via event handler.
|
||||
// if (ore == TRContent.Ores.RUBY.block) {
|
||||
// OreDrop ruby = new OreDrop(TRContent.Gems.RUBY.getStack(rubyMinQuatity), rubyMaxQuantity);
|
||||
// drops.add(ruby.getDrops(fortune, random));
|
||||
// } else if (ore == TRContent.Ores.SAPPHIRE.block) {
|
||||
// OreDrop sapphire = new OreDrop(TRContent.Gems.SAPPHIRE.getStack(sapphireMinQuantity), sapphireMaxQuantity);
|
||||
// drops.add(sapphire.getDrops(fortune, random));
|
||||
// } else if (ore == TRContent.Ores.PYRITE.block) {
|
||||
// OreDrop pyriteDust = new OreDrop(TRContent.Dusts.PYRITE.getStack(pyriteMinQuatity), pyriteMaxQuantity);
|
||||
// drops.add(pyriteDust.getDrops(fortune, random));
|
||||
// } else if (ore == TRContent.Ores.SODALITE.block) {
|
||||
// OreDrop sodalite = new OreDrop(TRContent.Dusts.SODALITE.getStack(sodaliteMinQuatity), sodaliteMaxQuantity);
|
||||
// drops.add(sodalite.getDrops(fortune, random));
|
||||
|
||||
|
||||
// } else {
|
||||
// drops.add(new ItemStack(this));
|
||||
// }
|
||||
//
|
||||
// return;
|
||||
// }
|
||||
}
|
|
@ -25,51 +25,15 @@
|
|||
package techreborn.events;
|
||||
|
||||
import reborncore.common.registration.RebornRegister;
|
||||
import reborncore.common.registration.config.ConfigRegistry;
|
||||
import techreborn.TechReborn;
|
||||
|
||||
@RebornRegister(TechReborn.MOD_ID)
|
||||
public class BlockBreakHandler {
|
||||
|
||||
@ConfigRegistry(config = "compat", category = "general", key = "secondaryGemDrops", comment = "Drop red and yellow garnets and peridot from any harvested oreRuby, oreSapphire, oreSphalerite. False will also disable drop from TechReborn ores.")
|
||||
public static boolean secondaryGemDrops = true;
|
||||
@ConfigRegistry(config = "misc", category = "blocks", key = "redGarnetDropChance", comment = "Chance to get Red Garnet from Ruby Ore")
|
||||
public static double redGarnetDropChance = 0.125;
|
||||
@ConfigRegistry(config = "misc", category = "blocks", key = "peridotDropChance", comment = "Chance to get Peridot from Sapphire Ore")
|
||||
public static double peridotDropChance = 0.125;
|
||||
@ConfigRegistry(config = "misc", category = "blocks", key = "aluminiumDropChance", comment = "Chance to get Aluminium dust from Sodalite Ore")
|
||||
public static double aluminiumDropChance = 0.50;
|
||||
@ConfigRegistry(config = "misc", category = "blocks", key = "redstoneDropChance", comment = "Chance to get Redstone from Cinnabar Ore")
|
||||
public static double redstoneDropChance = 0.25;
|
||||
|
||||
|
||||
//TODO 1.14
|
||||
// @SubscribeEvent
|
||||
// public void onBlockHarvest(BlockEvent.HarvestDropsEvent event) {
|
||||
// if (secondaryGemDrops && !event.isSilkTouching()) {
|
||||
// BlockState state = event.getState();
|
||||
// List<ItemStack> drops = event.getDrops();
|
||||
// Random random = new Random();
|
||||
// //TODO: fix tags
|
||||
// if (state.getBlock().matches(new BlockTags.CachingTag(new Identifier(TechReborn.MOD_ID, "ruby_ore")))) {
|
||||
// OreDrop redGarnet = new OreDrop(TRContent.Gems.RED_GARNET.getStack(), redGarnetDropChance, 1);
|
||||
// drops.add(redGarnet.getDrops(event.getFortuneLevel(), random));
|
||||
// }
|
||||
// else if (state.getBlock().matches(new BlockTags.CachingTag(new Identifier(TechReborn.MOD_ID, "sapphire_ore")))) {
|
||||
// OreDrop peridot = new OreDrop(TRContent.Gems.PERIDOT.getStack(), peridotDropChance, 1);
|
||||
// drops.add(peridot.getDrops(event.getFortuneLevel(), random));
|
||||
// }
|
||||
// else if (state.getBlock().matches(new BlockTags.CachingTag(new Identifier(TechReborn.MOD_ID, "sodalite_ore")))) {
|
||||
// OreDrop aluminium = new OreDrop(TRContent.Dusts.ALUMINUM.getStack(), aluminiumDropChance, 1);
|
||||
// drops.add(aluminium.getDrops(event.getFortuneLevel(), random));
|
||||
// }
|
||||
// else if (state.getBlock().matches(new BlockTags.CachingTag(new Identifier(TechReborn.MOD_ID, "cinnabar_ore")))) {
|
||||
// OreDrop redstone = new OreDrop(new ItemStack(Items.REDSTONE), redstoneDropChance, 1);
|
||||
// drops.add(redstone.getDrops(event.getFortuneLevel(), random));
|
||||
// }
|
||||
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// @SubscribeEvent
|
||||
// public void getBreakSpeedEvent(PlayerEvent.BreakSpeed event){
|
||||
|
|
|
@ -24,7 +24,9 @@
|
|||
|
||||
package techreborn.init;
|
||||
|
||||
import net.fabricmc.fabric.api.block.FabricBlockSettings;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.Material;
|
||||
import net.minecraft.entity.EntityType;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemConvertible;
|
||||
|
@ -323,7 +325,7 @@ public class TRContent {
|
|||
|
||||
Ores(int veinSize, int veinsPerChunk, int minY, int maxY) {
|
||||
name = this.toString().toLowerCase();
|
||||
block = new BlockOre();
|
||||
block = new Block(FabricBlockSettings.of(Material.STONE).strength(2f, 2f).build());
|
||||
this.veinSize = veinSize;
|
||||
this.veinsPerChunk = veinsPerChunk;
|
||||
this.minY = minY;
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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": [
|
||||
|
|
Loading…
Reference in a new issue