renamed tasks to prefixed format to avoid overlappings
This commit is contained in:
parent
d8b18f7b88
commit
fc5c081aac
@ -1,14 +1,14 @@
|
||||
----------------------------------------------------
|
||||
-- Default base task
|
||||
----------------------------------------------------
|
||||
customnode.register_task("default", function(nodedef)
|
||||
customnode.register_task("customnode:node", function(nodedef)
|
||||
minetest.register_node(nodedef.name, nodedef)
|
||||
end)
|
||||
|
||||
----------------------------------------------------
|
||||
-- task for stairs and slabs using stairs mod
|
||||
----------------------------------------------------
|
||||
customnode.register_task("stairs_slabs", function(nodedef, generator)
|
||||
customnode.register_task("stairs:stairs_slabs", function(nodedef, generator)
|
||||
if minetest.global_exists("stairs") then
|
||||
stairs.register_stair_and_slab(
|
||||
generator.modname.."_"..generator:get_name(),
|
||||
|
12
variants.lua
12
variants.lua
@ -5,7 +5,7 @@ customnode.register_variant("customnode:default", {
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 3, oddly_breakable_by_hand = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
tasks = {"default"},
|
||||
tasks = {"customnode:node"},
|
||||
})
|
||||
|
||||
----------------------------------------------------
|
||||
@ -30,12 +30,12 @@ customnode.register_variant("customnode:grass", {
|
||||
|
||||
customnode.register_variant("customnode:ice", {
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
tasks = {"stairs_slabs"},
|
||||
tasks = {"stairs:stairs_slabs"},
|
||||
})
|
||||
|
||||
customnode.register_variant("customnode:stone", {
|
||||
groups = {cracky = 3, stone = 1, oddly_breakable_by_hand = 2},
|
||||
tasks = {"stairs_slabs"},
|
||||
tasks = {"stairs:stairs_slabs"},
|
||||
})
|
||||
|
||||
customnode.register_variant("customnode:brick", "customnode:stone")
|
||||
@ -45,7 +45,7 @@ customnode.register_variant("customnode:cobblestone", "customnode:stone")
|
||||
|
||||
customnode.register_variant("customnode:sandstone", {
|
||||
groups = {crumbly = 1, cracky = 3, oddly_breakable_by_hand = 2},
|
||||
tasks = {"stairs_slabs"},
|
||||
tasks = {"stairs:stairs_slabs"},
|
||||
})
|
||||
|
||||
customnode.register_variant("customnode:sand", {
|
||||
@ -75,13 +75,13 @@ customnode.register_variant("customnode:wood", {
|
||||
place_param2 = 0,
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2, wood = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
tasks = {"stairs_slabs"},
|
||||
tasks = {"stairs:stairs_slabs"},
|
||||
})
|
||||
|
||||
customnode.register_variant("customnode:metal", {
|
||||
groups = {cracky = 1},
|
||||
sounds = default.node_sound_metal_defaults(),
|
||||
tasks = {"stairs_slabs"},
|
||||
tasks = {"stairs:stairs_slabs"},
|
||||
})
|
||||
customnode.register_variant("customnode:steel", "customnode:metal")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user