This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
0
So, I'm trying to make this happen:
If a pig's health is 9, then tnt will be summoned at its location and it will explode.
I thought of something like this:
/execute @e[type=pig,????] ~ ~ ~ /summon minecraft:tnt
As you can see, I thought I could use a selector argument to check the pig's health, but there is no such argument.
I also thought I could use scoreboards, but I have no idea if scoreboards apply to entities other than players.
How would you do this?
0
So, I'm trying to make this happen:
If a pig's health is 9, then tnt will be summoned at its location and it will explode.
I thought of something like this:
/execute @e[type=pig,????] ~ ~ ~ /summon minecraft:tnt
As you can see, I thought I could use a selector argument to check the pig's health, but there is no such argument.
I also thought I could use scoreboards, but I have no idea if scoreboards apply to entities other than players.
How would you do this?