From 2bb2231d45625c86b13cc0d8d3c15040ede14bc2 Mon Sep 17 00:00:00 2001 From: radmanplays <95340057+radmanplays@users.noreply.github.com> Date: Tue, 1 Oct 2024 17:26:11 +0330 Subject: [PATCH 1/2] Update mobnpcspawner.js --- examplemods/mobnpcspawner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examplemods/mobnpcspawner.js b/examplemods/mobnpcspawner.js index 7b274e8..30c6a55 100644 --- a/examplemods/mobnpcspawner.js +++ b/examplemods/mobnpcspawner.js @@ -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; From c8127ad99d3875e4341f71c850adb7bcd85d4650 Mon Sep 17 00:00:00 2001 From: radmanplays <95340057+radmanplays@users.noreply.github.com> Date: Tue, 1 Oct 2024 17:34:28 +0330 Subject: [PATCH 2/2] Update mobnpcspawner.js --- examplemods/mobnpcspawner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examplemods/mobnpcspawner.js b/examplemods/mobnpcspawner.js index 30c6a55..4d681dd 100644 --- a/examplemods/mobnpcspawner.js +++ b/examplemods/mobnpcspawner.js @@ -23,7 +23,7 @@ sheep.$noGravity = 1; // Make sheep invincible - sheep.$setEntityInvulnerable(1); + sheep.$invulnerable = 1 // Add the sheep to the world world.spawnEntityInWorld(sheep);