is ground content revision (#81)

also cleaned up some of the whitespace indentation
and one occurance where ';' was being used instead of ','
This commit is contained in:
Luke aka SwissalpS
2024-03-01 07:00:13 +01:00
committed by GitHub
parent 014ca0179f
commit 49703e7386
10 changed files with 213 additions and 122 deletions

View File

@ -102,7 +102,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
end
-- play sound at context position
minetest.sound_play(sounds[sound_index], {
pos = context.pos,
pos = context.pos,
max_hear_distance = 10
})
context[player:get_player_name()] = nil -- we don't need it anymore
@ -122,6 +122,7 @@ minetest.register_node("scifi_nodes:digicode_on", {
paramtype2 = "wallmounted",
light_source = 5,
groups = {cracky=1, oddly_breakable_by_hand=1, not_in_creative_inventory=1, mesecon_needs_receiver = 1},
is_ground_content = false,
drop = "scifi_nodes:digicode_off",
mesecons = {
receptor = {
@ -145,6 +146,7 @@ minetest.register_node("scifi_nodes:digicode_off", {
paramtype = "light",
paramtype2 = "wallmounted",
groups = {cracky=1, oddly_breakable_by_hand=1, mesecon_needs_receiver = 1},
is_ground_content = false,
mesecons = {
receptor = {
state = (has_mesecons and mesecon.state.off)