Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hi,

I have changed one of my block Ids.

Normally, when you open a world, where some Ids haven't got a block, opens a gui where you have to click Yes and No. These gui is there, but in the next second Minecraft crashs and says Shutting down internal server....

 

Console:

2013-03-25 16:30:34 [sCHWERWIEGEND] [fml.ItemTracker] Missing items : {901=Item 901, Type randomadditions.ItemBlockRandom, owned by RandomAdditions, ordinal 1, name null, claimedModId null}

2013-03-25 16:30:34 [sCHWERWIEGEND] [fml.ItemTracker] Mismatched items : {139=(Item 139, Type net.minecraft.item.ItemMultiTextureTile, owned by Minecraft, ordinal 6, name null, claimedModId null, Item 139, Type net.minecraft.item.ItemMultiTextureTile, owned by Minecraft, ordinal 7, name null, claimedModId null), 66=(Item 66, Type net.minecraft.block.BlockRail, owned by Minecraft, ordinal 1, name null, claimedModId null, Item 66, Type net.minecraft.block.BlockRail, owned by Minecraft, ordinal 0, name null, claimedModId null), 6=(Item 6, Type net.minecraft.item.ItemMultiTextureTile, owned by Minecraft, ordinal 5, name null, claimedModId null, Item 6, Type net.minecraft.item.ItemMultiTextureTile, owned by Minecraft, ordinal 6, name null, claimedModId null), 143=(Item 143, Type net.minecraft.block.BlockButton, owned by Minecraft, ordinal 1, name null, claimedModId null, Item 143, Type net.minecraft.block.BlockButtonWood, owned by Minecraft, ordinal 0, name null, claimedModId null), 77=(Item 77, Type net.minecraft.block.BlockButton, owned by Minecraft, ordinal 0, name null, claimedModId null, Item 77, Type net.minecraft.block.BlockButtonStone, owned by Minecraft, ordinal 0, name null, claimedModId null), 78=(Item 78, Type net.minecraft.block.BlockSnow, owned by Minecraft, ordinal 0, name null, claimedModId null, Item 78, Type net.minecraft.item.ItemSnow, owned by Minecraft, ordinal 0, name null, claimedModId null), 27=(Item 27, Type net.minecraft.block.BlockRail, owned by Minecraft, ordinal 0, name null, claimedModId null, Item 27, Type net.minecraft.block.BlockRailPowered, owned by Minecraft, ordinal 0, name null, claimedModId null)}

 

My Block is a Block, which uses Metadata, so i have also an ItemBlock.

Have no idea what went wrong, so i looked into the code.

Forge checks if an Id hasn't got a Block or an Item, if not it will check if the Mod irgnore it. But i find no way to say that my mod ignore it.

if (!isModIgnoredForIdValidation(diff.getModId()))
                {
                    foundNonIgnored = true;
                }

The function isModIgnoredForIdValidation is checking if this map:

private static Map<String,String> ignoredMods;

contains my Mods. But i can't add my Mod to this list.

Can anybody help me?

Thanks previously.

And what happens if you try to create a new world?

If you guys dont get it.. then well ya.. try harder...

  • Author

Then everything works fine, but i can't say that every world before this version of my Mod can't be used anymore.  :(

Well why did you change the blockID then if you didn't want to corrupt old worlds?

Anyways I guess one could apply some script to the world file and then swap the old BlockID out for the new one which would solve the issues.

If you guys dont get it.. then well ya.. try harder...

  • Author

That what i'm trying to do, but Minecraft crashs before i can do it.

I use the event onChunkLoading, then i check the version of the Chunk .If it needs an update, i check every block and set the new ID, also i Chest and all other kind of storage. On the onPlayerLogin event, i check the iventory of the players.

But the world crashs before all this.

for the script, I think it will be easier to do it out of Minecraft, just run it on the world folder and make it sort out the ID's

But then again, you have to be sure to know the basics of programming and you should be able to do it inn whatever language you are most familiar with :)

PS: Before you start testing your scripts etc. do a backup of the worlds or else you can end up losing your world over a simple logic mistake :P

If you guys dont get it.. then well ya.. try harder...

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.