Skip to content

Commit

Permalink
fallback registrations / support unknown games with default values
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Oct 16, 2023
1 parent eee246a commit 5111ff9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
11 changes: 11 additions & 0 deletions components.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file added textures/elevator_steel_block.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5111ff9

Please sign in to comment.