Trying to understand better the problem I see that this call:
deadlock.add_tier(
{
transport_belt = "advanced-transport-belt",
colour = {r=76, g=232, b=48, a=250},
underground_belt = "advanced-underground-belt",
splitter = "advanced-splitter",
technology = "kr-logistic-4",
order = "d",
loader_ingredients =
{
{"express-transport-belt-loader", 1},
{"steel-gear-wheel", 50},
{"steel-plate", 20}
},
beltbox_ingredients =
{
{"express-transport-belt-beltbox", 1},
{"steel-gear-wheel", 50},
{"steel-plate", 20}
},
beltbox_technology = "deadlock-stacking-4"
})
krastorio.technologies.addPrerequisite("deadlock-stacking-4", "deadlock-stacking-3")
That I do for create the beltbox, doesn't create the technology: "deadlock-stacking-4"