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.

Geornamezi

Members
  • Joined

  • Last visited

  1. Hello, thank you so much. I got it working.
  2. Geornamezi joined the community
  3. Hello, I am trying to make event, that triggers when I attack any mob and it will summon primed tnt and it will instantly blow up. What was always working was that I placed block under that entity. My code for placing blocks under entity: @Mod.EventBusSubscriber(modid = Geornamezi.MOD_ID, bus = Mod.EventBusSubscriber.Bus.FORGE, value = Dist.CLIENT) public class ModClientEvents { @SubscribeEvent public static void attackEntity(AttackEntityEvent event) { if (event.getEntityLiving().getHeldItemMainhand().getItem() == RegistryHandler.GEORNAMEZI.get()) { if (event.getTarget().isAlive()) { LivingEntity target = (LivingEntity) event.getTarget(); if (target instanceof Entity) { World world = target.getEntityWorld(); world.setBlockState(target.getPosition().add(0, -1, 0), RegistryHandler.GEORNAMEZI_BLOCK.get().getDefaultState()); } } }} I seen that there is world.createExplosion(), but i dont know, how to get things working inside that brackets. Important thing is that, I am using using Forge 1.16.1 32.0.63 with mappings from July 7, 2020 (because i dont know, how to code with newer and mapped mappings). Thank you for any post on this theme. George

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.