drones pick up wrong item when placing

Place to get help with not working mods / modding interface.
kamp
Manual Inserter
Manual Inserter
Posts: 3
Joined: Tue Dec 17, 2024 6:10 am
Contact:

drones pick up wrong item when placing

Post by kamp »

I'm using a mod that could place water and lava on other planets , and I found that when I'm tring to put down a higher level item, the robots would pick up the lower level item to finish put,I it seems that the author won't update his mod so I think I have to do it myself.
I checked the code of landfill and I don't know why the robots would pick up the wrong item,anyone could help me?
{
type = "item",
name = "art-dug-water", --普通挖水材料
icon = "__artsDugWaterformodplant__/graphics/icons/dug-water.png",
icon_size = 32,
subgroup = "terrain",
order = "z[art-dug]-a[art-dug-water]",
inventory_move_sound = item_sounds.landfill_inventory_move,
pick_sound = item_sounds.landfill_inventory_pickup,
drop_sound = item_sounds.landfill_inventory_move,
stack_size = 2400,
weight = 20*kg,
place_as_tile =
{
result = "water",
condition_size = 1,
condition = {layers={water_tile=true}},
tile_condition = water_tile_condition
},
random_tint_color = item_tints.organic_green
},
{
type = "item",
name = "art-dug-water-super", --超级挖水材料
icon = "__artsDugWaterformodplant__/graphics/icons/dug-water-super.png",
icon_size = 32,
subgroup = "terrain",
order = "z[art-dug]-b[art-dug-water-super]",
inventory_move_sound = item_sounds.landfill_inventory_move,
pick_sound = item_sounds.landfill_inventory_pickup,
drop_sound = item_sounds.landfill_inventory_move,
stack_size = 2400,
weight = 20*kg,
place_as_tile =
{
result = "water",
condition_size = 1,
condition = {layers={water_tile=true}},
tile_condition = super_tile_condition
},
random_tint_color = item_tints.organic_green
},
Post Reply

Return to “Modding help”