Advertisement
Guest User

hi

a guest
Mar 15th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. $${
  2. @#skiploading=0
  3. &pre="&8[&bCrafter&8]&f"
  4. $$<recipes.txt>
  5. ARRAYSIZE(@&recipes[],#size)
  6. DEC(#size,1)
  7. &elements="Recipes:"
  8. FOR(#n,0,%#size%)
  9. SPLIT(",",%@&recipes[%#n%]%,&out[])
  10. &elements="%&elements%,%&out[0]%"
  11. NEXT
  12. PROMPT(&choosen,$$[[%&elements%]])
  13. SPLIT(",",%&elements%,&choose[])
  14. INDEXOF(&choose[],#element,%&choosen%)
  15. DEC(#element,1)
  16. GETID(%HITX%,%HITY%,%HITZ%,&id)
  17. IF(&id=="crafting_table")
  18. LOG(%&pre% Ich crafte nun: %&choosen%)
  19. SPLIT(",",%@&recipes[%#element%]%,&recipe[])
  20. //Craftingscript
  21. KEY(use)
  22. WAIT(300ms)
  23. FOR(#recipe,1,9)
  24. IF(%&recipe[%#recipe%]%=="")
  25. ELSE
  26. GETSLOT(%&recipe[%#recipe%]%,#slot,10)
  27. IF(%#slot%>=0)
  28. SLOTCLICK(%#slot%)
  29. SLOTCLICK(%#recipe%)
  30. ELSE
  31. LOG("%&pre% Du hast zuwenig von: '%&recipe[%#recipe%]%'")
  32. ENDIF
  33. ENDIF
  34. NEXT
  35. SLOTCLICK(0,,true)
  36. //Ende
  37. ELSE
  38. LOG(%&pre% Bitte eine Werkbank angucken)
  39. ENDIF
  40. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement