diff options
author | Benjamin Leskey <ben@benleskey.com> | 2023-10-18 17:56:34 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-18 17:56:34 -0400 |
commit | 71b413bfe95e5c26ffc15a330d22d1f6ec10a34d (patch) | |
tree | 8b33c84d3cfba8439bc72e11d0fa780660898ddc | |
parent | eee246ac7eb73711333d875d5c436d730030ff76 (diff) | |
parent | 5111ff90269646bad956223a749157b3c2428396 (diff) | |
download | elevator-71b413bfe95e5c26ffc15a330d22d1f6ec10a34d.tar.gz elevator-71b413bfe95e5c26ffc15a330d22d1f6ec10a34d.tar.bz2 elevator-71b413bfe95e5c26ffc15a330d22d1f6ec10a34d.zip |
Merge pull request #22 from BuckarooBanzay/unknown-game-support
fallback registrations / support unknown games with default values
-rw-r--r-- | LICENSE.txt | 2 | ||||
-rw-r--r-- | components.lua | 11 | ||||
-rw-r--r-- | textures/elevator_steel_block.png | bin | 0 -> 350 bytes |
3 files changed, 13 insertions, 0 deletions
diff --git a/LICENSE.txt b/LICENSE.txt index aa52b25..18198e6 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -23,3 +23,5 @@ The textures are taken from the Minecraft resource pack “Faithful 1.11” by Vattic and xMrVizzy and contributers." Elevator motor design is (c) minertestdude, redistributed under MIT license. + +elevator_steel_block.png CC BY-SA 3.0 (https://github.com/minetest/minetest_game)
\ No newline at end of file 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 diff --git a/textures/elevator_steel_block.png b/textures/elevator_steel_block.png Binary files differnew file mode 100644 index 0000000..5e421f0 --- /dev/null +++ b/textures/elevator_steel_block.png |