Update mobnpcspawner.js

This commit is contained in:
radmanplays 2024-09-30 16:17:53 +03:30 committed by GitHub
parent d65d44c2fb
commit 07739d41a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,7 @@
const sheep = EntitySheepClass.constructors[0](world.getRef());
// Set sheep's position to player's position
sheep.setLocationAndAngles(senderPos.getX(), senderPos.getY(), senderPos.getZ());
sheep.setLocationAndAngles(senderPos.getX(), senderPos.getY(), senderPos.getZ(), 0, 0);
// Disable AI (no AI behavior)
sheep.getDataWatcher().updateObject(15, 1); // AI flag, 15 is the byte for AI, 1 means no AI