U
/u/Accurate-Flamingo-15
Guest
**[HELP] Preventing mob/player collision for vanished players on Paper 1.21.11**
Hey all, I'm writing a custom vanish plugin for my Paper 1.21.11 server (Java 21) and I cannot get collision with mobs (cows, pigs, etc.) to stop working while a player is vanished.
Here's everything I've tried so far, none of which have fully fixed the issue:
- `player.setCollidable(false)` — stops the player from pushing mobs but mobs still push the player
- Scoreboard team with `COLLISION_RULE NEVER` via the Bukkit Java API — only works for player-player collision
- Cancelling `EntityTargetEvent` when the target is the vanished player — mobs stop chasing but still collide on contact
- Cancelling `PlayerVelocityEvent` at HIGHEST priority for vanished players — still colliding
- Per-tick velocity reset scheduler — didn't help
**My setup:**
- Paper 1.21.11 (build 127)
- Java 21
- No ProtocolLib dependency (would prefer to avoid it)
- No spectator mode (need the player to stay in their current game mode)
Is there a reliable way to fully disable all entity collision for a specific player in Paper 1.21.11 without spectator mode or ProtocolLib? Any help appreciated.
submitted by /u/Accurate-Flamingo-15
[link] [comments]
Continue reading...
Hey all, I'm writing a custom vanish plugin for my Paper 1.21.11 server (Java 21) and I cannot get collision with mobs (cows, pigs, etc.) to stop working while a player is vanished.
Here's everything I've tried so far, none of which have fully fixed the issue:
- `player.setCollidable(false)` — stops the player from pushing mobs but mobs still push the player
- Scoreboard team with `COLLISION_RULE NEVER` via the Bukkit Java API — only works for player-player collision
- Cancelling `EntityTargetEvent` when the target is the vanished player — mobs stop chasing but still collide on contact
- Cancelling `PlayerVelocityEvent` at HIGHEST priority for vanished players — still colliding
- Per-tick velocity reset scheduler — didn't help
**My setup:**
- Paper 1.21.11 (build 127)
- Java 21
- No ProtocolLib dependency (would prefer to avoid it)
- No spectator mode (need the player to stay in their current game mode)
Is there a reliable way to fully disable all entity collision for a specific player in Paper 1.21.11 without spectator mode or ProtocolLib? Any help appreciated.
submitted by /u/Accurate-Flamingo-15
[link] [comments]
Continue reading...