mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-25 15:06:56 -09:00
Update mobnpcspawner.js
This commit is contained in:
parent
0d4e2909ce
commit
25e34113d1
@ -17,13 +17,13 @@
|
|||||||
sheep.$setLocationAndAngles(senderPos.getX(), senderPos.getY(), senderPos.getZ(), senderPos.rotationYaw, senderPos.rotationPitch);
|
sheep.$setLocationAndAngles(senderPos.getX(), senderPos.getY(), senderPos.getZ(), senderPos.rotationYaw, senderPos.rotationPitch);
|
||||||
|
|
||||||
// Disable AI (no AI behavior)
|
// Disable AI (no AI behavior)
|
||||||
sheep.getDataWatcher().updateObject(15, 1); // AI flag, 15 is the byte for AI, 1 means no AI
|
sheep.$getDataWatcher().$updateObject(15, 1); // AI flag, 15 is the byte for AI, 1 means no AI
|
||||||
|
|
||||||
// Disable gravity
|
// Disable gravity
|
||||||
sheep.noGravity = 1;
|
sheep.$noGravity = 1;
|
||||||
|
|
||||||
// Make sheep invincible
|
// Make sheep invincible
|
||||||
sheep.setEntityInvulnerable(1);
|
sheep.$setEntityInvulnerable(1);
|
||||||
|
|
||||||
// Add the sheep to the world
|
// Add the sheep to the world
|
||||||
world.spawnEntityInWorld(sheep);
|
world.spawnEntityInWorld(sheep);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user