spawn_Holzkohle_herstellen.txt 1007 B

1234567891011121314151617181920212223242526272829303132333435
  1. %if %distance $entity-loc $smithloc; <= 4 goto start;
  2. %q term;
  3. @start
  4. %msg all Der Schmied braucht Nachschub an Kohle, um sein neues Eisenschwert bei Glut zu halten. Nimm diesen Baumstamm und dieses Brett und stelle in einem Ofen daraus Holzkohle her. Übergib dem Schmied dann die Holzkohle.;
  5. %setInfo Stelle in einem Ofen Holzkohle her.;
  6. %loadEvent block-click;
  7. @wait1
  8. %wait;
  9. %if $event == block-click && $block-type == furnace goto furnace;
  10. %goto wait1;
  11. @furnace
  12. %unloadEvent block-click;
  13. %loadEvent vilager-give;
  14. %setInfo Bringe dem Schmied nun die Holzkohle.;
  15. @wait2
  16. %wait;
  17. %if $event == villager-give && $item-type == COAL && $item-data == 1 goto checkloc;
  18. %msg all Was soll ich damit?;
  19. %setVar cancel true;
  20. %goto wait2;
  21. @checkloc
  22. %if %distance $villager-loc $smithloc; <= 4 goto give;
  23. %setVar cancel true;
  24. %msg all Tut mir leid, ich bin nicht der Schmied.;
  25. %goto wait2;
  26. @give
  27. %msg all Ich danke dir vielmals. Hier hast du ein Geschenk.;
  28. %giveItemPlayer $player-name IRON_SWORD:0:1;
  29. %endQuest 2;