CitizensDev / Citizens2

Citizens - the premier plugin and API for creating server-side NPCs in Minecraft.
https://citizensnpcs.co
Open Software License 3.0
589 stars 313 forks source link

Scoreboard Trait Should Set COLLISION_RULE #2694

Closed mcmonkey4eva closed 2 years ago

mcmonkey4eva commented 2 years ago

The scoreboard trait should be able to set Option.COLLISION_RULE to OptionStatus.ALWAYS or OptionStatus.NEVER.

This should probably just choose which based on NPC.COLLIDABLE_METADATA

When COLLISION_RULE is set to NEVER, it becomes possible to walk straight through the entity (no collision).

Offhand I don't know what versions do or don't support this feature, other than that recent Minecraft versions all do.

mcmonkey4eva commented 2 years ago

added by https://github.com/CitizensDev/Citizens2/commit/6b30d0670549dbe7950c0990c7ea7169f78d2500