From 25e34113d17222bb27c7514f43869ac991f0abae Mon Sep 17 00:00:00 2001 From: radmanplays <95340057+radmanplays@users.noreply.github.com> Date: Mon, 30 Sep 2024 16:45:41 +0330 Subject: [PATCH] Update mobnpcspawner.js --- examplemods/mobnpcspawner.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examplemods/mobnpcspawner.js b/examplemods/mobnpcspawner.js index cfbd8d9..7b274e8 100644 --- a/examplemods/mobnpcspawner.js +++ b/examplemods/mobnpcspawner.js @@ -17,13 +17,13 @@ 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.$getDataWatcher().$updateObject(15, 1); // AI flag, 15 is the byte for AI, 1 means no AI // Disable gravity - sheep.noGravity = 1; + sheep.$noGravity = 1; // Make sheep invincible - sheep.setEntityInvulnerable(1); + sheep.$setEntityInvulnerable(1); // Add the sheep to the world world.spawnEntityInWorld(sheep);