#How Come this code doesnt work
1 messages · Page 1 of 1 (latest)
<@&1201956957406109788>
💬 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
What do you want it to be doing?
to fill the blocks they are touching with air
Ok, well you probably just need to add an at @s after the as @e on each line
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
oh dam thx
like this?
bc i tried this just now and it didnt work
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
ive reverted it now
Ok, now try doing what I instructed again, but read more closely
like this ?
Yes, but you'll probably want to change the last @e in each line to @s as well.
also just so yk this is 1.21
it didnt work
Is this your tick function?
ye
Can you show your folders in the sidebar?
aight
Hmm. Getting any errors in logs?
what logs?
what logs
The output 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:
- Enable logs in the Minecraft Launcher
- Start your game (or restart it if you already have an open instance)
- Enjoy spotting errors getting much easier!
They're very useful for identifying errors
im using modirinth rn
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
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
what do i look for in the logs
none
you got anyother ideas?
<@&935561184806060073> <@&1202694677766348840>
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)
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
im not bc ive got particles above it that work
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 ~ ~ ~
Also these two tags - when do you give them to the arrows?