On3byt Posted June 9, 2017 Share Posted June 9, 2017 Hey guys, im new and i have big problems to start with a simple mod i dont know where i have to start and i think i need some samples for learning it... I want to do a simple mod : Right Click on grass craft robe if you can Can anyone give me a source code for that ? Later i want to modify my mod to an auto craft mod like if you want craft armor and you need a robe but you have the grass for a robe you will autocraft the missing robe you know? Thanks for help Greetings on3 Link to comment Share on other sites More sharing options...
On3byt Posted June 12, 2017 Author Share Posted June 12, 2017 push Link to comment Share on other sites More sharing options...
Lumina Posted June 12, 2017 Share Posted June 12, 2017 I don't know how to do this and maybe it's not that simple. Why not doing a recipe ? Link to comment Share on other sites More sharing options...
. . . Posted June 12, 2017 Share Posted June 12, 2017 I don't know how to give something ability to right click on something & something happens, but I do know how to make when a key's pressed something happens..so I went ahead & made what you asked! Clicking on the "C" key will make auto-craft rope or woodarmor (if possible)...hopefully, you like this ! Auto-Craft Rope + Log Suit.zip Looking into the modmain.lua should make you learn everything you need to know, to do more auto-craft recipes! Also, I'm not very skilled at coding so I don't know how to make the items you craft go inside your inventory or the armor be equipped if you aren't wearing any, sorry ! Good luck on your project ~! Link to comment Share on other sites More sharing options...
Lumina Posted June 12, 2017 Share Posted June 12, 2017 Ohhh, robe was for rope, i didn't understood that... Link to comment Share on other sites More sharing options...
On3byt Posted June 13, 2017 Author Share Posted June 13, 2017 Ohh sorry i meant rope.. Thanks for your zip i will take a look. I think many questions will be answered with the code Greetings, if i need help i will notice you Link to comment Share on other sites More sharing options...
. . . Posted June 14, 2017 Share Posted June 14, 2017 When your character don't have resources to make any of these crafts they'll now say they can't make them ! 593efdff55873_Auto-CraftRopeLogSuit.zip Link to comment Share on other sites More sharing options...
On3byt Posted June 17, 2017 Author Share Posted June 17, 2017 Do you know how to get the item in the inventory and not on the ground? Link to comment Share on other sites More sharing options...
. . . Posted June 17, 2017 Share Posted June 17, 2017 I tried looking through the inventory.lua to see if I can do that, but I couldn't understand how to do it ... Hopefully someone smarter can help you . Link to comment Share on other sites More sharing options...
On3byt Posted June 18, 2017 Author Share Posted June 18, 2017 okay thank you whats the lua for craftin something from the receipes? maybe is there the function we need ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now