schiff_10_Backe_backe_Kuchen.txt 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. %if %getGlobalVar $player-name schiff9; == true goto start;
  2. %q term;
  3. @start
  4. %msg all Jetzt, wo es uns doch so gut geht, lass uns einen Kuchen backen. Hier hast du drei Eimer, besorge dir alle Zutaten von der Insel. Wenn du alles zusammen hast, stelle einen Kuchen her und platziere ihn auf dem Ofen.;
  5. %msg all Für einen Kuchen brauchst du: 3 Eimer Milch, 2 Zucker, 1 Ei (Huhn rechtsklicken) und 3 Weizen.;
  6. %loadEvent block-break;
  7. %loadEvent entity-click;
  8. %loadEvent craft;
  9. %setVar milk 0;
  10. %setVar canebroken 0;
  11. %setVar sugarcrafted 0;
  12. %setVar eggsgiven 0;
  13. %setVar playerwheat1 %getItemAmountPlayer $player-name WHEAT:0:1;
  14. %spawnMob $shipstartloc CHICKEN;
  15. %spawnMob $shipstartloc COW;
  16. @wait
  17. %wait;
  18. %if $event == block-break && $block-type == SUGAR_CANE_BLOCK && %blockType %modLoc $block-loc 0 -1 0;; == SUGAR_CANE_BLOCK goto harvest;
  19. %if $event == craft && $item-type == SUGAR && $canebroken >= 2 goto craft;
  20. %if $event == entity-click && entity-type == COW goto milk;
  21. %if $event == entity-click && entity-type == CHICKEN goto egg;
  22. %if $event == block-break && $block-type == CROPS && $block-data == 7 goto harvest2;
  23. %goto wait;
  24. @harvest
  25. %setVar cancel false;
  26. %if %blockType %modLoc $block-loc 0 1 0;; == SUGAR_CANE_BLOCK goto add2;
  27. %setVar canebroken %add $canebroken 1;;
  28. %goto wait1;
  29. @add2
  30. %setVar canebroken %add $canebroken 2;;
  31. %goto wait;
  32. @craft
  33. %setVar sugarcrafted %add $sugarcrafted $item-amount;;
  34. %if $sugarcrafted >= 2 goto craft2;
  35. %msg all Es fehlen noch %sub 2 $sugarcrafted; Stück Zucker.;
  36. %goto wait;
  37. @craft2
  38. %setVar sugar true;
  39. %goto checkcake;
  40. @milk
  41. %setVar milk true;
  42. %goto checkcake;
  43. @egg
  44. %giveItemPlayer $player-name EGG:0:1;
  45. %setVar eggsgiven %add $eggsgiven 1;
  46. %if $eggsgiven >= 2 goto egg2;
  47. %goto wait;
  48. @egg2
  49. %setVar egg true;
  50. %goto checkcake;
  51. @harvest2
  52. %setVar cancel false;
  53. %setVar playerwheat2 %getItemAmountPlayer $player-name WHEAT:0:1;
  54. %if %sub $playerwheat2 $playerwheat1; >= 8 goto wheat;
  55. %goto wait1;
  56. @wheat
  57. %setVar wheat true;
  58. %goto checkcake;
  59. @checkcake
  60. %if $wheat == true && $sugar == true && $milk == true && $egg == true goto cake;
  61. %goto wait;
  62. @cake
  63. %unloadEvent entity-click;
  64. %unloadEvent block-break;
  65. %goto wait2;
  66. @wait2
  67. %if $event == craft && $item-type == CAKE goto cake;
  68. %goto wait2;
  69. @cake2
  70. %unloadEvent craft;
  71. %loadEvent block-place;
  72. @wait3
  73. %wait;
  74. %if $event == block-place && $block-loc == $cakeloc && $block-type == CAKE goto endQuest;
  75. %goto wait3;
  76. @endQuest
  77. %setGlobalVar $player-name schiff10 true
  78. %setGlobalVar $player-name schiff9 false;
  79. %msg all Auf das wir noch ein langes Leben haben.;
  80. %endQuest 8;