Jump to content

[1.8] Some vanilla items not found / remapping missing elements


Recommended Posts

Posted

After upgrading my mods from 1.7.10 to 1.8, I worried that some of my own blocks and items might not carry over from my old worlds. I never expected to get errors on essential vanilla objects. However, a dozen vanilla items came up missing on my first try with an old (1.7.10) practice SP world (created at 1.6.4 I think).

 

I've searched both Forge and Google for this phenomenon, and I haven't found much, so I haven't found guidance, and I suspect that it's happening because of something I did (perhaps long ago).

 

Here's what the errors look like:

[12:17:06] [server thread/ERROR] [FML/]: There are unidentified mappings in this world - we are going to attempt to process anyway
[12:17:06] [server thread/ERROR] [FML/]: Unidentified item: minecraft:flowing_water, id 8
[12:17:06] [server thread/ERROR] [FML/]: Unidentified item: minecraft:potatoes, id 142
[12:17:06] [server thread/ERROR] [FML/]: Unidentified item: minecraft:cocoa, id 127
[12:17:06] [server thread/ERROR] [FML/]: Unidentified item: minecraft:carrots, id 141
[12:17:06] [server thread/ERROR] [FML/]: Unidentified item: minecraft:cooked_fished, id 350
[12:17:06] [server thread/ERROR] [FML/]: Unidentified item: minecraft:double_wooden_slab, id 125
[12:17:06] [server thread/ERROR] [FML/]: Unidentified item: minecraft:fire, id 51
[12:17:06] [server thread/ERROR] [FML/]: Unidentified item: minecraft:flowing_lava, id 10
[12:17:06] [server thread/ERROR] [FML/]: Unidentified item: minecraft:lava, id 11
[12:17:06] [server thread/ERROR] [FML/]: Unidentified item: minecraft:water, id 9
[12:17:06] [server thread/ERROR] [FML/]: Unidentified item: minecraft:end_portal, id 119
[12:17:06] [server thread/ERROR] [FML/]: Unidentified item: minecraft:double_stone_slab, id 43
[12:17:06] [server thread/ERROR] [FML/]: Unidentified item: minecraft:portal, id 90

 

It's just these 13 items. Do these pertain to corresponding blocks, or just the item-blocks themselves? It would be weird to step into a world from which all lava had been removed. I might find diamonds under former deep-cave lava lakes  :)

 

I don't see any rhyme or reason for these items to cause problems. My mods don't involve any of them. Any suggestions on how to investigate? Or should I ignore the warnings and "forge" ahead?

 

My ultimate goal is to upgrade my modded multiplayer server world. I'll back it up and see if I get similar errors there too.

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Posted

Because one of my mods absorbed another (changing the modid on a few of my own items and blocks), I'm subscribing to the FMLMissingMappingsEvent. Besides handling my own changed names, I want to handle some missing vanilla items if I can.

 

Most of the missing "items" are blocks that have no corresponding inventory or drop. Fire? Flowing lava? There are just four worthy of remapping.

 

Potatoes (plural) remaps to potato (singular); likewise carrots. Cooked_fished remaps to cooked_fish. However, I'm stumped by cocoa. It looks like the cocoa item has been replaced by dye, which has subtypes, cocoa being BROWN.

 

Looking at the remap methods in FMLMissingMappingsEvent, I don't see how to specify an item subtype. Though it's hardly vital (I can probably replace cocoa stockpiles by adventuring faster than I can figure out how to replace cocoa item stacks by programming), I am curious to know if there's a way.

 

If not, then perhaps the FMLMissingMappingsEvent needs a remap method that conveys subtype (asserts hasSubtypes=true and then passes along a damage value).

 

Finally, if anyone has done missing block/item remapping, I'd love to see an example or tutorial so I can check my work.

 

Thanks!

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

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



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • logs too big for one pastebin https://pastebin.com/ZjUGHu3u  https://pastebin.com/RqCUZf3X  https://pastebin.com/6ZPS99nD
    • You probably used jd-gui to open it, didn't you? Nothing wrong with that, I also made that mistake, except that Notch was a smart guy and he obfuscated the code. That's why you only see files called "a", "b", "c" and then a file that combines them all. As I said, use RetroMCP to deobfuscate the code so that you will 100% understand it and be able to navigate it.
    • Decompiling minecraft indev, infdev, alpha, beta or whichever legacy version is really easy. I'm not a plug, I just also got interested in modding legacy versions (Infdev to be specific). Use https://github.com/MCPHackers/RetroMCP-Java Once you install their client and the Zulu Architecture that they say they recommend (or use your own Java). I encountered some problems, so I run it with: "java -jar RetroMCP-Java-CLI.jar". You should run it in a seperate folder (not in downloads), otherwise the files and folders will go all over the place. How to use RetroMCP: Type setup (every time you want change version), copy-paste the version number from their list (they support indev), write "decompile" and done! The code will now be deobfuscated and filenames will be normal, instead of "a", "b" and "c"! Hope I helped you, but I don't expect you to reply, as this discussion is 9 years old! What a piece of history!  
    • I know that this may be a basic question, but I am very new to modding. I am trying to have it so that I can create modified Vanilla loot tables that use a custom enchantment as a condition (i.e. enchantment present = item). However, I am having trouble trying to implement this; the LootItemRandomChanceWithEnchantedBonusCondition constructor needs a Holder<Enchantment> and I am unable to use the getOrThrow() method on the custom enchantment declared in my mod's enchantments class. Here is what I have so far in the GLM:   protected void start(HolderLookup.Provider registries) { HolderLookup.RegistryLookup<Enchantment> registrylookup = registries.lookupOrThrow(Registries.ENCHANTMENT); LootItemRandomChanceWithEnchantedBonusCondition lootItemRandomChanceWithEnchantedBonusCondition = new LootItemRandomChanceWithEnchantedBonusCondition(0.0f, LevelBasedValue.perLevel(0.07f), registrylookup.getOrThrow(*enchantment here*)); this.add("nebu_from_deepslate", new AddItemModifier(new LootItemCondition[]{ LootItemBlockStatePropertyCondition.hasBlockStateProperties(Blocks.DEEPSLATE).build(), LootItemRandomChanceCondition.randomChance(0.25f).build(), lootItemRandomChanceWithEnchantedBonusCondition }, OrichalcumItems.NEBU.get())); }   Inserting Enchantments.[vanilla enchantment here] actually works but trying to declare an enchantment from my custom enchantments class as [mod enchantment class].[custom enchantment] does not work even though they are both a ResourceKey and are registered in Registries.ENCHANTMENT. Basically, how would I go about making it so that a custom enchantment declared as a ResourceKey<Enchantment> of value ResourceKey.create(Registries.ENCHANTMENT, ResourceLocation.fromNamespaceAndPath([modid], [name])), declared in a seperate enchantments class, can be used in the LootItemRandomChanceWithEnchantedBonusCondition constructor as a Holder? I can't use getOrThrow() because there is no level or block entity/entity in the start() method and it is running as datagen. It's driving me nuts.
  • Topics

×
×
  • Create New...

Important Information

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