I've made item for control:
Code: Select all
{
type = "item",
name = "private-chest-requester",
icons = {
{icon = "__base__/graphics/icons/logistic-chest-requester.png"},
{icon = "__PrivateBufferChest__/PBC.png"}
},
icon_size = 32,
flags = {"goes-to-quickbar"},
subgroup = "logistic-network",
order = "b[storage]-e[logistic-chest-requester]-z",
place_result = "logistic-chest-requester",
stack_size = 50
},
control.lua has this code:
Code: Select all
script.on_event(defines.events.on_built_entity, function(event)
local entity = event.created_entity
local player = game.players[event.player_index]
player.print('entity is ' .. entity.name)
end)
Example mod: How to reproduce:
Place all objects from inventory and by BPC you get no notification.