Noch mehr mods
This commit is contained in:
parent
a063db5d3b
commit
cf017b2ca1
527 changed files with 21113 additions and 181 deletions
24
mods/airutils/common_entities.lua
Normal file
24
mods/airutils/common_entities.lua
Normal file
|
@ -0,0 +1,24 @@
|
|||
--
|
||||
-- seat pivot
|
||||
--
|
||||
minetest.register_entity('airutils:seat_base',{
|
||||
initial_properties = {
|
||||
physical = false,
|
||||
collide_with_objects=false,
|
||||
pointable=false,
|
||||
visual = "mesh",
|
||||
mesh = "airutils_seat_base.b3d",
|
||||
textures = {"airutils_alpha.png",},
|
||||
},
|
||||
|
||||
on_activate = function(self,std)
|
||||
self.sdata = minetest.deserialize(std) or {}
|
||||
if self.sdata.remove then self.object:remove() end
|
||||
end,
|
||||
|
||||
get_staticdata=function(self)
|
||||
self.sdata.remove=true
|
||||
return minetest.serialize(self.sdata)
|
||||
end,
|
||||
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue