Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $${
- @#skiploading=0
- &pre="&8[&bCrafter&8]&f"
- $$<recipes.txt>
- ARRAYSIZE(@&recipes[],#size)
- DEC(#size,1)
- &elements="Recipes:"
- FOR(#n,0,%#size%)
- SPLIT(",",%@&recipes[%#n%]%,&out[])
- &elements="%&elements%,%&out[0]%"
- NEXT
- PROMPT(&choosen,$$[[%&elements%]])
- SPLIT(",",%&elements%,&choose[])
- INDEXOF(&choose[],#element,%&choosen%)
- DEC(#element,1)
- GETID(%HITX%,%HITY%,%HITZ%,&id)
- IF(&id=="crafting_table")
- LOG(%&pre% Ich crafte nun: %&choosen%)
- SPLIT(",",%@&recipes[%#element%]%,&recipe[])
- //Craftingscript
- KEY(use)
- WAIT(300ms)
- FOR(#recipe,1,9)
- IF(%&recipe[%#recipe%]%=="")
- ELSE
- GETSLOT(%&recipe[%#recipe%]%,#slot,10)
- IF(%#slot%>=0)
- SLOTCLICK(%#slot%)
- SLOTCLICK(%#recipe%)
- ELSE
- LOG("%&pre% Du hast zuwenig von: '%&recipe[%#recipe%]%'")
- ENDIF
- ENDIF
- NEXT
- SLOTCLICK(0,,true)
- //Ende
- ELSE
- LOG(%&pre% Bitte eine Werkbank angucken)
- ENDIF
- }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement