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.

Silivek

Members
  • Joined

  • Last visited

  1. I ran it using the runClient configuration generated by gradlew genEclipseRuns in the command line.
  2. Sorry for the long wait. Yes, I have refreshed it and restarted eclipse.
  3. Macaw's Doors may have one and there is a mod called Little Tiles that you can create one in.
  4. First off: stop being impatient. Second: look it up on google first. I found something immediately when searching.
  5. I forgot I had MOD_ID actually, I went ahead and fixed that, and the ItemBase. The build.gradle should have all the correct information now, but the Minecraft instance Eclipse runs still doesn't have my mod in it.
  6. Silivek changed their profile photo
  7. I'm pretty sure my code is horrendous and there are most likely files in the wrong places, but I can't figure out what is wrong. Minecraft will load up fine but only have forge running. My GitHub page is here
  8. Also, make sure every single mod on the server and client are the same version as well as the forge version. Although they are both 1.16.4 they might not be the same forge version.
  9. Can you post the full error?
  10. The Hoglin runs away from Warped Fungus. Maybe try looking into that?
  11. I got it working! Thanks for your help! package soii.races.client; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.client.event.ColorHandlerEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod.EventBusSubscriber; import soii.races.items.ChangerItem; import soii.races.util.RegistryHandler; @EventBusSubscriber(value = Dist.CLIENT) public class ColorHandlers { @SubscribeEvent public static void registerItemColors(ColorHandlerEvent.Item event) { event.getItemColors().register(ChangerItem::getItemColor, RegistryHandler.CHANGER_TOKEN.get()); } }
  12. So that just means my other code is wrong now?
  13. Okay, I added a tag to the Handler, is this more correct? It caused the println to happen once at the beginning, but not ingame. package soii.races.client; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.client.event.ColorHandlerEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod.EventBusSubscriber; import soii.races.ChangerColor; import soii.races.items.ChangerItem; @EventBusSubscriber(value = Dist.CLIENT) public class ColorHandlers { @SubscribeEvent public static void registerItemColors(ColorHandlerEvent.Item event) { System.out.println("Working!"); event.getItemColors().register(new ChangerColor(), new ChangerItem()); } }
  14. Sorry I took so long to get back to you. I was a little bit busy. I did a println in the event handler and it did not output anything, so does that mean I'm using the wrong event or that my item isn't triggering the event?
  15. I have a listener set to the ColorHandler's function if that's what you mean
  16. There is a function in Block that is called onBlockHarvested, you can probably start from there and just replace the block with the other block.

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.