Update mobnpcspawner.js

This commit is contained in:
radmanplays 2024-10-01 17:26:11 +03:30 committed by GitHub
parent 9fd38d89d1
commit 2bb2231d45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,7 +17,7 @@
sheep.$setLocationAndAngles(senderPos.getX(), senderPos.getY(), senderPos.getZ(), senderPos.rotationYaw, senderPos.rotationPitch);
// Disable AI (no AI behavior)
sheep.$getDataWatcher().$updateObject(15, 1); // AI flag, 15 is the byte for AI, 1 means no AI
sheep.$setNoAI(1)
// Disable gravity
sheep.$noGravity = 1;