• 0

    posted a message on /execute issues

    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?

    Posted in: Redstone, Commands and Mechanisms
  • To post a comment, please .