#particle settings from item data?

1 messages · Page 1 of 1 (latest)

solar phoenix
#

So is there any way i can get the color property i added from the custom data from a item that a player is holding, and then use it to color a particle?
heres the give command for said item: give @s phantom_membrane[item_name="Laser pointer",consumable={consume_seconds:1000000000},item_model="end_rod",custom_data={color:[1,0,0]}]

alpine galleon
#

1,0,0 would be black

#

but yes, you can use a macro

solar phoenix
alpine galleon
#

do you know how macros work?

solar phoenix
alpine galleon
#

you can do function something with entity <entity> <data>

solar phoenix
#

yes i know, but like how do i bridge item data and macro args

solar phoenix
alpine galleon
#

I mean that's basically it

#

but it you have an array you will have to copy the elements to a storage first because you need macro texts

solar phoenix
alpine galleon
#

you make a macro function

#

and call it with the storage

alpine galleon
#

(replace entity with storage)

solar phoenix
#

OH i didnt know that was a possibility

solar phoenix
alpine galleon
#

that's why you have to copy the array elements individually to a storage first