Jump to content

GameREgistry.registerBlock() is @Deprecated


kwidem

Recommended Posts

It's the Material class setRequiresTool().

 

I've also thought about making a block that requires a tool to harvest, but that method doesn't specify what level of tool is required, only that one is.  How does vanilla minecraft prevent ore blocks from being mined with wooden picks?  I haven't been able to find an example.

 

And what exactly does that "unique block name" in the registerBlock method do?  What does it mean, is it different from setBlockName or LanguageRegistry.addName?

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

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