I'm trying to recreate World's Hardest game in Minecraft 1.21. But ran into 2 problems
The actual problem, is in corners where vertical and horizontal enemies overlap each other in the first image I have blocks underneath to add and remove tags making the enemies move. repeating command block /execute as @e[tag=up] at @s run teleport @s ~0.2 ~ ~. However since the corners overlap with enemies that go both horizontal and vertical, the corner enemies obtain both up and right tags and move diagonally off the level. IDK how to fix it really as it was the only idea I had to make them move easily.
The second problem isn't really a problem yet, but IDK how to approach it. But if you die by an enemy after collecting coins and keys, if you don't hit a checkpoint you lose those same coins and keys you collected after hitting the previous checkpoint. But IDK how to easily approach that or if I even can.
By the way coins and keys are collected by command blocks raising the score by 1 when you hit a golden or stone pressure plate, the inventory does not play a role in this map
Continue to help post