Can someone help me see why the box can't rotate

Place to post guides, observations, things related to modding that are not mods themselves.
sdgmlj
Fast Inserter
Fast Inserter
Posts: 160
Joined: Sun Jul 04, 2021 11:12 pm
Contact:

Can someone help me see why the box can't rotate

Post by sdgmlj »

I made a box and I want it to be able to rotate freely when placed, but the picture is invalid. Can someone help me take a look? Why is this? thank you

Code: Select all

local chest = util.table.deepcopy(data.raw["linked-container"]["linked-chest"])
chest.name = "linked-chest-3"
chest.minable.result = "linked-chest-3"
chest.inventory_size = 48
chest.hidden = false
chest.icon = "__base__/graphics/icons/storage-chest.png"
chest.drawing_box = {{-1.5, -0.5}, {1.5, 0.5}}
chest.selection_box = {{-1.5, -0.5}, {1.5, 0.5}}
chest.collision_box = {{-1.4, -0.4}, {1.4, 0.4}}
chest.pictures = 
{
	north =
	{
		{
		  filename = path.."linked-chest.png",
		  priority = "extra-high",
		  width = 192,
		  height = 80,
		  scale = 0.5
		},
	},
	south =
	{
		{
		  filename = path.."linked-chest.png",
		  priority = "extra-high",
		  width = 192,
		  height = 80,
		  scale = 0.5
		},
	},
	east =
	{
		{
		  filename = path.."linked-chest-h.png",
		  priority = "extra-high",
		  width = 64,
		  height = 208,
		  scale = 0.5
		},
	},
	west =
	{
		{
		  filename = path.."linked-chest-h.png",
		  priority = "extra-high",
		  width = 64,
		  height = 208,
		  scale = 0.5
		},
	},
}
linked-chest.png
linked-chest.png (10.43 KiB) Viewed 222 times
linked-chest-h.png
linked-chest-h.png (10.78 KiB) Viewed 222 times
sdgmlj
Fast Inserter
Fast Inserter
Posts: 160
Joined: Sun Jul 04, 2021 11:12 pm
Contact:

Re: Can someone help me see why the box can't rotate

Post by sdgmlj »

I have checked the relevant information and it seems that the box is not allowed to rotate
Post Reply

Return to “Modding discussion”