Hey guys, I'm trying to figure out how to get items to drop. I'm new to modding, and even following tutorials my items wont drop from a test block. Funnily, vanilla items do drop. I am unsure as to whether this is an issue with my items or blocks registries, or the test block itself. I was able to get the modded item to drop by changing
@Override
public Item getItemDropped(IBlockState blockState, Random random, int fortune){
return drop;
}
from BlockTestDrops to
@Override
public Item getItemDropped(IBlockState blockState, Random random, int fortune){
return ModItems.ripariusShard;
}
While it works, it seems inefficient to bloat the blocks package by creating new classes for each block I want to have item drops.
Here are the relevant classes:
ModItems
ModBlocks
BlockTestDrops
Any help would be greatly appreciated