Update mobnpcspawner.js

This commit is contained in:
radmanplays 2024-09-29 16:25:45 +03:30 committed by GitHub
parent bbba5feead
commit 0ca46f67af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -23,7 +23,7 @@
sheep.noGravity = 1;
// Make sheep invincible
sheep.setEntityInvulnerable(true);
sheep.setEntityInvulnerable(1);
// Prevent the sheep from taking any damage
const DamageSourceClass = ModAPI.reflect.getClassById("net.minecraft.util.DamageSource");