spawn_Schafsrasur.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. %msg all Nimm dieses Eisen, crafte es zu einer Schere und gehe damit auf die Weide. Ernte von den Schafen ein bisschen Wolle und gehe in die Bauernhütte. Gib dem Bauern mindestens 3 Stück Wolle und die Schere.;
  2. %loadEvent == craft;
  3. %giveItemPlayer $player-name IRON_INGOT:0:2;
  4. %spawnMob $sheeploc SHEEP;
  5. @wait1
  6. %wait;
  7. %if $event == craft && $item-type == SHEARS:0:1 goto craft;
  8. %goto wait1;
  9. @craft
  10. %unloadEvent craft;
  11. %loadEvent entity-shear;
  12. @wait1
  13. %wait;
  14. %if $event == entity-shear && $entity-sheared == false goto shear;
  15. %msg all Dieses Schaf ist bereits geschoren. Gehe zu einem anderen Schaf.;
  16. %goto wait1;
  17. @shear
  18. %setVar cancel true;
  19. %setVar entity-sheared true;
  20. %giveItemPlayer $player-name WOOL:0:3;
  21. %unloadEvent entity-shear;
  22. %loadEvent villager-give;
  23. %setVar given 0;
  24. @wait3
  25. %wait;
  26. %if $event == villager-give && %distance $villager-loc $farmerloc; <= 4 goto checkitem;
  27. %msg all Tut mir leid, ich bin nicht der Farmer.;
  28. %goto wait3;
  29. @checkitem
  30. %if $item-type == WOOL goto give;
  31. %msg all Was soll ich damit?;
  32. %goto wait3;
  33. @give
  34. %setVar given %add $given $item-amount;;
  35. %if $given >= 3 goto endQuest;
  36. %goto wait3;
  37. @endQuest
  38. %msg all Danke für deine Hilfe.;
  39. %endQuest 3;