Jump to content

Silivek

Members
  • Posts

    18
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Silivek's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  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. 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
  7. 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.
  8. Can you post the full error?
  9. The Hoglin runs away from Warped Fungus. Maybe try looking into that?
  10. 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()); } }
  11. So that just means my other code is wrong now?
  12. 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()); } }
  13. 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?
  14. I have a listener set to the ColorHandler's function if that's what you mean
  15. 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.
×
×
  • Create New...

Important Information

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