Posted October 31, 20213 yr My custom entity is spawning, but push is moving only the server side entity. The client remains stationary at the spawned position. Are the coordinates of the entity not automatically synchronized? if (!world.isClientSide()) { WhirlwindEntity whirlwind = ModEntities.WHIRLWIND.get().spawn( (ServerLevel) world, null, null, null, player.blockPosition(), MobSpawnType.TRIGGERED, false, false ); if (whirlwind != null) { Vec3 moveVec = player.getLookAngle().scale(2.0D); whirlwind.push(moveVec.x(), moveVec.y(), moveVec.z()); } }
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.