Jump to content

cyberpwn

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by cyberpwn

  1. 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 } } }
  2. is @SubscribeEvent something to import or a placeholder...?
  3. 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!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.