#(udnek) tipped arrow color
39 messages · Page 1 of 1 (latest)
(udnek) tipped arrow color
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
!t itemtag.color
Returns the color of the leather armor item, potion item, or filled map item.
properties
ColorTag
ItemTag.color
Have you tried this ^
yes, does not work
Did you tried it with an entity or item in inventory?
item
declaration: package: org.bukkit.entity, interface: Arrow
Looks like it’s a method, not in denizen tho i think
As I see, it returns null
Thread is now a Feature thread. This indicates a request for a new feature to the plugin, that both (A) does not already exist and (B) reasonably can be added. If you are unsure whether this applies, use </helpthread:1028674284870180883> to change back to a normal help thread.
this is for a physical entity, not sure where this method is for an item
looks like tipped arrows implement PotionMeta which means we can use getColor() from there
declaration: package: org.bukkit.inventory.meta, interface: PotionMeta
it's already in denizen https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/properties/entity/EntityColor.java#L245
it should should work as far as i can see. if i'm wrong, then it can be added
can you please send a debug?
!debug
If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!
@plain talon this can probably get the easy PR tag
Yeah probably
For anyone thinking about doing this - I believe it should be as simple as updating ItemColor to modern property format and convert it's checks to instanceof the ItemMeta instead of direct material checks? it seems to already use PotionMeta internally
@oak wagon hey mr PR man you should do this one
perchance
isn't implemented yet?
pr is open, just haven't yet gotten around to fixing all of the review comments
well, there's only one that needs to really be addressed, not sure if anything else will be commented after i commit the change
added ref: #commit-log message
@pseudo lava
Has your issue been resolved, or your question been answered?
If so, please use the </resolved:1028673926114594866> command to close your thread.
Or </invalid:1028673926898909185> if it's not possible to resolve.
If not yet resolved, please reply below to tell us what you still need.
(Note that if there is no reply for a few days, this thread will eventually close itself.)
@pseudo lava