Without access to the entity data you can't at the moment. If/When we get entity data access you should be able to chain some commands (selecting the pig, checking it's health etc..) but at the moment we can't it really grinds my gears because the entity data and scoreboard stuff really amps up the command block abilities and we're missing both.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
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?
Without access to the entity data you can't at the moment. If/When we get entity data access you should be able to chain some commands (selecting the pig, checking it's health etc..) but at the moment we can't it really grinds my gears because the entity data and scoreboard stuff really amps up the command block abilities and we're missing both.