snow_liquids.txt 551 B

1234567891011121314151617
  1. event.load("projectile_hit");
  2. @wait
  3. wait();
  4. if(isPlayer(shooter)){
  5. if(player.getName(shooter) == "SirTerence7"){
  6. //msg("dev", projectile);
  7. //if(entity.getType(projectile) == "SnowballEntity"){//entity.minecraft.snowball
  8. // msg("dev", "Erfolg");
  9. location = entity.getLocation(projectile);
  10. falling_block_entity = entity.spawn("falling_block", location, "{BlockState:{Name:\"minecraft:snow\"},Time:1,Motion:[0.0,0.0,0.0],DropItem:0,HurtEntities:1}");
  11. //}
  12. //entity.throw(falling_block_entity, x, y, z);
  13. }
  14. }
  15. goto("wait");