#(mrcrash) Give item with flag

38 messages · Page 1 of 1 (latest)

river citrus
#

Hi,

I have a script to give a flagged item to the player

The debug say the flag does not exist ?

Script:
https://paste.denizenscript.com/View/116357

Debug:
https://paste.denizenscript.com/View/116356

olive fractalBOT
#

(mrcrash) Give item with flag

olive fractalBOT
#

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.

alpine wharf
#

<player[<[player]>]> is unnecessary because match_player already returns a player tag.
in <server.online_players> is also unnecessary, use is_online.
item_in_hand != air shouldn't work because you're returning the raw item of i@air instead of the material name of air.

#

As for the flag issue...

devout marten
#

!t with_flag[]>

ruby badgerBOT
# devout marten !t with_flag[]>
Cannot Specify Searched Tag

Multiple possible tags: <ItemTag.with_flag[<flag_set_action>]>, <ItemTag.with_flag[<flag_set_action>].duration[<expire_duration>]>.

devout marten
#

flagname:flagvalue

#

You have = instead of :

devout marten
#

ln. 12 is icky

#

!t inventorytag.can_fit

ruby badgerBOT
river citrus
#

Okay now that working pretty well !

#

last thing

#

when i run the command inside another plugin the flag isn't applyed

devout marten
#

paste updated script

river citrus
devout marten
#

By isn't applied do you mean the item doesn't have the level flag

#

or are you talking about the erroring lore and display

river citrus
devout marten
#

It's erroring because you're using the linked player in your lore, which in this case is the person running the command (if any)

#

- if <[give_back]> matches <material[!air]>: what

river citrus
devout marten
devout marten
#

Give me 5 I'll help you out if someone else doesn't get to you first

river citrus
#

I see, probably better:

#

Look like worky

devout marten
#

<[player].is_online> this is redundant, <server.match_player[]> only matches online players

alpine wharf
#

Oh right.

vale leaf
magic sandalBOT
#
Thread Closing Reminder

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.)

#

@river citrus