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);