in an event checking the block being harvested, i need a way to render digging fx and destroy fx.
public class Handler
{
@ForgeSubscribe
public void onBlockHarvest(HarvestDropsEvent event)
{
if(event.block == Block.oreIron
&& event.harvester.getCurrentEquippedItem().itemID == Boom.blazePickaxe.itemID)
{
event.drops.clear();
event.drops.add(new ItemStack(Item.ingotIron));
//something to render digging fx with the flame particle using event.block
}
}
}
Lets say i have a pickaxe i am making, and i would like it to drop a diamond block when mined cobblestone, or an axe drop charcoal when mined logs. Is there some sort of event on harvested, or would i override the block method dropped? Thankyou!
Also i am new to the McForge forums, so if i posted in the wrong place or diddnt title it correctly, please kindly let me know!