monster.txt 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. %loadEvent air-click;
  2. %addList todestroy;
  3. %setVars %getQuestLeader;;
  4. %if %getItemAmountPlayer $player-name STICK; >= 1 then goto wait;
  5. %giveItemPlayer $player-name STICK;
  6. @wait
  7. %wait;
  8. %if $event == air-click && $player-item-type == STICK then goto spawn;
  9. %goto wait;
  10. @spawn
  11. %setVar bat %spawnmob %getPlayerLoc $player-name; {id:"Bat"};;
  12. %setVar pig %spawnmob %getPlayerLoc $player-name; {id:"Pig"};;
  13. %setVar zombie %spawnmob %getPlayerLoc $player-name; {id:"Zombie"};;
  14. %setEntitySilent $bat true;
  15. %setEntitySilent $zombie true;
  16. %rideEntity $bat $pig;
  17. %rideEntity $pig $zombie;
  18. %waitfor 1;
  19. %hideEntity $bat;
  20. %hideEntity $zombie;
  21. %setEntityInvulnerable $bat true;
  22. %setEntityInvulnerable $pig true;
  23. %setEntityInvulnerable $zombie true;
  24. %addListElement todestroy $bat;
  25. %addListElement todestroy $pig;
  26. %addListElement todestroy $zombie;
  27. %sgoto 1200 selfdestroy;
  28. %goto wait;
  29. @selfdestroy
  30. %setVar i 0;
  31. @selfdestroylabel
  32. %removeEntity %getListElementAt todestroy $i;;
  33. %if %inc i; < %getListSize todestroy; then goto selfdestroylabel;
  34. %goto wait;