So I'm working on adding bosses to my minecraft server. I have a line of command blocks that seem to work but then this one messes up.
/execute unless entity @e[tag=DH] run setblock 4620 68 -3090 minecraft:redstone_block
I'm using this to calculate if the boss is dead, and if so place a redstone block that triggers more command blocks, but the redstone block is placed even if the boss is still alive, ruining the ending sequence by playing it when the boss starts. It has a delay on it so it shouldn't power up before the boss itself spawns. I can't find anything about why this is happening. Please help.
Solved - I didn't put the tag on the boss correctly
So I'm working on adding bosses to my minecraft server. I have a line of command blocks that seem to work but then this one messes up.
/execute unless entity @e[tag=DH] run setblock 4620 68 -3090 minecraft:redstone_block
I'm using this to calculate if the boss is dead, and if so place a redstone block that triggers more command blocks, but the redstone block is placed even if the boss is still alive, ruining the ending sequence by playing it when the boss starts. It has a delay on it so it shouldn't power up before the boss itself spawns. I can't find anything about why this is happening. Please help.
Solved - I didn't put the tag on the boss correctly