mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 09:55:11 +00:00
Add ranged invincibility toggle for NPC projectiles
This commit is contained in:
1 parent
aaa07eeec6
commit
58437e0bbf
7 files changed
+51
-6
No files matched your search
@@ -342,6 +342,14 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> imp
|
||||
return npc.stats.projectilesKeepTerrain;
|
||||
}
|
||||
|
||||
public void setProjectileInvincibility(boolean allowed) {
|
||||
npc.stats.projectileInvincibility = allowed;
|
||||
}
|
||||
|
||||
public boolean getProjectileInvincibility() {
|
||||
return npc.stats.projectileInvincibility;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param message The message the npc will say
|
||||
|
||||
Reference in new issue
Block a user