Set special #ID for item's mod

Started by Zex_ on

Topic category: User side tutorials

Active 7 years ago
Joined Dec 2015
Points:
728

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 11
Set special #ID for item's mod

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

Active 7 years ago
Joined Dec 2015
Points:
728

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 11
Little up!
Wed, 01/06/2016 - 14:09

Little up!

Active 7 years ago
Joined Dec 2015
Points:
728

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 11
Waiting for help, no one?
Thu, 01/07/2016 - 17:31

Waiting for help, no one?

Active 6 years ago
Joined Feb 2016
Points:
721

User statistics:

  • Modifications: 1
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
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

Active 1 year ago
Joined Sep 2015
Points:
758

User statistics:

  • Modifications: 1
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 55
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 ;)

Active 6 years ago
Joined Feb 2016
Points:
721

User statistics:

  • Modifications: 1
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
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!

Active 3 years ago
Joined Oct 2015
Points:
776

User statistics:

  • Modifications: 0
  • Forum topics: 7
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 62
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..

Active 8 years ago
Joined Jul 2015
Points:
712

User statistics:

  • Modifications: 0
  • Forum topics: 0
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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)

Active 5 years ago
Joined Jan 2018
Points:
705

User statistics:

  • Modifications: 1
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
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!

Active 5 years ago
Joined Jan 2018
Points:
705

User statistics:

  • Modifications: 1
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
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!