use of net.fabricmc.fabric.api.registry.CompostingChanceRegistry in project bewitchment by MoriyaShiine.
the class BWObjects method init.
public static void init() {
BLOCKS.keySet().forEach(block -> Registry.register(Registry.BLOCK, BLOCKS.get(block), block));
ITEMS.keySet().forEach(item -> Registry.register(Registry.ITEM, ITEMS.get(item), item));
FuelRegistry fuelRegistry = FuelRegistry.INSTANCE;
fuelRegistry.add(JUNIPER_FENCE, 300);
fuelRegistry.add(JUNIPER_FENCE_GATE, 300);
fuelRegistry.add(CYPRESS_FENCE, 300);
fuelRegistry.add(CYPRESS_FENCE_GATE, 300);
fuelRegistry.add(ELDER_FENCE, 300);
fuelRegistry.add(ELDER_FENCE_GATE, 300);
fuelRegistry.add(DRAGONS_BLOOD_FENCE, 300);
fuelRegistry.add(DRAGONS_BLOOD_FENCE_GATE, 300);
fuelRegistry.add(BWTags.BARKS, 100);
fuelRegistry.add(SCORCHED_BRAMBLE, 800);
FlammableBlockRegistry flammableRegistry = FlammableBlockRegistry.getDefaultInstance();
flammableRegistry.add(STRIPPED_JUNIPER_LOG, 5, 5);
flammableRegistry.add(STRIPPED_JUNIPER_WOOD, 5, 5);
flammableRegistry.add(JUNIPER_LOG, 5, 5);
flammableRegistry.add(JUNIPER_WOOD, 5, 5);
flammableRegistry.add(JUNIPER_LEAVES, 30, 60);
flammableRegistry.add(JUNIPER_PLANKS, 5, 20);
flammableRegistry.add(JUNIPER_STAIRS, 5, 20);
flammableRegistry.add(JUNIPER_SLAB, 5, 20);
flammableRegistry.add(JUNIPER_FENCE, 5, 20);
flammableRegistry.add(JUNIPER_FENCE_GATE, 5, 20);
flammableRegistry.add(STRIPPED_CYPRESS_LOG, 5, 5);
flammableRegistry.add(STRIPPED_CYPRESS_WOOD, 5, 5);
flammableRegistry.add(CYPRESS_LOG, 5, 5);
flammableRegistry.add(CYPRESS_WOOD, 5, 5);
flammableRegistry.add(CYPRESS_LEAVES, 30, 60);
flammableRegistry.add(CYPRESS_PLANKS, 5, 20);
flammableRegistry.add(CYPRESS_STAIRS, 5, 20);
flammableRegistry.add(CYPRESS_SLAB, 5, 20);
flammableRegistry.add(CYPRESS_FENCE, 5, 20);
flammableRegistry.add(CYPRESS_FENCE_GATE, 5, 20);
flammableRegistry.add(STRIPPED_ELDER_LOG, 5, 5);
flammableRegistry.add(STRIPPED_ELDER_WOOD, 5, 5);
flammableRegistry.add(ELDER_LOG, 5, 5);
flammableRegistry.add(ELDER_WOOD, 5, 5);
flammableRegistry.add(ELDER_LEAVES, 30, 60);
flammableRegistry.add(ELDER_PLANKS, 5, 20);
flammableRegistry.add(ELDER_STAIRS, 5, 20);
flammableRegistry.add(ELDER_SLAB, 5, 20);
flammableRegistry.add(ELDER_FENCE, 5, 20);
flammableRegistry.add(ELDER_FENCE_GATE, 5, 20);
flammableRegistry.add(STRIPPED_DRAGONS_BLOOD_LOG, 5, 5);
flammableRegistry.add(STRIPPED_DRAGONS_BLOOD_WOOD, 5, 5);
flammableRegistry.add(DRAGONS_BLOOD_LOG, 5, 5);
flammableRegistry.add(DRAGONS_BLOOD_WOOD, 5, 5);
flammableRegistry.add(DRAGONS_BLOOD_LEAVES, 30, 60);
flammableRegistry.add(DRAGONS_BLOOD_PLANKS, 5, 20);
flammableRegistry.add(DRAGONS_BLOOD_STAIRS, 5, 20);
flammableRegistry.add(DRAGONS_BLOOD_SLAB, 5, 20);
flammableRegistry.add(DRAGONS_BLOOD_FENCE, 5, 20);
flammableRegistry.add(DRAGONS_BLOOD_FENCE_GATE, 5, 20);
flammableRegistry.add(HEDGEWITCH_WOOL, 30, 60);
flammableRegistry.add(ALCHEMIST_WOOL, 30, 60);
flammableRegistry.add(BESMIRCHED_WOOL, 30, 60);
flammableRegistry.add(HEDGEWITCH_CARPET, 60, 20);
flammableRegistry.add(ALCHEMIST_CARPET, 60, 20);
flammableRegistry.add(BESMIRCHED_CARPET, 60, 20);
CompostingChanceRegistry compostRegistry = CompostingChanceRegistry.INSTANCE;
compostRegistry.add(JUNIPER_LEAVES, 0.3f);
compostRegistry.add(JUNIPER_SAPLING, 0.3f);
compostRegistry.add(CYPRESS_LEAVES, 0.3f);
compostRegistry.add(CYPRESS_SAPLING, 0.3f);
compostRegistry.add(ELDER_LEAVES, 0.3f);
compostRegistry.add(ELDER_SAPLING, 0.3f);
compostRegistry.add(DRAGONS_BLOOD_LEAVES, 0.3f);
compostRegistry.add(DRAGONS_BLOOD_SAPLING, 0.3f);
compostRegistry.add(ACONITE, 0.65f);
compostRegistry.add(ACONITE_SEEDS, 0.3f);
compostRegistry.add(BELLADONNA, 0.65f);
compostRegistry.add(BELLADONNA_SEEDS, 0.3f);
compostRegistry.add(GARLIC, 0.65f);
compostRegistry.add(MANDRAKE_ROOT, 0.65f);
compostRegistry.add(MANDRAKE_SEEDS, 0.3f);
compostRegistry.add(WOOD_ASH, 0.3f);
compostRegistry.add(DRAGONS_BLOOD_RESIN, 0.65f);
compostRegistry.add(GRILLED_GARLIC, 0.85f);
compostRegistry.add(GARLIC_BREAD, 1f);
compostRegistry.add(WITCHBERRY, 0.65f);
compostRegistry.add(WITCHBERRY_PIE, 1f);
compostRegistry.add(WITCHBERRY_COOKIE, 0.85f);
}
use of net.fabricmc.fabric.api.registry.CompostingChanceRegistry in project WK by witches-kitchen.
the class WKBlocks method register.
public static void register() {
// devices
registerBlock("iron_witches_oven", IRON_WITCHES_OVEN, WK.WK_GROUP);
registerBlock("copper_witches_oven", COPPER_WITCHES_OVEN, WK.WK_GROUP);
registerBlock("exposed_copper_witches_oven", EXPOSED_COPPER_WITCHES_OVEN, WK.WK_GROUP);
registerBlock("weathered_copper_witches_oven", WEATHERED_COPPER_WITCHES_OVEN, WK.WK_GROUP);
registerBlock("oxidized_copper_witches_oven", OXIDIZED_COPPER_WITCHES_OVEN, WK.WK_GROUP);
registerBlock("iron_witches_cauldron", IRON_WITCHES_CAULDRON, WK.WK_GROUP);
registerBlock("oak_brewing_barrel", OAK_BREWING_BARREL, WK.WK_GROUP);
registerBlock("spruce_brewing_barrel", SPRUCE_BREWING_BARREL, WK.WK_GROUP);
registerBlock("birch_brewing_barrel", BIRCH_BREWING_BARREL, WK.WK_GROUP);
registerBlock("jungle_brewing_barrel", JUNGLE_BREWING_BARREL, WK.WK_GROUP);
registerBlock("acacia_brewing_barrel", ACACIA_BREWING_BARREL, WK.WK_GROUP);
registerBlock("dark_oak_brewing_barrel", DARK_OAK_BREWING_BARREL, WK.WK_GROUP);
registerBlock("crimson_brewing_barrel", CRIMSON_BREWING_BARREL, WK.WK_GROUP);
registerBlock("warped_brewing_barrel", WARPED_BREWING_BARREL, WK.WK_GROUP);
// Food blocks
registerBlock("raw_gingerbread_block", RAW_GINGERBREAD_BLOCK, WK.WK_GROUP);
registerBlock("raw_chiseled_gingerbread_block", RAW_CHISELED_GINGERBREAD_BLOCK, WK.WK_GROUP);
registerBlock("raw_gingerbread_beveled_block", RAW_GINGERBREAD_BEVELED_BLOCK, WK.WK_GROUP);
registerBlock("gingerbread_beveled_block", GINGERBREAD_BEVELED_BLOCK, WK.WK_GROUP);
registerBlock("gingerbread_block", GINGERBREAD_BLOCK, WK.WK_GROUP);
registerBlock("frosting_block", FROSTING_BLOCK, WK.WK_GROUP);
registerBlock("frosted_gingerbread_block", FROSTED_GINGERBREAD_BLOCK, WK.WK_GROUP);
registerBlock("frosted_beveled_gingerbread_block", FROSTED_BEVELED_GINGERBREAD_BLOCK, WK.WK_GROUP);
registerBlock("chiseled_gingerbread_block", CHISELED_GINGERBREAD_BLOCK, WK.WK_GROUP);
registerBlock("raw_gingerbread_tiled_block", RAW_GINGERBREAD_TILED_BLOCK, WK.WK_GROUP);
registerBlock("gingerbread_tiled_block", GINGERBREAD_TILED_BLOCK, WK.WK_GROUP);
registerBlock("frosted_gingerbread_tiled_block", FROSTED_GINGERBREAD_TILED_BLOCK, WK.WK_GROUP);
registerBlock("frosted_beveled_gingerbread_block_yellow", FROSTED_BEVELED_GINGERBREAD_BLOCK_YELLOW, WK.WK_GROUP);
registerBlock("frosted_beveled_gingerbread_block_red", FROSTED_BEVELED_GINGERBREAD_BLOCK_RED, WK.WK_GROUP);
registerBlock("frosted_beveled_gingerbread_block_green", FROSTED_BEVELED_GINGERBREAD_BLOCK_GREEN, WK.WK_GROUP);
registerBlock("frosted_beveled_gingerbread_block_purple", FROSTED_BEVELED_GINGERBREAD_BLOCK_PURPLE, WK.WK_GROUP);
registerBlock("frosted_tiled_gingerbread_block_yellow", FROSTED_TILED_GINGERBREAD_BLOCK_YELLOW, WK.WK_GROUP);
registerBlock("frosted_tiled_gingerbread_block_red", FROSTED_TILED_GINGERBREAD_BLOCK_RED, WK.WK_GROUP);
registerBlock("frosted_tiled_gingerbread_block_green", FROSTED_TILED_GINGERBREAD_BLOCK_GREEN, WK.WK_GROUP);
registerBlock("frosted_tiled_gingerbread_block_purple", FROSTED_TILED_GINGERBREAD_BLOCK_PURPLE, WK.WK_GROUP);
registerBlock("frosted_tiled_gingerbread_block_variant", FROSTED_TILED_GINGERBREAD_BLOCK_VARIANT, WK.WK_GROUP);
// Gingerbread slabs
registerBlock("raw_gingerbread_block_slab", RAW_GINGERBREAD_BLOCK_SLAB, WK.WK_GROUP);
registerBlock("raw_chiseled_gingerbread_block_slab", RAW_CHISELED_GINGERBREAD_BLOCK_SLAB, WK.WK_GROUP);
registerBlock("raw_gingerbread_beveled_block_slab", RAW_GINGERBREAD_BEVELED_BLOCK_SLAB, WK.WK_GROUP);
registerBlock("gingerbread_beveled_block_slab", GINGERBREAD_BEVELED_BLOCK_SLAB, WK.WK_GROUP);
registerBlock("gingerbread_block_slab", GINGERBREAD_BLOCK_SLAB, WK.WK_GROUP);
registerBlock("frosting_block_slab", FROSTING_BLOCK_SLAB, WK.WK_GROUP);
registerBlock("frosted_gingerbread_block_slab", FROSTED_GINGERBREAD_BLOCK_SLAB, WK.WK_GROUP);
registerBlock("frosted_beveled_gingerbread_block_slab", FROSTED_BEVELED_GINGERBREAD_BLOCK_SLAB, WK.WK_GROUP);
registerBlock("chiseled_gingerbread_block_slab", CHISELED_GINGERBREAD_BLOCK_SLAB, WK.WK_GROUP);
registerBlock("raw_gingerbread_tiled_block_slab", RAW_GINGERBREAD_TILED_BLOCK_SLAB, WK.WK_GROUP);
registerBlock("gingerbread_tiled_block_slab", GINGERBREAD_TILED_BLOCK_SLAB, WK.WK_GROUP);
registerBlock("frosted_gingerbread_tiled_block_slab", FROSTED_GINGERBREAD_TILED_BLOCK_SLAB, WK.WK_GROUP);
registerBlock("frosted_beveled_gingerbread_block_yellow_slab", FROSTED_BEVELED_GINGERBREAD_BLOCK_YELLOW_SLAB, WK.WK_GROUP);
registerBlock("frosted_beveled_gingerbread_block_red_slab", FROSTED_BEVELED_GINGERBREAD_BLOCK_RED_SLAB, WK.WK_GROUP);
registerBlock("frosted_beveled_gingerbread_block_green_slab", FROSTED_BEVELED_GINGERBREAD_BLOCK_GREEN_SLAB, WK.WK_GROUP);
registerBlock("frosted_beveled_gingerbread_block_purple_slab", FROSTED_BEVELED_GINGERBREAD_BLOCK_PURPLE_SLAB, WK.WK_GROUP);
registerBlock("frosted_tiled_gingerbread_block_yellow_slab", FROSTED_TILED_GINGERBREAD_BLOCK_YELLOW_SLAB, WK.WK_GROUP);
registerBlock("frosted_tiled_gingerbread_block_red_slab", FROSTED_TILED_GINGERBREAD_BLOCK_RED_SLAB, WK.WK_GROUP);
registerBlock("frosted_tiled_gingerbread_block_green_slab", FROSTED_TILED_GINGERBREAD_BLOCK_GREEN_SLAB, WK.WK_GROUP);
registerBlock("frosted_tiled_gingerbread_block_purple_slab", FROSTED_TILED_GINGERBREAD_BLOCK_PURPLE_SLAB, WK.WK_GROUP);
registerBlock("frosted_tiled_gingerbread_block_variant_slab", FROSTED_TILED_GINGERBREAD_BLOCK_VARIANT_SLAB, WK.WK_GROUP);
// Gingerbread Stairs
registerBlock("raw_gingerbread_block_stairs", RAW_GINGERBREAD_BLOCK_STAIRS, WK.WK_GROUP);
registerBlock("raw_chiseled_gingerbread_block_stairs", RAW_CHISELED_GINGERBREAD_BLOCK_STAIRS, WK.WK_GROUP);
registerBlock("raw_gingerbread_beveled_block_stairs", RAW_GINGERBREAD_BEVELED_BLOCK_STAIRS, WK.WK_GROUP);
registerBlock("gingerbread_beveled_block_stairs", GINGERBREAD_BEVELED_BLOCK_STAIRS, WK.WK_GROUP);
registerBlock("gingerbread_block_stairs", GINGERBREAD_BLOCK_STAIRS, WK.WK_GROUP);
registerBlock("frosting_block_stairs", FROSTING_BLOCK_STAIRS, WK.WK_GROUP);
registerBlock("frosted_gingerbread_block_stairs", FROSTED_GINGERBREAD_BLOCK_STAIRS, WK.WK_GROUP);
registerBlock("frosted_beveled_gingerbread_block_stairs", FROSTED_BEVELED_GINGERBREAD_BLOCK_STAIRS, WK.WK_GROUP);
registerBlock("chiseled_gingerbread_block_stairs", CHISELED_GINGERBREAD_BLOCK_STAIRS, WK.WK_GROUP);
registerBlock("raw_gingerbread_tiled_block_stairs", RAW_GINGERBREAD_TILED_BLOCK_STAIRS, WK.WK_GROUP);
registerBlock("gingerbread_tiled_block_stairs", GINGERBREAD_TILED_BLOCK_STAIRS, WK.WK_GROUP);
registerBlock("frosted_gingerbread_tiled_block_stairs", FROSTED_GINGERBREAD_TILED_BLOCK_STAIRS, WK.WK_GROUP);
registerBlock("frosted_beveled_gingerbread_block_yellow_stairs", FROSTED_BEVELED_GINGERBREAD_BLOCK_YELLOW_STAIRS, WK.WK_GROUP);
registerBlock("frosted_beveled_gingerbread_block_red_stairs", FROSTED_BEVELED_GINGERBREAD_BLOCK_RED_STAIRS, WK.WK_GROUP);
registerBlock("frosted_beveled_gingerbread_block_green_stairs", FROSTED_BEVELED_GINGERBREAD_BLOCK_GREEN_STAIRS, WK.WK_GROUP);
registerBlock("frosted_beveled_gingerbread_block_purple_stairs", FROSTED_BEVELED_GINGERBREAD_BLOCK_PURPLE_STAIRS, WK.WK_GROUP);
registerBlock("frosted_tiled_gingerbread_block_yellow_stairs", FROSTED_TILED_GINGERBREAD_BLOCK_YELLOW_STAIRS, WK.WK_GROUP);
registerBlock("frosted_tiled_gingerbread_block_red_stairs", FROSTED_TILED_GINGERBREAD_BLOCK_RED_STAIRS, WK.WK_GROUP);
registerBlock("frosted_tiled_gingerbread_block_green_stairs", FROSTED_TILED_GINGERBREAD_BLOCK_GREEN_STAIRS, WK.WK_GROUP);
registerBlock("frosted_tiled_gingerbread_block_purple_stairs", FROSTED_TILED_GINGERBREAD_BLOCK_PURPLE_STAIRS, WK.WK_GROUP);
registerBlock("frosted_tiled_gingerbread_block_variant_stairs", FROSTED_TILED_GINGERBREAD_BLOCK_VARIANT_STAIRS, WK.WK_GROUP);
// Saplings
registerBlock("blackthorn_sapling", BLACKTHORN_SAPLING, WK.WK_GROUP);
registerBlock("elder_sapling", ELDER_SAPLING, WK.WK_GROUP);
registerBlock("hawthorn_sapling", HAWTHORN_SAPLING, WK.WK_GROUP);
registerBlock("juniper_sapling", JUNIPER_SAPLING, WK.WK_GROUP);
registerBlock("rowan_sapling", ROWAN_SAPLING, WK.WK_GROUP);
registerBlock("sumac_sapling", SUMAC_SAPLING, WK.WK_GROUP);
registerBlock("potted_blackthorn_sapling", POTTED_BLACKTHORN_SAPLING, WK.WK_GROUP);
registerBlock("potted_elder_sapling", POTTED_ELDER_SAPLING, WK.WK_GROUP);
registerBlock("potted_hawthorn_sapling", POTTED_HAWTHORN_SAPLING, WK.WK_GROUP);
registerBlock("potted_juniper_sapling", POTTED_JUNIPER_SAPLING, WK.WK_GROUP);
registerBlock("potted_sumac_sapling", POTTED_SUMAC_SAPLING, WK.WK_GROUP);
registerBlock("potted_rowan_sapling", POTTED_ROWAN_SAPLING, WK.WK_GROUP);
// Wood logs
registerBlock("blackthorn_log", BLACKTHORN_LOG, WK.WK_GROUP);
registerBlock("elder_log", ELDER_LOG, WK.WK_GROUP);
registerBlock("hawthorn_log", HAWTHORN_LOG, WK.WK_GROUP);
registerBlock("juniper_log", JUNIPER_LOG, WK.WK_GROUP);
registerBlock("rowan_log", ROWAN_LOG, WK.WK_GROUP);
registerBlock("sumac_log", SUMAC_LOG, WK.WK_GROUP);
registerBlock("blackthorn_wood", BLACKTHORN_WOOD, WK.WK_GROUP);
registerBlock("elder_wood", ELDER_WOOD, WK.WK_GROUP);
registerBlock("hawthorn_wood", HAWTHORN_WOOD, WK.WK_GROUP);
registerBlock("juniper_wood", JUNIPER_WOOD, WK.WK_GROUP);
registerBlock("rowan_wood", ROWAN_WOOD, WK.WK_GROUP);
registerBlock("sumac_wood", SUMAC_WOOD, WK.WK_GROUP);
registerBlock("stripped_blackthorn_log", STRIPPED_BLACKTHORN_LOG, WK.WK_GROUP);
registerBlock("stripped_elder_log", STRIPPED_ELDER_LOG, WK.WK_GROUP);
registerBlock("stripped_hawthorn_log", STRIPPED_HAWTHORN_LOG, WK.WK_GROUP);
registerBlock("stripped_juniper_log", STRIPPED_JUNIPER_LOG, WK.WK_GROUP);
registerBlock("stripped_rowan_log", STRIPPED_ROWAN_LOG, WK.WK_GROUP);
registerBlock("stripped_sumac_log", STRIPPED_SUMAC_LOG, WK.WK_GROUP);
registerBlock("stripped_blackthorn_wood", STRIPPED_BLACKTHORN_WOOD, WK.WK_GROUP);
registerBlock("stripped_elder_wood", STRIPPED_ELDER_WOOD, WK.WK_GROUP);
registerBlock("stripped_hawthorn_wood", STRIPPED_HAWTHORN_WOOD, WK.WK_GROUP);
registerBlock("stripped_juniper_wood", STRIPPED_JUNIPER_WOOD, WK.WK_GROUP);
registerBlock("stripped_rowan_wood", STRIPPED_ROWAN_WOOD, WK.WK_GROUP);
registerBlock("stripped_sumac_wood", STRIPPED_SUMAC_WOOD, WK.WK_GROUP);
// Wood stairs
registerBlock("rowan_stairs", ROWAN_STAIRS, WK.WK_GROUP);
registerBlock("elder_stairs", ELDER_STAIRS, WK.WK_GROUP);
registerBlock("hawthorn_stairs", HAWTHORN_STAIRS, WK.WK_GROUP);
registerBlock("blackthorn_stairs", BLACKTHORN_STAIRS, WK.WK_GROUP);
registerBlock("juniper_stairs", JUNIPER_STAIRS, WK.WK_GROUP);
registerBlock("sumac_stairs", SUMAC_STAIRS, WK.WK_GROUP);
// Wood Slabs
registerBlock("elder_slab", ELDER_SLAB, WK.WK_GROUP);
registerBlock("sumac_slab", SUMAC_SLAB, WK.WK_GROUP);
registerBlock("hawthorn_slab", HAWTHORN_SLAB, WK.WK_GROUP);
registerBlock("blackthorn_slab", BLACKTHORN_SLAB, WK.WK_GROUP);
registerBlock("juniper_slab", JUNIPER_SLAB, WK.WK_GROUP);
registerBlock("rowan_slab", ROWAN_SLAB, WK.WK_GROUP);
// Leaves
registerBlock("elder_leaves", ELDER_LEAVES, WK.WK_GROUP);
registerBlock("elder_leaves_colored", ELDER_LEAVES_COLORED, WK.WK_GROUP);
registerBlock("sumac_leaves", SUMAC_LEAVES, WK.WK_GROUP);
registerBlock("hawthorn_leaves", HAWTHORN_LEAVES, WK.WK_GROUP);
registerBlock("hawthorn_leaves_colored", HAWTHORN_LEAVES_COLORED, WK.WK_GROUP);
registerBlock("blackthorn_leaves", BLACKTHORN_LEAVES, WK.WK_GROUP);
registerBlock("juniper_leaves", JUNIPER_LEAVES, WK.WK_GROUP);
registerBlock("rowan_leaves", ROWAN_LEAVES, WK.WK_GROUP);
// Minerals
registerBlock("salt", SALT_BLOCK, WK.WK_GROUP);
// Crops
registerBlockOnly("belladonna", BELLADONNA);
registerBlockOnly("belladonna_glow", BELLADONNA_GLOW);
registerBlockOnly("belladonna_nocturnal", BELLADONNA_NOCTURNAL);
registerBlockOnly("amaranth", AMARANTH);
registerBlockOnly("amaranth_sweetberry", AMARANTH_SWEETBERRY);
registerBlockOnly("amaranth_torch", AMARANTH_TORCH);
registerBlockOnly("amaranth_sundew", AMARANTH_SUNDEW);
registerBlockOnly("amaranth_creeper", AMARANTH_CREEPER);
registerBlockOnly("amaranth_viridian", AMARANTH_VIRIDIAN);
registerBlockOnly("amaranth_griselin", AMARANTH_GRISELIN);
registerBlockOnly("amaranth_cerise", AMARANTH_CERISE);
registerBlockOnly("amaranth_dark_passion", AMARANTH_DARK_PASSION);
registerBlockOnly("amaranth_firebird", AMARANTH_FIREBIRD);
registerBlockOnly("wormwood", WORMWOOD);
CompostingChanceRegistry validBlockCompost = CompostingChanceRegistry.INSTANCE;
validBlockCompost.add(BLACKTHORN_LEAVES, 0.3f);
validBlockCompost.add(ELDER_LEAVES, 0.3f);
validBlockCompost.add(HAWTHORN_LEAVES, 0.3f);
validBlockCompost.add(JUNIPER_LEAVES, 0.3f);
validBlockCompost.add(ROWAN_LEAVES, 0.3f);
validBlockCompost.add(SUMAC_LEAVES, 0.3f);
validBlockCompost.add(ELDER_LEAVES_COLORED, 0.3f);
validBlockCompost.add(HAWTHORN_LEAVES_COLORED, 0.3f);
validBlockCompost.add(BLACKTHORN_SAPLING, 0.3f);
validBlockCompost.add(ELDER_SAPLING, 0.3f);
validBlockCompost.add(HAWTHORN_SAPLING, 0.3f);
validBlockCompost.add(JUNIPER_SAPLING, 0.3f);
validBlockCompost.add(ROWAN_SAPLING, 0.3f);
validBlockCompost.add(SUMAC_SAPLING, 0.3f);
}
use of net.fabricmc.fabric.api.registry.CompostingChanceRegistry in project WK by witches-kitchen.
the class WKItems method register.
public static void register() {
registerItem("amaranth_seeds", AMARANTH_SEEDS);
registerItem("amaranth_sweetberry_seeds", AMARANTH_SWEETBERRY_SEEDS);
registerItem("amaranth_torch_seeds", AMARANTH_TORCH_SEEDS);
registerItem("amaranth_sundew_seeds", AMARANTH_SUNDEW_SEEDS);
registerItem("amaranth_creeper_seeds", AMARANTH_CREEPER_SEEDS);
registerItem("amaranth_viridian_seeds", AMARANTH_VIRIDIAN_SEEDS);
registerItem("amaranth_griselin_seeds", AMARANTH_GRISELIN_SEEDS);
registerItem("amaranth_cerise_seeds", AMARANTH_CERISE_SEEDS);
registerItem("amaranth_dark_passion_seeds", AMARANTH_DARK_PASSION_SEEDS);
registerItem("amaranth_firebird_seeds", AMARANTH_FIREBIRD_SEEDS);
registerItem("belladonna_blossom", BELLADONNA_BLOSSOM);
registerItem("amaranth_sprig", AMARANTH_SPRIG);
registerItem("mint_sprig", MINT_SPRIG);
registerItem("belladonna_seeds", BELLADONNA_SEEDS);
registerItem("belladonna_glow_seeds", BELLADONNA_GLOW_SEEDS);
registerItem("belladonna_nocturnal_seeds", BELLADONNA_NOCTURNAL_SEEDS);
registerItem("dollop_of_frosting", DOLLOP_OF_FROSTING);
registerItem("chocolate_rum_balls", CHOCOLATE_RUM_BALLS);
registerItem("super_booze", SUPER_BOOZE);
registerItem("cu_sith_spawn_egg", CU_SITH_SPAWN_EGG);
registerItem("ferret_spawn_egg", FERRET_SPAWN_EGG);
registerItem("wormwood_sprig", WORMWOOD_SPRIG);
registerItem("rowan_berries", ROWAN_BERRIES);
registerItem("sloe_berries", SLOE_BERRIES);
registerItem("juniper_berries", JUNIPER_BERRIES);
registerItem("blackberry", BLACKBERRY);
registerItem("hawthorn_berries", HAWTHORN_BERRIES);
registerItem("sumac_berries", SUMAC_BERRIES);
registerItem("briar_hips", BRIAR_HIPS);
registerItem("elder_blossom", ELDER_BLOSSOM);
registerItem("coneflower_blossom", CONEFLOWER_BLOSSOM);
registerItem("sanguinary_blossom", SANGUINARY_BLOSSOM);
registerItem("saint_johns_wort_blossom", SAINT_JOHNS_WORT_BLOSSOM);
registerItem("iris_blossom", IRIS_BLOSSOM);
registerItem("chamomile_blossom", CHAMOMILE_BLOSSOM);
registerItem("ginger_rhizome", GINGER_RHIZOME);
registerItem("tea_leaf", TEA_LEAF);
registerItem("hellebore_blossom", HELLEBORE_BLOSSOM);
registerItem("foxglove_blossom", FOXGLOVE_BLOSSOM);
CompostingChanceRegistry validItemCompost = CompostingChanceRegistry.INSTANCE;
validItemCompost.add(AMARANTH_SPRIG, 0.65f);
validItemCompost.add(AMARANTH_SEEDS, 0.3f);
validItemCompost.add(AMARANTH_CERISE_SEEDS, 0.3f);
validItemCompost.add(AMARANTH_SWEETBERRY_SEEDS, 0.3f);
validItemCompost.add(AMARANTH_TORCH_SEEDS, 0.3f);
validItemCompost.add(AMARANTH_SUNDEW_SEEDS, 0.3f);
validItemCompost.add(AMARANTH_CREEPER_SEEDS, 0.3f);
validItemCompost.add(AMARANTH_VIRIDIAN_SEEDS, 0.3f);
validItemCompost.add(AMARANTH_GRISELIN_SEEDS, 0.3f);
validItemCompost.add(AMARANTH_DARK_PASSION_SEEDS, 0.3f);
validItemCompost.add(AMARANTH_FIREBIRD_SEEDS, 0.3f);
validItemCompost.add(BELLADONNA_BLOSSOM, 0.65f);
validItemCompost.add(BELLADONNA_SEEDS, 0.3f);
validItemCompost.add(BELLADONNA_GLOW_SEEDS, 0.3f);
validItemCompost.add(BELLADONNA_NOCTURNAL_SEEDS, 0.3f);
validItemCompost.add(WORMWOOD_SPRIG, 0.65f);
validItemCompost.add(WORMWOOD_SEEDS, 0.3f);
validItemCompost.add(MINT_SPRIG, 0.45f);
validItemCompost.add(ROWAN_BERRIES, 0.45f);
validItemCompost.add(SLOE_BERRIES, 0.45f);
validItemCompost.add(JUNIPER_BERRIES, 0.45f);
validItemCompost.add(BLACKBERRY, 0.45f);
validItemCompost.add(HAWTHORN_BERRIES, 0.45f);
validItemCompost.add(SUMAC_BERRIES, 0.45f);
validItemCompost.add(BRIAR_HIPS, 0.45f);
validItemCompost.add(ELDER_BLOSSOM, 0.45f);
validItemCompost.add(CONEFLOWER_BLOSSOM, 0.45f);
validItemCompost.add(SANGUINARY_BLOSSOM, 0.45f);
validItemCompost.add(SAINT_JOHNS_WORT_BLOSSOM, 0.45f);
validItemCompost.add(IRIS_BLOSSOM, 0.45f);
validItemCompost.add(CHAMOMILE_BLOSSOM, 0.45f);
validItemCompost.add(GINGER_RHIZOME, 0.45f);
validItemCompost.add(TEA_LEAF, 0.45f);
validItemCompost.add(HELLEBORE_BLOSSOM, 0.45f);
validItemCompost.add(FOXGLOVE_BLOSSOM, 0.45f);
if (WKConfig.get().debugMode) {
WK.logger.info("Witches Kitchen Base Items: Successfully Loaded");
}
}
Aggregations