From 0224803460c24b51ef34ba8186b67a9e2c757cba Mon Sep 17 00:00:00 2001 From: radmanplays <95340057+radmanplays@users.noreply.github.com> Date: Sun, 29 Sep 2024 16:23:54 +0330 Subject: [PATCH] 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 127295a..6893152 100644 --- a/examplemods/mobnpcspawner.js +++ b/examplemods/mobnpcspawner.js @@ -34,7 +34,7 @@ }); // Add the sheep to the world - world.addEntityToWorld(sheep.getEntityId(), sheep); + world.spawnEntityInWorld(sheep.getEntityId(), sheep); // Notify the player that the sheep has been spawned const ChatComponentTextClass = ModAPI.reflect.getClassById("net.minecraft.util.ChatComponentText");