Skip to content

Commit

Permalink
Update mobnpcspawner.js
Browse files Browse the repository at this point in the history
  • Loading branch information
radmanplays authored Sep 30, 2024
1 parent d720b23 commit 0d4e290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examplemods/mobnpcspawner.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
const sheep = EntitySheepClass.constructors[0](world.getRef());

// Set sheep's position to player's position
sheep.$setLocationAndAngles(senderPos.getX(), senderPos.getY(), senderPos.getZ(), 0, 0);
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
Expand Down

0 comments on commit 0d4e290

Please sign in to comment.