1.14.3 build fails with error: The method getItemDropped(BlockState, Random, int) is undefined for the type Block
Closed this issue · 3 comments
The method getItemDropped(BlockState, Random, int) is undefined for the type Block /bassebombecraft-1.8/src/main/java/bassebombecraft/block/RandomBookBlock.java
Solution per :https://www.minecraftforge.net/forum/topic/71815-solved1142-custom-blocks-not-dropping-items/
Blocks use loot tables now. You can set it by overriding getLootTable in your block class or it will default to [modid]:blocks/[block registry name]. This translates to the following location of the loot table: /assets/[modid]/loot_tables/blocks/[block registry name].json.
Added loot table JSON in data/bassebombecraft/loot_tables/blocksrandombookblock.json
Closed with commit 8ddac21.