Prototype/ItemEntity: Difference between revisions
Jump to navigation
Jump to search
(Added prototype type to page) |
(→Example: updated to 0.17) |
||
Line 17: | Line 17: | ||
collision_box = {{-0.14, -0.14}, {0.14, 0.14}}, | collision_box = {{-0.14, -0.14}, {0.14, 0.14}}, | ||
selection_box = {{-0.17, -0.17}, {0.17, 0.17}}, | selection_box = {{-0.17, -0.17}, {0.17, 0.17}}, | ||
minable = { | minable = {mining_time = 0.025} | ||
} | }</syntaxhighlight> |
Revision as of 06:34, 1 June 2019
Basics
Prototype type: item-entity
The entity used for items on the ground. Extends Prototype/Entity.
Properties
This prototype inherits all the properties from Prototype/Entity.
Mandatory values
Item entity collision box has to have same width as height.
Example
{
type = "item-entity",
name = "item-on-ground",
flags = {"placeable-off-grid", "not-on-map"},
collision_box = {{-0.14, -0.14}, {0.14, 0.14}},
selection_box = {{-0.17, -0.17}, {0.17, 0.17}},
minable = {mining_time = 0.025}
}