diff options
author | PilzAdam <pilzadam@minetest.net> | 2013-06-14 12:04:46 +0000 |
---|---|---|
committer | RealBadAngel <mk@realbadangel.pl> | 2013-07-20 20:43:11 +0200 |
commit | 8cae65978611476d0da215acf61819a905c68267 (patch) | |
tree | 2fec7ef03de8946149c8d118b49ca472e0d048a6 /builtin | |
parent | 413f0d0353d49d7baed32540d73cbec99e35658a (diff) | |
download | minetest-8cae65978611476d0da215acf61819a905c68267.tar.gz minetest-8cae65978611476d0da215acf61819a905c68267.tar.bz2 minetest-8cae65978611476d0da215acf61819a905c68267.zip |
Add an option to disable object <-> object collision for Lua entities
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/falling.lua | 1 | ||||
-rw-r--r-- | builtin/item_entity.lua | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/builtin/falling.lua b/builtin/falling.lua index 5ee693298..73087803f 100644 --- a/builtin/falling.lua +++ b/builtin/falling.lua @@ -7,6 +7,7 @@ minetest.register_entity("__builtin:falling_node", { initial_properties = { physical = true, + collide_with_objects = false, collisionbox = {-0.5,-0.5,-0.5, 0.5,0.5,0.5}, visual = "wielditem", textures = {}, diff --git a/builtin/item_entity.lua b/builtin/item_entity.lua index c682db2fa..95affe3da 100644 --- a/builtin/item_entity.lua +++ b/builtin/item_entity.lua @@ -12,6 +12,7 @@ minetest.register_entity("__builtin:item", { initial_properties = { hp_max = 1, physical = true, + collide_with_objects = false, collisionbox = {-0.17,-0.17,-0.17, 0.17,0.17,0.17}, visual = "sprite", visual_size = {x=0.5, y=0.5}, |