Started by
Zex_
on
Topic category: User side tutorials
Hi everybody.
I'm here to found how we can set a special ID for items create in Mcreator. Effectively, Mcreator attribute random ID for the news items but i would like to select on my own the ID who are affiliates to the items/block/armor etc...
Is this possible? If it is, how can i do?
Hoping they are solutions, friendly Zex_!
Little up!
Waiting for help, no one?
Select the custom item you created, click "Edit code of selected item", find the part where it says this:
static{
block = (new ItemNAME(#));
, and change the number in the parentheses to what you want the item ID to be. That part is somewhere near the bottom, and looks like this: http://prntscr.com/arcp61
@#3 Isn't this actually called view source? Btw if u add prntscr.com screenshots, add /direct at the end of the link ;)
@#3.1 I think they changed its name at the 1.8.9 update of MCreator. Also, why redirect to the imgur page of the image? It's practically the same thing... thanks for the tip though!
There is a button called Preferences at the top of the program (top and right) and if you click it and then you click Block/Item's IDs you can set the first ID of your items, mods, and dimensions and also the archivements and mobs..
@#4 What version is that? I used to change the IDs by the way you said, but we cannot change the IDs there anymore. (I'm using MCreator 1.6.9 for Minecraft 1.9.4)
Hey you guys, I had this same problem and I figuered out how to solve it, so I thought I'd post the solution for anyone else that wants custom id's for their items. In Mcreator 1.8.3, for minecraft 1.12, you go into the item's code and find the section that says "personalmoda:{the name of your item minus spaces and in all lowercase}" and change it to what you want the item ID to be. This change will be overridden by mcreator, so you have to lock the code if you want to keep it. Or, if you prefer, you can just use the mcreator default id, which works like so.
If you item was called Iron Fragment, then the item's id ingame would be personalmoda:ironfragment. you can use these ids in commands to spawn them in.
Hope I helped somebody!
EDIT! Actually, I made a mistake. not every ID begins with personalmoda: , I just forgot that I named my sandbox workspace that! It actually begins with the name of you mod, in all lowercase, no spaces, and a colon, followed by the all lowercase, no space name of the item or block! Sorry for the slip up!