#Code isn't working it is not giving me a error pls help

1 messages · Page 1 of 1 (latest)

gritty bramble
#

when i hit the yes button it deosnt do anything yes i tried debugging its suppouse to send the player that wrote the book a message saying there trade was accepted then if they do /trigger tradeaccept it will give the other player there SelectedItem

echo vaultBOT
#

<@&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
rose sluice
#

Dude

gritty bramble
#

its not the skull thing

#

i got past that

#

i found out how

#

know my code isnt working

gritty bramble
rose sluice
#

You need to provide more information. You cannot just throw your pack at us and expect us to dissect it

#

What is not working? What should it be doing? What is it doing instead? What have you already tried?

gritty bramble
#

ok let me re write it

rose sluice
#

Good idea!

gritty bramble
#

there

#

and it does nothing

rose sluice
#

I can't help you if you won't make any effort to actively seek help. This is not an adequate description of what should be happening vs what is, you haven't provided the code so we can actually assist, and you haven't explained what you've tried.

gritty bramble
#

i changed it yet again with more info

rose sluice
#

That's not sufficient, and stop just editing

gritty bramble
#

ive tried debugging it doesnt even say the debug message is set it to say

rose sluice
#

Answer the question here so we can actually keep track of the conversation

gritty bramble
#

ok so its suppouse to send the player that wrote the book with the person they wanted to trade with a message and if they /trigger tradeaccept it will trade there selected item but it wont work and i dont know why the plugin im using to see if theres errors is not saying anything

#

ive also tried name checking the functions everything is spelled correctly

rose sluice
#

That's great but surely you understand I can't just take your word for it. you need to show the code that you want fixed

#

Code for the tellraw would be good too.

gritty bramble
#

its literally in the name i have no idea in god green earth what code isnt working

rose sluice
#

Well I don't either cause I can't see it 🤷🏼‍♂️

gritty bramble
#

yes macro:```# get the data from the book and put it in the temp object
data modify storage minecraft:temp temp.author set from entity @s SelectedItem.tag.SkullOwner.Name

run the send function, and give it the temp object

function duckie:send_messagetwo with storage minecraft:temp temp```

#

send_messagetwo:# use the temp object to say who to send the thingy to $tellraw $(author) {"text": "Your trade has been accepted","color":"#81fc81"} $clear $(author) player_head $scoreboard players set $(name) tradeverify 1 $scoreboard players set $(author) tradeverify 1 $execute as $(name)[scores={tradeaccept=1..}] run function duckie:tradeverify tellraw @a {"text": "im working"}

#

tradeverify:$execute as $(author)[scores={tradeverify=1..}] run function duckie:getauthoritem $execute as $(name)[scores=(tradeverify=1..)] run function duckie:getnameitem

#

getauthoritem: ```# 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 temp```

#

senditemauthor:$give $(name) $(authoritem)

#

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```

rose sluice
#

If you're just gonna send every function file in here then I'm going to assume you don't want serious help and are just engaging in malicious compliance

gritty bramble
#

senditemname:$give $(author) $(authoritem)

rose sluice
#

Good luck 🫡

gritty bramble
#

i srsly just

#

BOI

echo vaultBOT
# echo vault <@&1201956957406109788>

<@&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)

hazy fractal
#

This is a lot to just throw at us helpers lol

gritty bramble
#

i dont know what in gods green earth whats happening

hazy fractal
#

I would pretty much have to remake your datapack to see what’s going on

#

😅

gritty bramble
#

i sent the files

#

i sent the files

hazy fractal
#

You’re gonna have to localize your problem.

#

There are a lot of things that could be wrong.

gritty bramble
#

i have no idea whats wrong in the code

#

ok

#

wdym localize

#

what does localize mean

hazy fractal
#

Find out the file or two where the error/problem is taking g place.

gritty bramble
#

it doesnt tell me

#

i dont know

#

why

#

its not sending any errors

#

this boi over here said i was doing malicous compliance when i was just trying to figure it out

#

i try debugging at the source file

#

it doesnt say anything at all

#

wait

gritty bramble
#

$execute as $(name)[scores={tradeaccept=1..}] run function duckie:tradeverify its this little rat

hazy fractal
#

Lol

gritty bramble