Jump to content

Recommended Posts

Posted

Hello I was recently coding on MC version 1.16.4 and at the starting the client launched successfully but after some coding i got the error {

[13:12:57] [modloading-worker-1/DEBUG] [ne.mi.fm.ja.FMLModContainer/LOADING]: Firing event for modid forge : FMLConstructModEvent
[13:12:57] [modloading-worker-1/DEBUG] [ne.mi.fm.ja.FMLModContainer/LOADING]: Fired event for modid forge : FMLConstructModEvent
[13:12:58] [Render thread/FATAL] [ne.mi.fm.ModLoader/LOADING]: Failed to complete lifecycle event CONSTRUCT, 1 errors found
[13:12:58] [Render thread/WARN] [minecraft/GameSettings]: Removed resource pack mod_resources from options because it doesn't seem to exist anymore
[13:12:58] [Render thread/ERROR] [ne.mi.fm.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.sound.SoundLoadEvent to a broken mod state
[13:12:59] [Render thread/ERROR] [ne.mi.fm.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.ColorHandlerEvent$Block to a broken mod state
[13:12:59] [Render thread/ERROR] [ne.mi.fm.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.ColorHandlerEvent$Item to a broken mod state
[13:13:02] [Render thread/ERROR] [ne.mi.fm.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.ParticleFactoryRegisterEvent to a broken mod state
[13:13:02] [Render thread/INFO] [mojang/NarratorWindows]: Narrator library for x64 successfully loaded
[13:13:03] [Render thread/INFO] [minecraft/SimpleReloadableResourceManager]: Reloading ResourceManager: Default, Programmer Art
[13:13:04] [Worker-Main-4/ERROR] [ne.mi.fm.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.ModelRegistryEvent to a broken mod state
[13:13:07] [Worker-Main-5/ERROR] [ne.mi.fm.ModLoader/]: Cowardly refusing to send event net.minecraftforge.client.event.TextureStitchEvent$Pre to a broken mod state

Process finished with exit code -1}

Please help me with this

Posted (edited)

  Reveal hidden contents

 

*Finished

Edited by diesieben07
spoiler
Posted (edited)

*Crash Report

  Reveal hidden contents

Edited by diesieben07
spoiler
Posted

*ModItem

package com.example.examplemod.main;

import com.example.examplemod.ExampleMod;
import net.minecraft.item.Item;
import net.minecraft.tags.*;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.fml.RegistryObject;

import java.util.List;

public class ModItems {
    protected static final TagRegistry<Item> collection = TagRegistryManager.create(new ResourceLocation("item"), ITagCollectionSupplier::getItemTags);
    public static final RegistryObject<Item> CARBON  = Registration.ITEMS.register("carbon",()->
            new Item(new Item.Properties().group(ExampleMod.Chemicals)));
    public static final RegistryObject<Item> HYDROGEN  = Registration.ITEMS.register("hydrogen",()->
            new Item(new Item.Properties().group(ExampleMod.Chemicals)));
    public static final RegistryObject<Item> O2 = Registration.ITEMS.register("o2",()->
            new Item(new Item.Properties().group(ExampleMod.Chemicals)));
    public static final RegistryObject<Item>  IRON = Registration.ITEMS.register("iron", ()->
            new Item(new Item.Properties().group(ExampleMod.Chemicals)));
    public static final RegistryObject<Item> NITROGEN  = Registration.ITEMS.register("nitrogen",()->
            new Item(new Item.Properties().group(ExampleMod.Chemicals)));

    public static final RegistryObject<Item> HELIUM = Registration.ITEMS.register("helium",()->
            new Item(new Item.Properties().group(ExampleMod.Chemicals)));
    public static final RegistryObject<Item> LEAD = Registration.ITEMS.register("lead",()->
            new Item(new Item.Properties().group(ExampleMod.Chemicals)));
    public static final RegistryObject<Item> STEEL = Registration.ITEMS.register("steel",()->
            new Item(new Item.Properties().group(ExampleMod.Chemicals)));
    public static final RegistryObject<Item> BUCKET_OF_MOLTEN_IRON = Registration.ITEMS.register("molten_steel",()->
            new Item(new Item.Properties().group(ExampleMod.Chemicals)));
    public static final RegistryObject<SpecialItem> SPECIALITEM = Registration.ITEMS.register("specila_item",()->
            new SpecialItem(new Item.Properties().group(ExampleMod.Chemicals)));
    public static final ITag.INamedTag<Item> RUBY = makeWrapperTag("ruby");

    public static ITag.INamedTag<Item> makeWrapperTag(String id) {
        return collection.createTag(id);
    }
    public static net.minecraftforge.common.Tags.IOptionalNamedTag<Item> createOptional(ResourceLocation name) {
        return createOptional(name, null);
    }

    public static net.minecraftforge.common.Tags.IOptionalNamedTag<Item> createOptional(ResourceLocation name, @javax.annotation.Nullable java.util.Set<java.util.function.Supplier<Item>> defaults) {
        return collection.createOptional(name, defaults);
    }

    public static ITagCollection<Item> getCollection() {
        return collection.getCollection();
    }

    public static List<? extends ITag.INamedTag<Item>> getAllTags() {
        return collection.getTags();
    }




    static void registerItems(){
        
    }
}

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.