SHOW:
|
|
- or go back to the newest paste.
1 | - | command /test: |
1 | + | every 2 seconds: |
2 | - | trigger: |
2 | + | loop all entities: |
3 | - | spawn a skeleton |
3 | + | loop-entity is skeletons set {_hea::*} to health of loop-entity |
4 | - | set name of spawned entity to "豚殺骨" |
4 | + | wait 1 second |
5 | - | loop all entitys around spawned entity in radius 7: |
5 | + | loop {_hea::*}: |
6 | - | loop-entity is pigcommand /test: |
6 | + | if {_hea::*} > health of loop-entity: |
7 | loop all entities around loop-entity in radius 5: | |
8 | set loop-entity-1's target to loop-entity |