Set special #ID for item's mod

Started by Zex_ on Mon, 01/04/2016 - 13:01

Topic category: User side tutorials

Last seen on 22:14, 14. Feb 2018
Joined Dec 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Set special #ID for item's mod
Mon, 01/04/2016 - 13:01

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_!

Last seen on 22:14, 14. Feb 2018
Joined Dec 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Little up!
Wed, 01/06/2016 - 14:09

Little up!

Last seen on 22:14, 14. Feb 2018
Joined Dec 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Waiting for help, no one?
Thu, 01/07/2016 - 17:31

Waiting for help, no one?

Last seen on 22:36, 27. Sep 2018
Joined Feb 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Select the custom item you
Tue, 04/12/2016 - 14:55

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

Last seen on 22:33, 5. Aug 2017
Joined Sep 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
RE:Select the custom item you
Tue, 04/12/2016 - 16:27

@#3 Isn't this actually called view source? Btw if u add prntscr.com screenshots, add /direct at the end of the link ;)

Last seen on 22:36, 27. Sep 2018
Joined Feb 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
RE:RE:Select the custom item you
Sun, 04/17/2016 - 17:26

@#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!

Last seen on 16:15, 6. May 2020
Joined Oct 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
There is a button called
Sun, 04/17/2016 - 17:56

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..

Last seen on 13:17, 11. Aug 2016
Joined Jul 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
RE:There is a button called
Sun, 07/10/2016 - 17:41

@#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)

Last seen on 03:21, 12. Feb 2020
Joined Jan 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
Hey you guys, I had this…
Mon, 06/17/2019 - 19:37

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!

Last seen on 03:21, 12. Feb 2020
Joined Jan 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
EDIT! Actually, I made a…
Mon, 06/17/2019 - 20:41

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!