diff options
author | orwell96 <orwell@bleipb.de> | 2017-11-23 17:00:39 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2017-11-23 17:00:39 +0100 |
commit | d78d07589d31db62167eafafb36b9e8c0468c6d1 (patch) | |
tree | abc9647e10c9f27d311b179a6d02871c1658097c /advtrains/couple.lua | |
parent | 5fc6cc7f5b7125e470e0e24e4da639f868476dc3 (diff) | |
download | advtrains-d78d07589d31db62167eafafb36b9e8c0468c6d1.tar.gz advtrains-d78d07589d31db62167eafafb36b9e8c0468c6d1.tar.bz2 advtrains-d78d07589d31db62167eafafb36b9e8c0468c6d1.zip |
Add modifiable wagon extents
This will be required for advcarts
Diffstat (limited to 'advtrains/couple.lua')
-rw-r--r-- | advtrains/couple.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/advtrains/couple.lua b/advtrains/couple.lua index 9bc0fd5..0e7a481 100644 --- a/advtrains/couple.lua +++ b/advtrains/couple.lua @@ -15,8 +15,8 @@ local couple_max_dist=3 minetest.register_entity("advtrains:discouple", { visual="sprite", textures = {"advtrains_discouple.png"}, - collisionbox = {-0.5,-0.5,-0.5, 0.5,0.5,0.5}, - visual_size = {x=1, y=1}, + collisionbox = {-0.3,-0.3,-0.3, 0.3,0.3,0.3}, + visual_size = {x=0.7, y=0.7}, initial_sprite_basepos = {x=0, y=0}, is_discouple=true, @@ -101,8 +101,8 @@ train2_is_backpos minetest.register_entity("advtrains:couple", { visual="sprite", textures = {"advtrains_couple.png"}, - collisionbox = {-0.5,-0.5,-0.5, 0.5,0.5,0.5}, - visual_size = {x=1, y=1}, + collisionbox = {-0.3,-0.3,-0.3, 0.3,0.3,0.3}, + visual_size = {x=0.7, y=0.7}, initial_sprite_basepos = {x=0, y=0}, is_couple=true, @@ -114,6 +114,7 @@ minetest.register_entity("advtrains:couple", { self.object:remove() return end + self.object:set_armor_groups({immmortal=1}) end) end, get_staticdata=function(self) return "COUPLE" end, |