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.

talera

Members
  • Joined

  • Last visited

Everything posted by talera

  1. ok i have it using RayTraceResult Thanks
  2. IBlockState iblockstate = Minecraft.getMinecraft().world.getBlockState(Minecraft.getMinecraft().objectMouseOver.getBlockPos()); with this and left click on mob the games crashes. have you a idea ?
  3. Thank you!
  4. Is there anything to check if a player keeps the left mouse button pressed? Playerleftclick event only works if you press the left click several times unfortunately not if you hold it down.
  5. Thanks first. I have the following function. I can only break blocks if I have the block in my hand. but if I don't have the block in my hand I can't break it but unfortunately I see the block particle when I hit it in creative. Can you please write me an example of how I might get this into this function? @SubscribeEvent public static void blockBreakEv(final BreakEvent event) { final Block block = event.getState().getBlock(); if (block instanceof Inversiveblock) { final EntityPlayer player = event.getPlayer(); final Item item = player.getHeldItemMainhand().getItem(); if (!(Block.getBlockFromItem(item) instanceof Inversiveblock)) { event.setCanceled(true); return; } } }
  6. I have created a block that is not breakable . But this only works when you are in survival mode. When I am in Creative mode I can destroy it. Is there anything that makes it unbreakable in Creative mode?

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.