They work really well so far, but I don't have a great grasp on the entity system, so just need a bit of help with getting them working right:
Currently my entity definition looks like:
Code: Select all
data:extend(
{
{
type = "container",
name = "orehopper",
icon = "__base__/graphics/icons/basic-inserter.png",
flags = {"placeable-neutral", "player-creation"},
minable = {mining_time = 1, result = "orehopper"},
max_health = 50,
corpse = "medium-remnants",
collision_box = {{-0.4, -0.4}, {0.4, 0.4}},
selection_box = {{-0.5, -0.5}, {0.5, 0.5}},
fast_replaceable_group = "container-small",
inventory_size = 40,
open_sound = { filename = "__base__/sound/wooden-chest-open.ogg" },
close_sound = { filename = "__base__/sound/wooden-chest-close.ogg" },
vector_to_place_result = {0, 0.1},
rotatable = true,
picture =
{
filename = "__base__/graphics/entity/basic-inserter/basic-inserter-platform.png",
priority = "extra-high",
width = 46,
height = 33,
shift = {0.3, 0}
}
}
}
)