Plants composting
This commit is contained in:
parent
e2930887e3
commit
5ef96edfd2
1 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,7 @@ import net.minecraft.block.Block;
|
|||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.Blocks;
|
||||
import net.minecraft.block.LeavesBlock;
|
||||
import net.minecraft.block.Material;
|
||||
import net.minecraft.item.BlockItem;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.tag.BlockTags;
|
||||
|
@ -76,6 +77,9 @@ public class EndTags {
|
|||
else if (block instanceof BlockPedestal) {
|
||||
TagHelper.addTag(PEDESTALS, block);
|
||||
}
|
||||
if (block.getDefaultState().getMaterial().equals(Material.PLANT)) {
|
||||
ComposterBlockAccessor.callRegisterCompostableItem(0.1F, block);
|
||||
}
|
||||
});
|
||||
|
||||
TagHelper.addTag(GEN_TERRAIN, EndBlocks.ENDER_ORE, EndBlocks.FLAVOLITE.stone, EndBlocks.VIOLECITE.stone, EndBlocks.SULPHURIC_ROCK.stone, EndBlocks.BRIMSTONE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue