From a50ceb4d277020a9b1259f759b1f1d13211f740d Mon Sep 17 00:00:00 2001 From: cheapie Date: Sat, 13 Apr 2024 17:00:40 -0500 Subject: Add car doors --- car.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'car.lua') diff --git a/car.lua b/car.lua index 2684243..40d85b6 100644 --- a/car.lua +++ b/car.lua @@ -357,6 +357,11 @@ for _,def in ipairs(pieces) do } celevator.controller.run(carinfo.controllerpos,event) end + if def._position == "000" then + def.on_construct = function(pos) + minetest.get_meta(pos):set_string("doorstate","closed") + end + end minetest.register_node("celevator:car_"..def._position,def) end -- cgit v1.2.3