Want a better Minecraft server? Read about SpigotMC here!
Separate names with a comma.
Discussion in 'Spigot Plugin Development' started by UberSuperBoss, Jul 1, 2021.
Does anybody know a way to disable the particles when a totem is used? Thanks
First you need a packet handler.
You can use ProtocolLib or create your own ChannelDuplexHandler. Then you need to filter the PacketPlayOutEntityStatus and possibly PacketPlayOutWorldParticles and discard them.
You can also build your own function to run the Totem stuff - an event with a Priority of Monitor (not recommended, I know, but oh well) that listens to PlayerDamageEvent, check it's not cancelled, and if the damage takes the player below 0 HP then remove the Totem from their hand, give them the bonuses manually and just don't send the effect - easy as that.
Maybe it has changed with 1.17