Make all the organic items compostable #80

This commit is contained in:
Sollace 2022-12-04 23:09:13 +00:00
parent 4ff4cd1ade
commit 9b366e3c9e

View file

@ -12,6 +12,7 @@ import com.minelittlepony.unicopia.item.toxin.UFoodComponents;
import net.minecraft.item.*;
import net.minecraft.item.Item.Settings;
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
import net.fabricmc.fabric.api.registry.CompostingChanceRegistry;
import net.fabricmc.fabric.api.registry.FuelRegistry;
import net.minecraft.sound.SoundEvent;
import net.minecraft.util.Identifier;
@ -151,6 +152,30 @@ public interface UItems {
FuelRegistry.INSTANCE.add(BUTTERFLY, 2);
FuelRegistry.INSTANCE.add(SPELLBOOK, 9000);
CompostingChanceRegistry.INSTANCE.add(GREEN_APPLE, 0.65F);
CompostingChanceRegistry.INSTANCE.add(SWEET_APPLE, 0.65F);
CompostingChanceRegistry.INSTANCE.add(SOUR_APPLE, 0.65F);
CompostingChanceRegistry.INSTANCE.add(ZAP_APPLE, 1F);
CompostingChanceRegistry.INSTANCE.add(ZAP_BULB, 1F);
CompostingChanceRegistry.INSTANCE.add(ROTTEN_APPLE, 0.8F);
CompostingChanceRegistry.INSTANCE.add(OAT_SEEDS, 0.3F);
CompostingChanceRegistry.INSTANCE.add(OATS, 0.1F);
CompostingChanceRegistry.INSTANCE.add(IMPORTED_OATS, 0.5F);
CompostingChanceRegistry.INSTANCE.add(DAFFODIL_DAISY_SANDWICH, 0.5F);
CompostingChanceRegistry.INSTANCE.add(HAY_BURGER, 0.5F);
CompostingChanceRegistry.INSTANCE.add(HAY_FRIES, 0.5F);
CompostingChanceRegistry.INSTANCE.add(WHEAT_WORMS, 0.8F);
CompostingChanceRegistry.INSTANCE.add(MUFFIN, 0.3F);
CompostingChanceRegistry.INSTANCE.add(PINECONE, 0.3F);
CompostingChanceRegistry.INSTANCE.add(ACORN, 0.3F);
CompostingChanceRegistry.INSTANCE.add(GREEN_APPLE_SEEDS, 0.3F);
CompostingChanceRegistry.INSTANCE.add(SWEET_APPLE_SEEDS, 0.3F);
CompostingChanceRegistry.INSTANCE.add(SOUR_APPLE_SEEDS, 0.3F);
CompostingChanceRegistry.INSTANCE.add(APPLE_PIE, 0.5F);
CompostingChanceRegistry.INSTANCE.add(APPLE_PIE_SLICE, 0.1F);
CompostingChanceRegistry.INSTANCE.add(BUTTERFLY, 0.1F);
UEnchantments.bootstrap();
URecipes.bootstrap();
UItemGroups.bootstrap();