Blocks that can be broken with the specific tool.

Discussion in 'Spigot Plugin Development' started by Bagga, Dec 5, 2017.

  1. Hey,

    what is the best to get all the blocks a specific tool can break faster?

    Like a pickaxe: All stones things
    Axe: Wood stuff
    .....

    Should I just store all blocks in a list or is there any other way?
     
  2. Depends on if you'd like to use NMS. I mean, after all, the game has to remember which tools are best for what somehow. If you're going to go with the list approach, you can have a go at deciphering the wiki's stuff.

    Otherwise, just from about 20 mins of research, looks like the NMS code has some system involving harvest levels and hardcoded sets. Might be more helpful, at least you get explicit mentions of blocks and all.
     
  3. What are you trying to do? Might be another angle you could come at it form. ;)
     
  4. Ok thank you, I'll look into that.
     

Share This Page