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.

rzh

Members
  • Joined

  • Last visited

Everything posted by rzh

  1. I've searched the API thoroughly, but I can't seem to find a method to get the Entity Object of the shooter of an arrow (AbstractArrowEntity). I am on version 1.16. There is a method to set the shooter, but not to get it... Thanks in advance!
  2. rzh replied to rzh's topic in Modder Support
    This was the problem. Thanks a lot.
  3. @Override public ActionResultType onBlockActivated(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit) { EndermanEntity eman = new EndermanEntity(null, world); eman.setPosition(pos.getX(), pos.getY()+3, pos.getZ()); if (!world.isRemote) world.addEntity(eman); return ActionResultType.SUCCESS; } Can someone tell me why this code crashes? Thanks!
  4. Hi. Just wondering how to spawn mobs in Forge, now that the function spawnEntityInWorld() has been removed. Also, is there a way we can get a list of all available mobs, such that they can be randomly indexed? Thanks!

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.