Jump to content

rzh

Members
  • Posts

    4
  • Joined

  • Last visited

rzh's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  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. 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!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.