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.

BeStar

Members
  • Joined

  • Last visited

  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. so: i just have to check event.getWorld().isRemote? (I mean it's cool because i can do different things for server or client)
  3. and how do i fix it? I mean: How do i get the event just one time?
  4. 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?
  5. 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"); } }
  6. I changed my RegistrationHandler and >voila< https://gist.github.com/anonymous/14634a3890e7a7fee8b4263b8a0ebcc2 But is this the right way?
  7. ok... can you tell me how to do this?
  8. https://gist.github.com/anonymous/a6aaf68b9461057a86010ad5b50d7e70 If you need something else -> let me know
  9. 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

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.