#How Come this code doesnt work

1 messages · Page 1 of 1 (latest)

smoky mistBOT
#

<@&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
timber granite
tidal juniper
#

What do you want it to be doing?

timber granite
#

to fill the blocks they are touching with air

tidal juniper
#

Ok, well you probably just need to add an at @s after the as @e on each line

timber granite
#

ohhh

#

makes sense

tidal juniper
#

Additionally, at least for the first line, your if entity @e can be @s instead

#

Second line right now is checking if Tag is in the ground, not Tag1

timber granite
#

oh dam thx

timber granite
#

bc i tried this just now and it didnt work

tidal juniper
#

You changed the wrong thing to @s

#

Undo what all you just did, then try again

#

I think that'll be easier than trying to fix it from here

timber granite
tidal juniper
#

Ok, now try doing what I instructed again, but read more closely

tidal juniper
#

Yes, but you'll probably want to change the last @e in each line to @s as well.

timber granite
#

also just so yk this is 1.21

tidal juniper
#

Is this your tick function?

timber granite
tidal juniper
#

Can you show your folders in the sidebar?

timber granite
#

aight

tidal juniper
#

Hmm. Getting any errors in logs?

timber granite
#

what logs?

timber granite
tidal juniper
#

The output logs

naive scarabBOT
#
:information_source: Default Launcher Logs

The logs are where Minecraft displays errors when something goes wrong and can thus help you gain information about why something isn't working for you!
To open the logs:

  1. Enable logs in the Minecraft Launcher
  2. Start your game (or restart it if you already have an open instance)
  3. Enjoy spotting errors getting much easier!
tidal juniper
#

They're very useful for identifying errors

timber granite
#

im using modirinth rn

naive scarabBOT
#
:information_source: Other Launcher Logs

The logs are where Minecraft displays errors when something goes wrong and can thus help you gain information about why something isn't working for you! Opening logs works different for different 3rd party launchers, here's a quick summary for the most popular ones

Prism Launcher
Rightclick Instance > Edit > Settings > Console Settings: Show console while the game is running?

Multi MC
Rightclick Instance > Edit Instance > Settings > Console Settings: Show console while the game is running?

Lunar Client
Settings > Open Logs in File Explorer

tidal juniper
#

Oh, Modrinth isn't there

#

Well Modrinth also has output logs, so find them. They shouldn't be hidden, just somewhere in the launcher settings

timber granite
#

it might be the same as lunar client probably

#

found them

timber granite
tidal juniper
#

Errors

#

If a file failed to load or something

timber granite
timber granite
smoky mistBOT
# smoky mist <@&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)

tidal juniper
#

Relax

#

If you're not getting any errors I see no reason this shouldn't be working. So, you may not be tagging the arrows or whatever they are correctly

timber granite
olive peak
#

why not just do execute at @e[tag=Tag,nbt={inGround:1b}] run setblock ~ ~ ~ air?

#

No need for the if entity since you can just select the entities that are in the ground, and fill ~ ~ ~ ~ ~ ~ is just setblock ~ ~ ~

timber granite
#

oh

#

yr

#

lol

olive peak
#

Also these two tags - when do you give them to the arrows?