forked from minetest-mods/MoreMesecons
Compare commits
3 Commits
77587418cb
...
1.3
Author | SHA1 | Date | |
---|---|---|---|
b8deed592f | |||
1dab017abe | |||
74a95e559e |
@ -58,6 +58,10 @@ for n,i in pairs({{0,0},{1,0},{1,1}}) do
|
||||
top_texture = pre..top_texture
|
||||
end
|
||||
|
||||
local use_texture_alpha
|
||||
if minetest.features.use_texture_alpha_string_modes then
|
||||
use_texture_alpha = "opaque"
|
||||
end
|
||||
minetest.register_node("moremesecons_dual_delayer:dual_delayer_"..i1 ..i2, {
|
||||
description = "Dual Delayer",
|
||||
drop = "moremesecons_dual_delayer:dual_delayer_00",
|
||||
@ -74,6 +78,7 @@ for n,i in pairs({{0,0},{1,0},{1,1}}) do
|
||||
},
|
||||
groups = groups,
|
||||
tiles = {top_texture, "moremesecons_dual_delayer_bottom.png", "moremesecons_dual_delayer_side_left.png", "moremesecons_dual_delayer_side_right.png", "moremesecons_dual_delayer_ends.png", "moremesecons_dual_delayer_ends.png"},
|
||||
use_texture_alpha = use_texture_alpha,
|
||||
mesecons = {
|
||||
receptor = {
|
||||
state = mesecon.state.off,
|
||||
|
@ -61,7 +61,7 @@ for i, f in ipairs(minetest.registered_on_player_receive_fields) do
|
||||
end
|
||||
end
|
||||
|
||||
default.register_chest("mesechest", {
|
||||
default.chest.register_chest("moremesecons_mesechest:mesechest", {
|
||||
description = "Mese Chest",
|
||||
tiles = {
|
||||
"default_chest_top.png^[colorize:#d8e002:70",
|
||||
@ -82,7 +82,7 @@ default.register_chest("mesechest", {
|
||||
}
|
||||
})
|
||||
|
||||
default.register_chest("mesechest_locked", {
|
||||
default.chest.register_chest("moremesecons_mesechest:mesechest_locked", {
|
||||
description = "Locked Mese Chest",
|
||||
tiles = {
|
||||
"default_chest_top.png^[colorize:#d8e002:70",
|
||||
@ -108,11 +108,17 @@ minetest.register_node = old_minetest_register_node
|
||||
minetest.register_lbm = old_minetest_register_lbm
|
||||
|
||||
minetest.register_craft({
|
||||
output = "default:mesechest",
|
||||
output = "moremesecons_mesechest:mesechest",
|
||||
recipe = {{"group:mesecon_conductor_craftable", "default:chest", "group:mesecon_conductor_craftable"}}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "default:mesechest_locked",
|
||||
output = "moremesecons_mesechest:mesechest_locked",
|
||||
recipe = {{"group:mesecon_conductor_craftable", "default:chest_locked", "group:mesecon_conductor_craftable"}}
|
||||
})
|
||||
|
||||
-- Legacy
|
||||
minetest.register_alias("default:mesechest", "moremesecons_mesechest:mesechest")
|
||||
minetest.register_alias("mesechest", "moremesecons_mesechest:mesechest")
|
||||
minetest.register_alias("default:mesechest_locked", "moremesecons_mesechest:mesechest")
|
||||
minetest.register_alias("mesechest_locked", "moremesecons_mesechest:mesechest_locked")
|
||||
|
@ -47,6 +47,10 @@ local boxes = {{ -6/16, -8/16, -6/16, 6/16, -7/16, 6/16 }, -- the main slab
|
||||
{ -8/16, -8/16, -1/16, -6/16, -7/16, 1/16 }, -- the two wire stubs
|
||||
{ 6/16, -8/16, -1/16, 8/16, -7/16, 1/16 }}
|
||||
|
||||
local use_texture_alpha
|
||||
if minetest.features.use_texture_alpha_string_modes then
|
||||
use_texture_alpha = "opaque"
|
||||
end
|
||||
mesecon.register_node("moremesecons_timegate:timegate", {
|
||||
description = "Time Gate",
|
||||
drawtype = "nodebox",
|
||||
@ -84,6 +88,7 @@ mesecon.register_node("moremesecons_timegate:timegate", {
|
||||
"moremesecons_timegate_sides_off.png",
|
||||
"moremesecons_timegate_sides_off.png"
|
||||
},
|
||||
use_texture_alpha = use_texture_alpha,
|
||||
groups = {bendy=2,snappy=1,dig_immediate=2},
|
||||
mesecons = {
|
||||
receptor =
|
||||
@ -106,6 +111,7 @@ mesecon.register_node("moremesecons_timegate:timegate", {
|
||||
"moremesecons_timegate_sides_on.png",
|
||||
"moremesecons_timegate_sides_on.png"
|
||||
},
|
||||
use_texture_alpha = use_texture_alpha,
|
||||
groups = {bendy=2,snappy=1,dig_immediate=2, not_in_creative_inventory=1},
|
||||
mesecons = {
|
||||
receptor = {
|
||||
|
@ -262,6 +262,9 @@ local function on_digiline_receive(pos, node, channel, msg)
|
||||
end
|
||||
|
||||
local wls = moremesecons.get_data_from_pos(wireless_meta, pos)
|
||||
if not wls then
|
||||
return
|
||||
end
|
||||
|
||||
if wls.owner == "" or not wireless[wls.owner] or channel == "" or not wireless[wls.owner][wls.channel] then
|
||||
return
|
||||
@ -274,7 +277,7 @@ local function on_digiline_receive(pos, node, channel, msg)
|
||||
|
||||
sending_digilines[pos_hash] = true
|
||||
for i, wl_pos in pairs(wireless[wls.owner][wls.channel].members) do
|
||||
if i ~= wls.id and check_wireless_exists(wl_pos) then
|
||||
if i ~= wls.id then
|
||||
digiline:receptor_send(wl_pos, digiline.rules.default, channel, msg)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user