Jump to content

hook for onBlockDestroy onBlockPlaced, onBlockActivated


Recommended Posts

Posted

im my mod, i need to do stuff when the player places block and remove block (like canceling and giving exp). unfortunately the current PlayerInteractEvent will not filter if the block is actually destroyed or just left clicked. at the moment, my program is giving out exp even when the player only left click any block. The problem is, i cant use removeBlockByPlayer because i would then need a hook for that method for eeeeeveeery block in minecraft, so yeah... plz make a hook for these 3 events ? we would also fix this bug ->

http://www.minecraftforge.net/forum/index.php/topic,3094.0.html

 

 

or if you guys already have a solution id be happy to hear it :D

how to debug 101:http://www.minecraftforge.net/wiki/Debug_101

-hydroflame, author of the forge revolution-

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

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