Also, I'm having difficult getting it working...
I'm able to add flags like ItemPrototypeFlags#hidden and they appear to be working. So I believe I'm adding the flag correctly.
Code: Select all
local sb = serpent.block
local item = data.raw["item"]
local chest = item["logistic-chest-storage"]
chest.flags = chest.flags or {}
log(sb( chest ))
local flags = chest.flags
log(sb( flags ))
table.insert(flags,"hide-from-bonus-gui")
table.insert(flags,"always-show")
table.insert(flags,"hidden")
log(sb( chest ))
log(sb( flags ))
Prototype/Item#flags
Concepts#ItemPrototypeFlags