Page 1 of 1

Barrel reordering

Posted: Sun Oct 22, 2023 8:22 pm
by mig5323
Py has too damn many fluid types in barrels, so I'm trying to reorder them to the end of the tab they're in.

I used data-final-fixes to change their subgroup:

Code: Select all

for k, v in pairs(data.raw["item"]) do
  if v.subgroup == "barrel" then
    v.subgroup = 'wrecks'
  end
end
This puts them in the environment tab though. I'd like to just move them later in their existing tab. Any pointers?

Re: Barrel reordering

Posted: Sun Oct 22, 2023 11:56 pm
by braxbro
Change the order property of their subgroup to z.