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.

Rudra Mathe

Members
  • Joined

  • Last visited

  1. Please also help me where the error was
  2. Can you help me with this i am new to Java .Please tell me how to make tags
  3. *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(){ } }
  4. Rudra Mathe joined the community
  5. 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

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.