Rename mod: default to mcl_core
This commit is contained in:
parent
d0ecf0c66c
commit
02fe45bca2
393 changed files with 2205 additions and 2210 deletions
|
@ -1 +1 @@
|
|||
default
|
||||
mcl_core
|
||||
|
|
|
@ -123,7 +123,7 @@ for zmy=0, 1 do
|
|||
state = mesecon.state.off,
|
||||
onstate = "mesecons:wire_"..nodeid.."_on"
|
||||
}},
|
||||
sounds = default.node_sound_defaults(),
|
||||
sounds = mcl_core.node_sound_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("mesecons:wire_"..nodeid.."_on", {
|
||||
|
@ -154,7 +154,7 @@ for zmy=0, 1 do
|
|||
state = mesecon.state.on,
|
||||
offstate = "mesecons:wire_"..nodeid.."_off"
|
||||
}},
|
||||
sounds = default.node_sound_defaults(),
|
||||
sounds = mcl_core.node_sound_defaults(),
|
||||
})
|
||||
end
|
||||
end
|
||||
|
@ -250,7 +250,7 @@ minetest.register_alias("mesecons:redstone", "mesecons:wire_00000000_off")
|
|||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "mesecons:redstone",
|
||||
recipe = "default:stone_with_redstone",
|
||||
recipe = "mcl_core:stone_with_redstone",
|
||||
cooktime = 10,
|
||||
})
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ minetest.register_node("mesecons_button:button_stone_off", {
|
|||
minetest.sound_play("mesecons_button_push", {pos=pos})
|
||||
minetest.after(1, mesecon.button_turnoff, pos)
|
||||
end,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
sounds = mcl_core.node_sound_stone_defaults(),
|
||||
mesecons = {receptor = {
|
||||
state = mesecon.state.off,
|
||||
rules = mesecon.rules.buttonlike_get
|
||||
|
@ -70,7 +70,7 @@ minetest.register_node("mesecons_button:button_stone_on", {
|
|||
groups = {dig_immediate=2, not_in_creative_inventory=1, attached_node=1, dig_by_water=1},
|
||||
drop = 'mesecons_button:button_stone_off',
|
||||
description = "Stone Button",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
sounds = mcl_core.node_sound_stone_defaults(),
|
||||
mesecons = {receptor = {
|
||||
state = mesecon.state.on,
|
||||
rules = mesecon.rules.buttonlike_get
|
||||
|
@ -101,7 +101,7 @@ minetest.register_node("mesecons_button:button_wood_off", {
|
|||
minetest.sound_play("mesecons_button_push", {pos=pos})
|
||||
minetest.after(1, mesecon.button_turnoff, pos)
|
||||
end,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
sounds = mcl_core.node_sound_wood_defaults(),
|
||||
mesecons = {receptor = {
|
||||
state = mesecon.state.off,
|
||||
rules = mesecon.rules.buttonlike_get
|
||||
|
@ -127,7 +127,7 @@ minetest.register_node("mesecons_button:button_wood_on", {
|
|||
groups = {dig_immediate=2, not_in_creative_inventory=1, attached_node=1, dig_by_water=1},
|
||||
drop = 'mesecons_button:button_wood_off',
|
||||
description = "Wooden Button",
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
sounds = mcl_core.node_sound_wood_defaults(),
|
||||
mesecons = {receptor = {
|
||||
state = mesecon.state.on,
|
||||
rules = mesecon.rules.buttonlike_get
|
||||
|
@ -137,7 +137,7 @@ minetest.register_node("mesecons_button:button_wood_on", {
|
|||
minetest.register_craft({
|
||||
output = 'mesecons_button:button_stone_off',
|
||||
recipe = {
|
||||
{'default:stone'},
|
||||
{'mcl_core:stone'},
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
@ -187,7 +187,7 @@ minetest.register_node("mesecons_commandblock:commandblock_off", {
|
|||
after_place_node = after_place,
|
||||
on_receive_fields = receive_fields,
|
||||
can_dig = can_dig,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
sounds = mcl_core.node_sound_stone_defaults(),
|
||||
mesecons = {effector = {
|
||||
action_on = commandblock_action_on
|
||||
}},
|
||||
|
@ -203,7 +203,7 @@ minetest.register_node("mesecons_commandblock:commandblock_on", {
|
|||
after_place_node = after_place,
|
||||
on_receive_fields = receive_fields,
|
||||
can_dig = can_dig,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
sounds = mcl_core.node_sound_stone_defaults(),
|
||||
mesecons = {effector = {
|
||||
action_off = commandblock_action_off
|
||||
}}
|
||||
|
|
|
@ -125,7 +125,7 @@ minetest.register_node("mesecons_delayer:delayer_off_"..tostring(i), {
|
|||
end,
|
||||
delayer_time = delaytime,
|
||||
delayer_onstate = "mesecons_delayer:delayer_on_"..tostring(i),
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
sounds = mcl_core.node_sound_stone_defaults(),
|
||||
mesecons = {
|
||||
receptor =
|
||||
{
|
||||
|
@ -199,6 +199,6 @@ minetest.register_craft({
|
|||
output = "mesecons_delayer:delayer_off_1",
|
||||
recipe = {
|
||||
{"mesecons_torch:mesecon_torch_on", "", "mesecons_torch:mesecon_torch_on"},
|
||||
{"default:stone","default:stone", "default:stone"},
|
||||
{"mcl_core:stone","mcl_core:stone", "mcl_core:stone"},
|
||||
}
|
||||
})
|
||||
|
|
|
@ -4,7 +4,7 @@ minetest.register_node("mesecons_lightstone:lightstone_off", {
|
|||
groups = {cracky=2, mesecon_effector_off = 1, mesecon = 2},
|
||||
is_ground_content = false,
|
||||
description= "Redstone Lamp",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
sounds = mcl_core.node_sound_stone_defaults(),
|
||||
mesecons = {effector = {
|
||||
action_on = function (pos, node)
|
||||
mesecon:swap_node(pos, "mesecons_lightstone:lightstone_on")
|
||||
|
@ -19,7 +19,7 @@ minetest.register_node("mesecons_lightstone:lightstone_on", {
|
|||
drop = "node mesecons_lightstone:lightstone_off",
|
||||
is_ground_content = false,
|
||||
light_source = 14,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
sounds = mcl_core.node_sound_stone_defaults(),
|
||||
mesecons = {effector = {
|
||||
action_off = function (pos, node)
|
||||
mesecon:swap_node(pos, "mesecons_lightstone:lightstone_off")
|
||||
|
@ -31,7 +31,7 @@ minetest.register_craft({
|
|||
output = "node mesecons_lightstone:lightstone_off",
|
||||
recipe = {
|
||||
{'',"mesecons:redstone",''},
|
||||
{"mesecons:redstone",'default:glowstone',"mesecons:redstone"},
|
||||
{"mesecons:redstone",'mcl_core:glowstone',"mesecons:redstone"},
|
||||
{'','mesecons:redstone',''},
|
||||
}
|
||||
})
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
mesecons
|
||||
default
|
||||
mcl_core
|
||||
|
|
|
@ -8,17 +8,17 @@ minetest.register_craftitem("mesecons_materials:slimeball", {
|
|||
minetest.register_craft({
|
||||
output = 'mesecons_materials:slimeball',
|
||||
type = "cooking",
|
||||
recipe = "default:sapling",
|
||||
recipe = "mcl_core:sapling",
|
||||
cooktime = 10,
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'mesecons_materials:slimeball 9',
|
||||
recipe = {{"default:slimeblock"}},
|
||||
recipe = {{"mcl_core:slimeblock"}},
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "default:slimeblock",
|
||||
output = "mcl_core:slimeblock",
|
||||
recipe = {{"mesecons_materials:slimeball","mesecons_materials:slimeball","mesecons_materials:slimeball",},
|
||||
{"mesecons_materials:slimeball","mesecons_materials:slimeball","mesecons_materials:slimeball",},
|
||||
{"mesecons_materials:slimeball","mesecons_materials:slimeball","mesecons_materials:slimeball",}},
|
||||
|
|
|
@ -123,10 +123,10 @@ function mesecon:mvps_pull_all(pos, direction) -- pos: pos of mvps; direction: d
|
|||
minetest.remove_node(oldpos)
|
||||
end
|
||||
|
||||
mesecon:register_mvps_stopper("default:sign")
|
||||
mesecon:register_mvps_stopper("default:obsidian")
|
||||
mesecon:register_mvps_stopper("default:bedrock")
|
||||
mesecon:register_mvps_stopper("default:barrier")
|
||||
mesecon:register_mvps_stopper("mcl_core:sign")
|
||||
mesecon:register_mvps_stopper("mcl_core:obsidian")
|
||||
mesecon:register_mvps_stopper("mcl_core:bedrock")
|
||||
mesecon:register_mvps_stopper("mcl_core:barrier")
|
||||
mesecon:register_mvps_stopper("mcl_chests:chest")
|
||||
mesecon:register_mvps_stopper("mcl_chests:chest_left")
|
||||
mesecon:register_mvps_stopper("mcl_chests:chest_right")
|
||||
|
|
|
@ -15,7 +15,7 @@ minetest.register_node("mesecons_noteblock:noteblock", {
|
|||
minetest.add_node(pos, {name = node.name, param2 = param2})
|
||||
mesecon.noteblock_play(pos, param2)
|
||||
end,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
sounds = mcl_core.node_sound_wood_defaults(),
|
||||
mesecons = {effector = { -- play sound when activated
|
||||
action_on = function (pos, node)
|
||||
mesecon.noteblock_play(pos, node.param2)
|
||||
|
@ -66,19 +66,19 @@ mesecon.noteblock_play = function (pos, param2)
|
|||
soundname="mesecons_noteblock_gsharp"
|
||||
end
|
||||
local block_below_name = minetest.get_node({x=pos.x, y=pos.y-1, z=pos.z}).name
|
||||
if block_below_name == "default:glass" then
|
||||
if block_below_name == "mcl_core:glass" then
|
||||
soundname="mesecons_noteblock_hihat"
|
||||
end
|
||||
if block_below_name == "default:stone" then
|
||||
if block_below_name == "mcl_core:stone" then
|
||||
soundname="mesecons_noteblock_kick"
|
||||
end
|
||||
if block_below_name == "default:chest" then
|
||||
if block_below_name == "mcl_core:chest" then
|
||||
soundname="mesecons_noteblock_snare"
|
||||
end
|
||||
if block_below_name == "default:tree" then
|
||||
if block_below_name == "mcl_core:tree" then
|
||||
soundname="mesecons_noteblock_crash"
|
||||
end
|
||||
if block_below_name == "default:wood" then
|
||||
if block_below_name == "mcl_core:wood" then
|
||||
soundname="mesecons_noteblock_litecrash"
|
||||
end
|
||||
minetest.sound_play(soundname,
|
||||
|
|
|
@ -157,7 +157,7 @@ minetest.register_node("mesecons_pistons:piston_normal_off", {
|
|||
is_ground_content = false,
|
||||
after_place_node = piston_orientate,
|
||||
mesecons_piston = pistonspec_normal,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
sounds = mcl_core.node_sound_wood_defaults(),
|
||||
mesecons = {effector={
|
||||
action_on = piston_on,
|
||||
rules = piston_get_rules
|
||||
|
@ -186,7 +186,7 @@ minetest.register_node("mesecons_pistons:piston_normal_on", {
|
|||
node_box = piston_on_box,
|
||||
selection_box = piston_on_box,
|
||||
mesecons_piston = pistonspec_normal,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
sounds = mcl_core.node_sound_wood_defaults(),
|
||||
mesecons = {effector={
|
||||
action_off = piston_off,
|
||||
rules = piston_get_rules
|
||||
|
@ -241,7 +241,7 @@ minetest.register_node("mesecons_pistons:piston_sticky_off", {
|
|||
is_ground_content = false,
|
||||
after_place_node = piston_orientate,
|
||||
mesecons_piston = pistonspec_sticky,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
sounds = mcl_core.node_sound_wood_defaults(),
|
||||
mesecons = {effector={
|
||||
action_on = piston_on,
|
||||
rules = piston_get_rules
|
||||
|
@ -270,7 +270,7 @@ minetest.register_node("mesecons_pistons:piston_sticky_on", {
|
|||
node_box = piston_on_box,
|
||||
selection_box = piston_on_box,
|
||||
mesecons_piston = pistonspec_sticky,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
sounds = mcl_core.node_sound_wood_defaults(),
|
||||
mesecons = {effector={
|
||||
action_off = piston_off,
|
||||
rules = piston_get_rules
|
||||
|
@ -372,7 +372,7 @@ minetest.register_node("mesecons_pistons:piston_up_normal_on", {
|
|||
node_box = piston_up_on_box,
|
||||
selection_box = piston_up_on_box,
|
||||
mesecons_piston = pistonspec_normal_up,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
sounds = mcl_core.node_sound_wood_defaults(),
|
||||
mesecons = {effector={
|
||||
action_off = piston_off,
|
||||
rules = piston_up_rules,
|
||||
|
@ -430,7 +430,7 @@ minetest.register_node("mesecons_pistons:piston_up_sticky_off", {
|
|||
is_ground_content = false,
|
||||
drop = "mesecons_pistons:piston_sticky_off",
|
||||
mesecons_piston = pistonspec_sticky_up,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
sounds = mcl_core.node_sound_wood_defaults(),
|
||||
mesecons = {effector={
|
||||
action_on = piston_on,
|
||||
rules = piston_up_rules,
|
||||
|
@ -459,7 +459,7 @@ minetest.register_node("mesecons_pistons:piston_up_sticky_on", {
|
|||
node_box = piston_up_on_box,
|
||||
selection_box = piston_up_on_box,
|
||||
mesecons_piston = pistonspec_sticky_up,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
sounds = mcl_core.node_sound_wood_defaults(),
|
||||
mesecons = {effector={
|
||||
action_off = piston_off,
|
||||
rules = piston_up_rules,
|
||||
|
@ -535,7 +535,7 @@ minetest.register_node("mesecons_pistons:piston_down_normal_off", {
|
|||
is_ground_content = false,
|
||||
drop = "mesecons_pistons:piston_normal_off",
|
||||
mesecons_piston = pistonspec_normal_down,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
sounds = mcl_core.node_sound_wood_defaults(),
|
||||
mesecons = {effector={
|
||||
action_on = piston_on,
|
||||
rules = piston_down_rules,
|
||||
|
@ -564,7 +564,7 @@ minetest.register_node("mesecons_pistons:piston_down_normal_on", {
|
|||
node_box = piston_down_on_box,
|
||||
selection_box = piston_down_on_box,
|
||||
mesecons_piston = pistonspec_normal_down,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
sounds = mcl_core.node_sound_wood_defaults(),
|
||||
mesecons = {effector={
|
||||
action_off = piston_off,
|
||||
rules = piston_down_rules,
|
||||
|
@ -618,7 +618,7 @@ minetest.register_node("mesecons_pistons:piston_down_sticky_off", {
|
|||
is_ground_content = false,
|
||||
drop = "mesecons_pistons:piston_sticky_off",
|
||||
mesecons_piston = pistonspec_sticky_down,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
sounds = mcl_core.node_sound_wood_defaults(),
|
||||
mesecons = {effector={
|
||||
action_on = piston_on,
|
||||
rules = piston_down_rules,
|
||||
|
@ -647,7 +647,7 @@ minetest.register_node("mesecons_pistons:piston_down_sticky_on", {
|
|||
node_box = piston_down_on_box,
|
||||
selection_box = piston_down_on_box,
|
||||
mesecons_piston = pistonspec_sticky_down,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
sounds = mcl_core.node_sound_wood_defaults(),
|
||||
mesecons = {effector={
|
||||
action_off = piston_off,
|
||||
rules = piston_down_rules,
|
||||
|
@ -750,8 +750,8 @@ minetest.register_craft({
|
|||
output = 'mesecons_pistons:piston_normal_off',
|
||||
recipe = {
|
||||
{"group:wood", "group:wood", "group:wood"},
|
||||
{"default:cobble", "default:steel_ingot", "default:cobble"},
|
||||
{"default:cobble", "mesecons:redstone", "default:cobble"},
|
||||
{"mcl_core:cobble", "mcl_core:steel_ingot", "mcl_core:cobble"},
|
||||
{"mcl_core:cobble", "mesecons:redstone", "mcl_core:cobble"},
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
@ -115,7 +115,7 @@ mesecon:register_pressure_plate(
|
|||
"default_wood.png",
|
||||
"default_wood.png",
|
||||
{{"group:wood", "group:wood"}},
|
||||
default.node_sound_wood_defaults())
|
||||
mcl_core.node_sound_wood_defaults())
|
||||
|
||||
mesecon:register_pressure_plate(
|
||||
"mesecons_pressureplates:pressure_plate_stone_off",
|
||||
|
@ -123,8 +123,8 @@ mesecon:register_pressure_plate(
|
|||
"Stone Pressure Plate",
|
||||
"default_stone.png",
|
||||
"default_stone.png",
|
||||
{{"default:stone", "default:stone"}},
|
||||
default.node_sound_stone_defaults())
|
||||
{{"mcl_core:stone", "mcl_core:stone"}},
|
||||
mcl_core.node_sound_stone_defaults())
|
||||
|
||||
minetest.register_craft({
|
||||
type = "fuel",
|
||||
|
|
|
@ -20,7 +20,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_on", {
|
|||
drop = "mesecons_solarpanel:solar_panel_off",
|
||||
description="Daylight Sensor",
|
||||
groups = {dig_immediate=3, not_in_creative_inventory = 1},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
sounds = mcl_core.node_sound_glass_defaults(),
|
||||
mesecons = {receptor = {
|
||||
state = mesecon.state.on
|
||||
}},
|
||||
|
@ -49,7 +49,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_off", {
|
|||
},
|
||||
groups = {dig_immediate=3},
|
||||
description="Daylight Sensor",
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
sounds = mcl_core.node_sound_glass_defaults(),
|
||||
mesecons = {receptor = {
|
||||
state = mesecon.state.off
|
||||
}},
|
||||
|
@ -62,8 +62,8 @@ minetest.register_node("mesecons_solarpanel:solar_panel_off", {
|
|||
minetest.register_craft({
|
||||
output = 'mesecons_solarpanel:solar_panel_off',
|
||||
recipe = {
|
||||
{'default:glass', 'default:glass', 'default:glass'},
|
||||
{'default:quartz_crystal', 'default:quartz_crystal', 'default:quartz_crystal'},
|
||||
{'mcl_core:glass', 'mcl_core:glass', 'mcl_core:glass'},
|
||||
{'mcl_core:quartz_crystal', 'mcl_core:quartz_crystal', 'mcl_core:quartz_crystal'},
|
||||
{'group:wood_slab', 'group:wood_slab', 'group:wood_slab'},
|
||||
}
|
||||
})
|
||||
|
@ -118,7 +118,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_inverted_on", {
|
|||
drop = "mesecons_solarpanel:solar_panel_off",
|
||||
groups = {dig_immediate=3, not_in_creative_inventory = 1},
|
||||
description="Inverted Daylight Sensor",
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
sounds = mcl_core.node_sound_glass_defaults(),
|
||||
mesecons = {receptor = {
|
||||
state = mesecon.state.on
|
||||
}},
|
||||
|
@ -148,7 +148,7 @@ minetest.register_node("mesecons_solarpanel:solar_panel_inverted_off", {
|
|||
drop = "mesecons_solarpanel:solar_panel_off",
|
||||
groups = {dig_immediate=3, not_in_creative_inventory=1},
|
||||
description="Inverted Daylight Sensor",
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
sounds = mcl_core.node_sound_glass_defaults(),
|
||||
mesecons = {receptor = {
|
||||
state = mesecon.state.off
|
||||
}},
|
||||
|
|
|
@ -38,7 +38,7 @@ minetest.register_craft({
|
|||
output = 'mesecons_torch:mesecon_torch_on',
|
||||
recipe = {
|
||||
{"mesecons:redstone"},
|
||||
{"default:stick"},}
|
||||
{"mcl_core:stick"},}
|
||||
})
|
||||
|
||||
local torch_selectionbox =
|
||||
|
@ -92,7 +92,7 @@ minetest.register_node("mesecons_torch:redstoneblock", {
|
|||
tiles = {"default_redstone_block.png"},
|
||||
stack_max = 64,
|
||||
groups = {cracky=1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
sounds = mcl_core.node_sound_stone_defaults(),
|
||||
is_ground_content = false,
|
||||
mesecons = {receptor = {
|
||||
state = mesecon.state.on,
|
||||
|
|
|
@ -35,7 +35,7 @@ minetest.register_node("mesecons_walllever:wall_lever_off", {
|
|||
mesecon:receptor_on(pos, mesecon.rules.buttonlike_get(node))
|
||||
minetest.sound_play("mesecons_lever", {pos=pos})
|
||||
end,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
sounds = mcl_core.node_sound_wood_defaults(),
|
||||
mesecons = {receptor = {
|
||||
rules = mesecon.rules.buttonlike_get,
|
||||
state = mesecon.state.off
|
||||
|
@ -75,7 +75,7 @@ minetest.register_node("mesecons_walllever:wall_lever_on", {
|
|||
mesecon:receptor_off(pos, mesecon.rules.buttonlike_get(node))
|
||||
minetest.sound_play("mesecons_lever", {pos=pos})
|
||||
end,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
sounds = mcl_core.node_sound_wood_defaults(),
|
||||
mesecons = {receptor = {
|
||||
rules = mesecon.rules.buttonlike_get,
|
||||
state = mesecon.state.on
|
||||
|
@ -85,7 +85,7 @@ minetest.register_node("mesecons_walllever:wall_lever_on", {
|
|||
minetest.register_craft({
|
||||
output = 'mesecons_walllever:wall_lever_off',
|
||||
recipe = {
|
||||
{'default:stick'},
|
||||
{'default:cobble'},
|
||||
{'mcl_core:stick'},
|
||||
{'mcl_core:cobble'},
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue