Jump to content

How to change the order of recipes in a tab?


Recommended Posts

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
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...