make cotton compostable

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

View File

@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.10.6+build.214
# Mod Properties
mod_version = 1.16.4.0
mod_version = 1.16.4.1
maven_group = de.jottyfan.minecraft
archives_base_name = quickiefabric

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() {