1
0
mirror of https://github.com/D00Med/scifi_nodes.git synced 2025-06-30 15:10:46 +02:00

Opt-depend on all mods (#58)

* move "dye" to optional depends and disable recipes if default or dye are not available
* replace default.LIGHT_MAX with minetest.LIGHT_MAX
* add sound-switch and use default if available
* enable crate and builder only if default mod is available
* move default mod to opt-depends and use screwdriver only if available

Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
This commit is contained in:
Buckaroo Banzai
2021-08-27 09:22:15 +02:00
committed by GitHub
parent 85aa74e98b
commit e40f9747b0
14 changed files with 164 additions and 105 deletions

View File

@ -65,7 +65,7 @@ minetest.register_node("scifi_nodes:palm_scanner_off", {
}
},
on_rightclick = (has_mesecons and activate_palm_scanner),
sounds = default.node_sound_glass_defaults(),
sounds = scifi_nodes.node_sound_glass_defaults(),
})
minetest.register_node("scifi_nodes:palm_scanner_checking", {
@ -83,7 +83,7 @@ minetest.register_node("scifi_nodes:palm_scanner_checking", {
paramtype2 = "wallmounted",
groups = {cracky=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1, mesecon_needs_receiver = 1},
drop = "scifi_nodes:palm_scanner_off",
sounds = default.node_sound_glass_defaults()
sounds = scifi_nodes.node_sound_glass_defaults()
})
minetest.register_node("scifi_nodes:palm_scanner_on", {
@ -106,7 +106,7 @@ minetest.register_node("scifi_nodes:palm_scanner_on", {
state = (has_mesecons and mesecon.state.on)
}
},
sounds = default.node_sound_glass_defaults(),
sounds = scifi_nodes.node_sound_glass_defaults(),
})
minetest.register_craft({