-
[1.12] Forge(2443) | PlayerInteractEvent
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 { } } }
-
[1.12] Forge(2443) | PlayerInteractEvent
great!
-
[1.12] Forge(2443) | PlayerInteractEvent
hm... sounds great
-
[1.12] Forge(2443) | PlayerInteractEvent
so: i just have to check event.getWorld().isRemote? (I mean it's cool because i can do different things for server or client)
-
[1.12] Forge(2443) | PlayerInteractEvent
and how do i fix it? I mean: How do i get the event just one time?
-
[1.12] Forge(2443) | PlayerInteractEvent
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?
-
[1.12] Forge(2443) | PlayerInteractEvent
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"); } }
-
[1.12] Forge(2443) | Texture not working
I changed my RegistrationHandler and >voila< https://gist.github.com/anonymous/14634a3890e7a7fee8b4263b8a0ebcc2 But is this the right way?
-
[1.12] Forge(2443) | Texture not working
ok... can you tell me how to do this?
-
[1.12] Forge(2443) | Texture not working
https://gist.github.com/anonymous/a6aaf68b9461057a86010ad5b50d7e70 If you need something else -> let me know
-
[1.12] Forge(2443) | Texture not working
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
IPS spam blocked by CleanTalk.