mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-24 22:51:18 -09:00
Update mobnpcspawner.js
This commit is contained in:
parent
d720b235bd
commit
0d4e2909ce
@ -14,7 +14,7 @@
|
|||||||
const sheep = EntitySheepClass.constructors[0](world.getRef());
|
const sheep = EntitySheepClass.constructors[0](world.getRef());
|
||||||
|
|
||||||
// Set sheep's position to player's position
|
// Set sheep's position to player's position
|
||||||
sheep.$setLocationAndAngles(senderPos.getX(), senderPos.getY(), senderPos.getZ(), 0, 0);
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user