Code I tried with:
Code: Select all
local myContent = {
name = "iron-plate",
quality = "normal",
comparator = nil
}
local myPlayer = game.get_player(1)
local myInventory = myPlayer.get_main_inventory()
myInventory.set_filter(1, myContent)
Code: Select all
local myContent = {
name = "iron-plate",
quality = "normal",
comparator = nil
}
local myPlayer = game.get_player(1)
local myInventory = myPlayer.get_main_inventory()
myInventory.set_filter(1, myContent)