Jump to content

BeStar

Members
  • Posts

    11
  • Joined

  • Last visited

Everything posted by BeStar

  1. Finally i replaced it with: @SubscribeEvent public static void BlockRightClickEvent(PlayerInteractEvent.RightClickBlock event) { // client side if (event.getWorld().isRemote) { if (event.getHand().equals(EnumHand.MAIN_HAND)) { } else { } } // server side else { if (event.getHand().equals(EnumHand.MAIN_HAND)) { } else { } } }
  2. hm... sounds great
  3. so: i just have to check event.getWorld().isRemote? (I mean it's cool because i can do different things for server or client)
  4. and how do i fix it? I mean: How do i get the event just one time?
  5. This is my Log: [12:13:01] [main/INFO] [STDOUT]: [de.bestar.intensiveengineering.addons.MyEventHandler:BlockRightClickEvent:21]: Block [12:13:01] [main/INFO] [STDOUT]: [de.bestar.intensiveengineering.addons.MyEventHandler:BlockRightClickEvent:21]: Block [12:13:01] [Server thread/INFO] [STDOUT]: [de.bestar.intensiveengineering.addons.MyEventHandler:BlockRightClickEvent:21]: Block [12:13:01] [Server thread/INFO] [STDOUT]: [de.bestar.intensiveengineering.addons.MyEventHandler:BlockRightClickEvent:21]: Block 2 times for the Client and 2 times for the logical Server? Why?
  6. Hello, I'm currently whriting on a basic mod for Minecraft. While playing with the events of Minecraft i noticed, that the PlayerInteractEvent.RightClickBlock is fiered four times. Why? Here is my Code: package de.bestar.intensiveengineering.addons; import de.bestar.intensiveengineering.Reference; import net.minecraftforge.event.entity.player.PlayerInteractEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; @Mod.EventBusSubscriber(modid = Reference.modId) public class MyEventHandler { @SubscribeEvent public static void BlockRightClickEvent(PlayerInteractEvent.RightClickBlock event) { System.out.println("\n\nBlock\n"); } }
  7. I changed my RegistrationHandler and >voila< https://gist.github.com/anonymous/14634a3890e7a7fee8b4263b8a0ebcc2 But is this the right way?
  8. ok... can you tell me how to do this?
  9. https://gist.github.com/anonymous/a6aaf68b9461057a86010ad5b50d7e70 If you need something else -> let me know
  10. Hello, I'm currently working on a mod for forge-1.12-14.21.1.2443 (using IntelliJ) First of all i want to add an item to the game but the texture doesn't work. Some information: - I use the registerItems event to register my items - The .json of the item is correct and the texture is in the correct package Can someone help me to fix my code? It isn't much but i've tried many different ways. -> it's still the "missingTexture" texture. https://www.dropbox.com/s/t1ffa43myjwccuh/IntensiveEngeneering.7z?dl=1
×
×
  • Create New...

Important Information

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