Jump to content

[1.7.10] [Solved] Setting the "Pick Block" for Creative


Recommended Posts

I recently released a mod called the Coffee & Tea Mod and I am currently doing a few fixes for it. The cups that you place on the ground are Items, but I use an event to detect that when the player right clicks with them on the ground so that they place the block versions. Thus, I need to make it so that when a player uses the "pick block" ability in Creative they receive the item not the block. I assume I add an override method to the block class?  Any help? TIA.

Creator of the Recipe Expansion Pack mod.


Updated to 1.7.2!

Link to comment
Share on other sites

You need to override the getPickBlock method in your block class. You need to return a ItemStack with your item.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.


1.12 -> 1.13 primer by williewillus.


1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.



Link to comment
Share on other sites

This topic is now closed to further replies.


  • Create New...

Important Information

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