#How would I make a marker always be on ground
1 messages · Page 1 of 1 (latest)
Can you be a little more specific?
- what do you have right now (function/command)
- what (unwanted) behavior do you observe
- what do you want to have instead
The "ground" is a pretty vague term. Do you mean the top of a full block? The top of any size of block? What to do with stairs? You name it.
Sorry for the late response but this is the current function that I have
Teleport marker down 1 block
execute as @e[type=marker,tag=greathammer_explosion,limit=1] at @s run tp @s ~ ~-1 ~
Check if block below is air, if it is, run it again
execute as @e[type=marker,tag=greathammer_explosion,limit=1] at @s if block ~ ~-1 ~ air run function trial_by_combat:greathammer/greathammer_ability/explosion/marker/snap_to_ground
What I wanted it to do is teleport to the ground but it doesn't work, if I'm standing on a block it goes underground but if Im more than 3 blocks in the air it's 1 block in the air
Got it to work, it was checking under the marker but not where the marker was currently so that was the main problem, also made it tp up if it was inside a block