Anarchick / skript-packet

Another skript's packet addon to replace ThatPacketAddon with skript2.5.2+
MIT License
21 stars 4 forks source link

problem when editing the particle's type in `play_server_world_particles` packet #15

Closed AKtomik closed 1 year ago

AKtomik commented 2 years ago

Hi ! I use the play_server_world_particles packet to show particle to a player. But when i'd like to change the type of the particle by modifying the field 9 with the id of particle desired (id find here), the execution of the skript brutally stop, whithout error when load or when executed. code part :

    set {_packet} to new play_server_world_particles packet
    broadcast "how"
    set field 9 of {_packet} to 6
    broadcast "that work ?"

execution : javaw_yiFZ0A7D1k

using the particle name does not work and send error saying 'use number' : javaw_KsJNskMMHg

so, how you change the particle type in a play_server_world_particles packet correctly ? Else, is it a bug ? Thank you in advance for your help !

Anarchick commented 2 years ago

I don't know why you need to create this packet. Skript already does client side particles

AKtomik commented 2 years ago

I would like to use this method to show custom particles to the player because:

AKtomik commented 1 year ago

so, you dont have any solution to use this packet ?

Anarchick commented 1 year ago

Assuming mc1.19.3, The field 9 of play_server_world_particles is not a number but an NMS object. as said here : https://www.spigotmc.org/threads/protocollib-particles.436986/ , you should use native Skript or addon to do that