I'm making a parkour map and its on a flat terrain so i wondered if theres a way to kill someone on a certain y level? if so plzz put it below! Thanks!
You will need to use /execute to move the origin to the player. An example, killing players at exactly Y1:
/execute @a ~ ~ ~ kill @p[y=1,r=0]
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/