12345678910111213141516171819202122232425262728293031323334353637 |
- %loadEvent air-click;
- %addList todestroy;
- %setVars %getQuestLeader;;
- %if %getItemAmountPlayer $player-name STICK; >= 1 then goto wait;
- %giveItemPlayer $player-name STICK;
- @wait
- %wait;
- %if $event == air-click && $player-item-type == STICK then goto spawn;
- %goto wait;
- @spawn
- %setVar bat %spawnmob %getPlayerLoc $player-name; {id:"Bat"};;
- %setVar pig %spawnmob %getPlayerLoc $player-name; {id:"Pig"};;
- %setVar zombie %spawnmob %getPlayerLoc $player-name; {id:"Zombie"};;
- %setEntitySilent $bat true;
- %setEntitySilent $zombie true;
- %rideEntity $bat $pig;
- %rideEntity $pig $zombie;
- %waitfor 1;
- %hideEntity $bat;
- %hideEntity $zombie;
- %setEntityInvulnerable $bat true;
- %setEntityInvulnerable $pig true;
- %setEntityInvulnerable $zombie true;
- %addListElement todestroy $bat;
- %addListElement todestroy $pig;
- %addListElement todestroy $zombie;
- %sgoto 1200 selfdestroy;
- %goto wait;
- @selfdestroy
- %setVar i 0;
- @selfdestroylabel
- %removeEntity %getListElementAt todestroy $i;;
- %if %inc i; < %getListSize todestroy; then goto selfdestroylabel;
- %goto wait;
|