Hi,
I try to make a skript that allows to apply the glow effect on multiples entities but only visible to the player who executes the command. I try to send a custom packet to a player but that is not enough because it also needs to change the play_server_entity_metadata.
Here is my code and a few helpers:
result with a function:
http://wiki.vg/Entities#Living
https://forums.skunity.com/threads/snow-pyons-code-snippets.242/
https://www.spigotmc.org/threads/glow-effect-for-only-one-client.127634/
https://www.spigotmc.org/threads/simulating-potion-effect-glowing-with-protocollib.218828/
Spigot 1.9.2 / Skript 2.2-fixes-V9b ( official v1.5)
Thank you for your help
I try to make a skript that allows to apply the glow effect on multiples entities but only visible to the player who executes the command. I try to send a custom packet to a player but that is not enough because it also needs to change the play_server_entity_metadata.
Here is my code and a few helpers:
code_language.skript:
command /glow:
trigger:
set {_packet} to new play_server_entity_effect packet
set int pnum 0 of {_packet} to 8
set byte pnum 0 of {_packet} to 24 #effect
set byte pnum 1 of {_packet} to 1 #amplifier
set int pnum 1 of {_packet} to 20 #duration
set byte pnum 2 of {_packet} to 2 # 0=hide particle / 2=show particle
send player packet {_packet}
result with a function:
code_language.skript:
ApplyGlowFor(loop-entity, player)
http://wiki.vg/Entities#Living
https://forums.skunity.com/threads/snow-pyons-code-snippets.242/
https://www.spigotmc.org/threads/glow-effect-for-only-one-client.127634/
https://www.spigotmc.org/threads/simulating-potion-effect-glowing-with-protocollib.218828/
Spigot 1.9.2 / Skript 2.2-fixes-V9b ( official v1.5)
Thank you for your help