devourerofsugar Posted March 30, 2017 Share Posted March 30, 2017 Hey everybody. Pretty much what the titles says. For example I would like to make the backpack show up first in the survival tab. Can anyone help? Link to comment https://forums.kleientertainment.com/forums/topic/77070-how-to-change-the-order-of-recipes-in-a-tab/ Share on other sites More sharing options...
Serpens Posted March 30, 2017 Share Posted March 30, 2017 It is possible, but I forgot which parameter to change... maybe it was ".sortkey". So try this in modmain: for i,recipe in pairs(GLOBAL.AllRecipes) do if recipe.name=="backpack" then print("changing backback recipe") -- just to make sure this code is executed, can check it is logfile now recipe.sortkey = -1 -- make it a low value, you can also try -100 end end Try this and see if the print is in logfile and if order of recipes changed. Link to comment https://forums.kleientertainment.com/forums/topic/77070-how-to-change-the-order-of-recipes-in-a-tab/#findComment-894186 Share on other sites More sharing options...
devourerofsugar Posted March 31, 2017 Author Share Posted March 31, 2017 Thanks a lot, I'll give it a shot! Link to comment https://forums.kleientertainment.com/forums/topic/77070-how-to-change-the-order-of-recipes-in-a-tab/#findComment-894779 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