Jump to content

Change Block/Items IDs of an existing map


Pyrolol

Recommended Posts

Hello,

 

I'm currently moving to Forge with Minecraft 1.6.4 and I have some issues because when I opened my server I created items/blocks at really close ID of existings items, and now with minecraft updates I need to constantly change ID of new items/blocks. Before, I was using mcp so it was quite easy to change IDs but with forge it's not so I would like to know if there is any way to convert my map without any losse. (Blocks and items).

 

I'm using Spigot and my map is 3GB actually.

 

To override existing blocks i use that :

 

Block.blocksList[157] = null;

try
{
        Field field = Block.class.getDeclaredField("railActivator");
        field.setAccessible(true);
        Field modifiersfield = Field.class.getDeclaredField("modifiers");
        modifiersfield.setAccessible(true);
    	modifiersfield.setInt(field, field.getModifiers() & ~Modifier.FINAL);
        field.set(Block.class, new IronBlockRailPowered(251).setHardness(0.7F).setStepSound(Block.soundMetalFootstep).setUnlocalizedName("activatorRail").setTextureName("rail_activator"));

 

but I would like to get rid of this and move definitively blocks/items ID. Is there any way ?

 

Thank you :P

Link to comment
Share on other sites

Yeah i'm moving to Forge 1.6.4 because i'm using mcp 1.6.4 right now. I can't update to 1.7.10 because I need Spigot 1.7.10 sources, so i'm waiting for Sponge Project to release their 1.8 versions. I need Forge to have more compatibility with others mods. The only problem I have is these IDs conflicts and that's why I need a way to modify my map to convert items/block with their new IDs.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.