forked from minetest/minetest_game
Boats, carts mods: Use 'initial_properties' table
This commit is contained in:
parent
ab4940505e
commit
c284e52963
@ -33,6 +33,7 @@ end
|
|||||||
--
|
--
|
||||||
|
|
||||||
local boat = {
|
local boat = {
|
||||||
|
initial_properties = {
|
||||||
physical = true,
|
physical = true,
|
||||||
-- Warning: Do not change the position of the collisionbox top surface,
|
-- Warning: Do not change the position of the collisionbox top surface,
|
||||||
-- lowering it causes the boat to fall through the world if underwater
|
-- lowering it causes the boat to fall through the world if underwater
|
||||||
@ -40,6 +41,7 @@ local boat = {
|
|||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "boats_boat.obj",
|
mesh = "boats_boat.obj",
|
||||||
textures = {"default_wood.png"},
|
textures = {"default_wood.png"},
|
||||||
|
},
|
||||||
|
|
||||||
driver = nil,
|
driver = nil,
|
||||||
v = 0,
|
v = 0,
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
local cart_entity = {
|
local cart_entity = {
|
||||||
|
initial_properties = {
|
||||||
physical = false, -- otherwise going uphill breaks
|
physical = false, -- otherwise going uphill breaks
|
||||||
collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "carts_cart.b3d",
|
mesh = "carts_cart.b3d",
|
||||||
visual_size = {x=1, y=1},
|
visual_size = {x=1, y=1},
|
||||||
textures = {"carts_cart.png"},
|
textures = {"carts_cart.png"},
|
||||||
|
},
|
||||||
|
|
||||||
driver = nil,
|
driver = nil,
|
||||||
punched = false, -- used to re-send velocity and position
|
punched = false, -- used to re-send velocity and position
|
||||||
|
Loading…
Reference in New Issue
Block a user