0

This doesn´t work and I dont know why, please any suggestions. Thank you!

/execute if entity @e[type=player,scores={Deaths=1}] run fill -427 4 81 -430 20 200 minecraft:air
15
  • 1
    If you are gonna use @e[type=player] you can just use @a instead. What is the name and criteria of your scoreboard? Remember names are case sensitive. You can also use scoreboard objectives setdisplay sidebar Deaths to watch the scoreboard scores
    – BunnyMerz
    Oct 26 at 19:43
  • yes, I already used the scoreboard display. The criterias for the scoreboards are: /scoreboard objectives add Deaths deathCount and /scoreboard objectives setdisplay list Deaths
    – Kayo
    Oct 26 at 20:17
  • What numbers are on deathcount? if it is above or below 1, the command will not trigger. Try suing say test instead of fill
    – BunnyMerz
    Oct 26 at 20:30
  • The count is on 1 and tbh I dont know what you mean by say test?
    – Kayo
    Oct 26 at 20:32
  • the command /say A Message Here. Just change the command after run to say test. If your player is at the right deathcount and is being targeted appropriatly by the execute, you will get a message on chat. If you do get a message, your problem is the fill command, if you don't get a message, your problem is in the target of if entity <target>
    – BunnyMerz
    Oct 26 at 20:38
0

/execute as @a if score @s deaths matches 1.. run fill -427 4 81 -430 20 200 air

What this does: executes the function as every player, then checks if the player it's executing on has deaths of >= 1, then fills the region if all checks match

Edit: /execute as @a[scores={Deaths=1..}] run fill -427 4 81 -430 20 200 air also works

2
  • 1
    Op isn't asking what the command does, he is asking why it isn't working. Answer is on the comment section. Also, if you are gonna do scores={Deaths=1}, it should be 1..
    – BunnyMerz
    Oct 28 at 2:47
  • @BunnyMerz I know that's not what OP is asking for, but if you're going to use code you found somewhere, its important you know what it does Oct 28 at 3:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.