#Why the hell does this command not work in a main.mcfunction but it does work when i manually run it

1 messages · Page 1 of 1 (latest)

old jewel
#

execute as @e[type=item] if items entity @s contents barrel[custom_name='{"extra":[{"italic":false,"text":"Class Table"},{"font":"aeternum:gui","text":"\\u0003"},{"color":"white","font":"aeternum:gui","text":""}],"text":""}'] run kill @s

I am utterly confused

charred falconBOT
#

<@&1201956957406109788>

Someone will come and help soon!

💬 While you wait, take this time to provide more context and details.

✅ Once your question has been resolved (or you no longer need it), please click Resolve Question or run /resolve

old jewel
#

if i use a command block or run it in chat it works fine??

charred falconBOT
# charred falcon <@&1201956957406109788>

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

oak forum
#

It’ll be something about the structure of your datapack I reckln - are you sure the function exists?

#

Does it show up in autocomplete with the /function command?

old jewel
#

im gonna be completely honest

#

i am stupid

#

i was editing the wrong file this entire time 😭

charred falconBOT
#
Question Closed

Your question, #1316667114022502450 (Why the hell does this command not work in a main.mcfunction but it does work when i manually run it), was resolved!

Original Message

#1316667114022502450 message

Duration open

1h52m

charred falconBOT
#
Closed for inactivity

This question has been inactive for some time, so it's going to be closed for inactivity. If you still need it, please disregard this message.

#

Re-opened the channel. Make sure to close it again once you're done.

#
Question Closed

Your question, #1316667114022502450 (Why the hell does this command not work in a main.mcfunction but it does work when i manually run it), was resolved!

Original Message

#1316667114022502450 message

Duration open

3d2h7m

charred falconBOT
#
Closed for inactivity

This question has been inactive for some time, so it's going to be closed for inactivity. If you still need it, please disregard this message.

#

Re-opened the channel. Make sure to close it again once you're done.