add "triggers" entity property
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
{
|
||||
"hitbox": [0.2, 0.2, 0.2]
|
||||
"hitbox": [0.2, 0.2, 0.2],
|
||||
"triggers": [
|
||||
[-0.2, -0.2, -0.2, 0.2, 0.2, 0.2]
|
||||
]
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@ end
|
||||
function on_trigger_enter(index, oid)
|
||||
if ready and oid == 0 then
|
||||
entity:despawn()
|
||||
inventory.add(player.get_inventory(oid), item.index("base:stone.item"), 1)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user