diff options
author | BuckarooBanzay <BuckarooBanzay@users.noreply.github.com> | 2023-10-16 13:14:09 +0200 |
---|---|---|
committer | BuckarooBanzay <BuckarooBanzay@users.noreply.github.com> | 2023-10-16 13:14:09 +0200 |
commit | 5111ff90269646bad956223a749157b3c2428396 (patch) | |
tree | 8b33c84d3cfba8439bc72e11d0fa780660898ddc /components.lua | |
parent | eee246ac7eb73711333d875d5c436d730030ff76 (diff) | |
download | elevator-5111ff90269646bad956223a749157b3c2428396.tar.gz elevator-5111ff90269646bad956223a749157b3c2428396.tar.bz2 elevator-5111ff90269646bad956223a749157b3c2428396.zip |
fallback registrations / support unknown games with default values
Diffstat (limited to 'components.lua')
-rw-r--r-- | components.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/components.lua b/components.lua index e564810..525efbc 100644 --- a/components.lua +++ b/components.lua @@ -68,6 +68,17 @@ elseif aurum_path then moditems.el_shaft_gfx = "elevator_shaft.png" moditems.el_box_gfx = "elevator_box.png" moditems.steel_block_image = "aurum_ore_white.png^[colorize:#cbcdcd:255^aurum_ore_bumps.png^aurum_ore_block.png" +else + -- fallback for unknown games + moditems.el_shaft_groups = {cracky=2, oddly_breakable_by_hand=0} + moditems.el_motor_groups = {cracky=1} + moditems.elevator_groups = {cracky=1, choppy=1, snappy=1} + moditems.elevator_special_groups = {not_in_creative_inventory=1} + moditems.sounds_stone = function() end + moditems.el_motor_gfx = "elevator_motor.png" + moditems.el_shaft_gfx = "elevator_shaft.png" + moditems.el_box_gfx = "elevator_box.png" + moditems.steel_block_image = "elevator_steel_block.png" end if minetest.global_exists("screwdriver") then |