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.

Leaderboard

Popular Content

Showing content with the highest reputation on 08/01/22 in all areas

  1. It's literally what he said. Where you added this line: e.put(ModEntityTypes.YOUR_ENTITY.get(), EntityClass.setAttributes()); You need to add a @Mod.EventBusSubsriber Like this: @Mod.EventBusSubscriber(modid = baseMmod.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD) public class ModEventBusEvents { @SubscribeEvent public static void entityAttributeEvent(EntityAttributeCreationEvent event) { event.put(ModEntityTypes.PENGUIN.get(), PenguinEntity.setAttributes()); } } If you don't add a @Mod.EventBusSubscriber your mod won't call this class
  2. i find the second @Mod.EventBusSubscriber(modid = baseMmod.MOD_ID, bus = Mod.EventBusSubscriber.Bus.FORGE ) public class modevents { @SubscribeEvent public static void on_toss(ItemTossEvent event) { Entity entity = event.getEntity(); World warudo = entity.level; if (entity instanceof ItemEntity) { ItemEntity item_e = (ItemEntity)entity; ItemStack itemstack = item_e.getItem(); System.out.println("\n ItemTossEvent " + itemstack.getItem().getRegistryName() + "\n"); if (itemstack.getItem() == MItems.INGOT_IRON_RED_HOT.get()) { //item_e.kill(); //MItemEntity drop = new MItemEntity(warudo, (double)(pos.getX() + 0.5F) , (double)(pos.getY() + 1.0F) , (double)(pos.getZ() + 0.5F) , itemstack ); //warudo.addFreshEntity(drop); } } } but the first one no idea
  3. Issue with upgradednetherite - looks like non-threadsafe registration of shield item rendering properties. Contact the mod author.
  4. First you should never just copy/paste from a tutorial. You should try to understand what it is doing at each step. Otherwise you will never be able to fix the inevitable bugs or correct the tutorial code when it is wrong. ๐Ÿ™‚ You have at least 2 errors (both are related to misunderstandings in events/registration) You can read about events (along with other things) on this wiki: https://forge.gemwire.uk/wiki/Main_Page It is important you know how this works, it is fundamental to writing forge mods. 1) You are missing the subscriber definition on your ModEventBusEvents class which means the attributes are never added to your entity https://github.com/Overtekk/Pingoo/blob/4b91d22a1d2851b432f38a861623c90f538a9dbe/src/main/java/net/overtek/pingoo/event/ModEventBusEvents.java#L8 @Mod.EventBusSubscriber(modid = Pingoo.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD) public class ModEventBusEvents { 2) You should be registering your entity renderer in the EntityRenderersEvent.RegisterRenderers the code here is never invoked and it is not the correct way to do it https://github.com/Overtekk/Pingoo/blob/4b91d22a1d2851b432f38a861623c90f538a9dbe/src/main/java/net/overtek/pingoo/Pingoo.java#L46 It should be something like - untested code - don't just copy/paste without confirming I am correct ๐Ÿ™‚ @Mod.EventBusSubscriber(modid = Pingoo.MOD_ID, bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT) public class ClientModEventBusEvents { @SubscribeEvent public static void registerRenderers(EntityRenderersEvent.RegisterRenderers event) { event.registerEntityRenderer(ModEntityTypes.PENGUIN.get(), PenguinRenderer::new); } } NOTE: The Dist.CLIENT, this is a separate class for mod registration events that are only applicable to the client, e.g. graphics like your renderer
  5. Don't, this is the kind of thing mod developers do because they think their mod is more important than everybody else's. ๐Ÿ™‚ Even if you can fix all the issues this causes with vanilla code, there's no way to predict how this might break other mods. You should create a new item. If the user or modpack developer thinks your item is better than the vanilla item, they can change the recipes to use your item.

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.