execute as @a[scores={tradeaccept=1..}] run function duckie:tradeverify
this code is in this function called send_messagetwo: # use the temp object to say who to send the thingy to $tellraw $(author) {"text": "Your trade has been accepted","color":"#81fc81"} $scoreboard players set $(name) tradeverify 1 $scoreboard players set $(author) tradeverify 1 execute as @a[scores={tradeaccept=1..}] run function duckie:tradeverify $tellraw $(author) {"text": "im working"}
this is suppose to excute some code when i press it but it doesnt do that
#I need help fixing some code
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
Someone will come and help soon!
💬 While you wait, take this time to provide more context and details.
🙇 After a while, hit the Summon Helpers button to ping the helper team. They'll be happy to help you
✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve
<@&935561184806060073> <@&1202694677766348840>
**🙇 Helpers Arise!**
Please note that you still might not immediately get a response since all helpers are human beings and volunteers (and also might be sleeping right now)
What’s the problem?
give more context
hi
so basically when i add that it doesnt excute the code but when i remove it does
what am i suppose to do
basically
i need the system to do
is
you do /trigger trade
then you click on the player select
then your given a book and you write the name that ur trading with
and then you click the message you get a head
then the person accepts the trade while your holding the head
all of this works
but everything after this doesnt work
you hold the item you want to trade
and you do /trigger tradeaccept
and currently that doesnt work
does the function not work or doesn't it get executed?
it doesnt excute
but it does show in the chat when searching for the function?
Then the trigger seem to not work
put the scoreboard in the sidebar and look if it changes when using the trigger command.
btw did you enable the score again after using /trigger?
ok
so update i changed the system know i got it so everything works expect for 1 thing
which is this macro the first part works but not the autcal function
getnameitem:```# get the data from the book and put it in the temp object
data modify storage minecraft:temp temp.nameitem set from entity @s SelectedItem
run the send function, and give it the temp object
function duckie:senditemname with storage minecraft:temp temp```
senditemname:$give $(author) $(nameitem) $tellraw $(name) {"text":"Im working 4"}
getauthorname: ```# get the data from the book and put it in the temp object
data modify storage minecraft:temp temp.authoritem set from entity @s SelectedItem
run the send function, and give it the temp object
function duckie:senditemauthor with storage minecraft:temp tem```
senditemauthor:$give $(name) $(authoritem) $tellraw $(author) {"text":"Im working 1"}
so like the senditemname and senditemauthor doesnt work