What Block/Item ID's are save to use for a mod?

What Block/Item ID's are save to use for a mod? - Collection of stainless steel straight and bent straws placed on reusable bags on table

I am making a mod for minecraft and I want to know which ID's can be used and which ones are taken by the game allready? I mean which Block/Item ID's (basically a number used to load a block in minecraft)

which ID's are safe to use for my own mod?



Best Answer

Use a high number, and try it. The game will tell you (in a crash report) if you've used an invalid or taken ID.

Once you've found a free ID, you're not done yet though. Use it as the default, but add a config file and read it from there so that end-users can change it. This makes it possible to fix ID conflicts between different mods and makes ID conflicts people run into not your problem.




Pictures about "What Block/Item ID's are save to use for a mod?"

What Block/Item ID's are save to use for a mod? - Woman unscrewing lid from bottle while sorting trash
What Block/Item ID's are save to use for a mod? - Glass jars and crumpled paper on wooden table
What Block/Item ID's are save to use for a mod? - Closeup of plastic container full of paper placed on blurred background of kitchen in daytime



How do you get a mod block ID?

You can press F3 + H which will enable tooltips. You can now hover over an item or block to see its id.

How do you see what mod an item is from Minecraft?

There are 2 ways to see the mod, one easy one hard:
  • Install NEI, it will display the mod the item came from in the tool tip.
  • Use the Open Block Donation Station. If you put the item in it will link you to the mod/mod author's page so you can determine the source.


  • What Minecraft mod tells you what blocks are?

    Think of it as a different flavor, serving a similar function but in a different way. It displays information about blocks and entities when you look at them. WIT also has an API for modders to work with.



    Minecraft: Block IDs \u0026 Item IDs




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Sarah Chai, SHVETS production, SHVETS production, SHVETS production