make cotton compostable

This commit is contained in:
2020-12-05 16:20:11 +01:00
parent 71730f3172
commit 3201e91ea7
2 changed files with 5 additions and 1 deletions

View File

@ -23,6 +23,7 @@ import net.fabricmc.fabric.api.loot.v1.event.LootTableLoadingCallback;
import net.fabricmc.fabric.api.screenhandler.v1.ScreenHandlerRegistry;
import net.minecraft.block.Block;
import net.minecraft.block.Blocks;
import net.minecraft.block.ComposterBlock;
import net.minecraft.block.entity.BlockEntity;
import net.minecraft.block.entity.BlockEntityType;
import net.minecraft.block.entity.BlockEntityType.Builder;
@ -211,6 +212,9 @@ public class RegistryManager {
registerItem(QuickieItems.BACKPACK_ORANGE, "backpack_orange");
registerItem(QuickieItems.BACKPACK_PURPLE, "backpack_purple");
registerItem(QuickieItems.BACKPACK_LIGHTBLUE, "backpack_lightblue");
ComposterBlock.ITEM_TO_LEVEL_INCREASE_CHANCE.put(QuickieItems.COTTONSEED, 0.5f);
ComposterBlock.ITEM_TO_LEVEL_INCREASE_CHANCE.put(QuickieItems.COTTON, 0.75f);
}
public static final void registerTools() {