slime_boots.txt 465 B

1234567891011121314151617181920
  1. event.load("living_pre_hurt");
  2. @wait
  3. wait();
  4. //funktioniert leider nicht, da prehurt zu spät kommt
  5. if(isPlayer(living_entity)){
  6. if(player.getName(living_entity) == "SirTerence7"){
  7. damage_type = damage.getType(damage_source);
  8. if(damage_type == "fall"){
  9. cancel = true;
  10. array = entity.getMotion(living_entity);
  11. x = array[0];
  12. y = math.abs(array[1]);
  13. z = array[2];
  14. entity.throw(living_entity, x, y, z);
  15. }
  16. }
  17. }
  18. goto("wait");