1234567891011121314151617181920 |
- event.load("living_pre_hurt");
- @wait
- wait();
- //funktioniert leider nicht, da prehurt zu spät kommt
- if(isPlayer(living_entity)){
- if(player.getName(living_entity) == "SirTerence7"){
- damage_type = damage.getType(damage_source);
- if(damage_type == "fall"){
- cancel = true;
- array = entity.getMotion(living_entity);
- x = array[0];
- y = math.abs(array[1]);
- z = array[2];
- entity.throw(living_entity, x, y, z);
- }
- }
- }
- goto("wait");
|