Code: Select all
/c game.player.selected.get_inventory(defines.inventory.chest).set_bar(1)
Code: Select all
/c game.print(game.player.selected.get_inventory(defines.inventory.chest).supports_bar())
If this is intended, is there a different way to detect whether an inventory has the UI enabled to apply the bar?