Ajoute alias manquants
This commit is contained in:
parent
5fb7d30dbc
commit
e1fbfae304
22
items.lua
22
items.lua
|
@ -37,6 +37,12 @@ local function add_more_nodes(name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function add_aliases(old, new)
|
||||||
|
minetest.register_alias("nether:"..old, "hell:"..new)
|
||||||
|
minetest.register_alias("nether"..":stair_"..old, "hell"..":stair_"..new)
|
||||||
|
minetest.register_alias("nether"..":slab_"..old, "hell"..":slab_"..new)
|
||||||
|
end
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
local function add_fence(name)
|
local function add_fence(name)
|
||||||
local def = minetest.registered_nodes[name]
|
local def = minetest.registered_nodes[name]
|
||||||
|
@ -86,7 +92,7 @@ minetest.register_node("hell:hellrack", {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
add_more_nodes("hellrack")
|
add_more_nodes("hellrack")
|
||||||
minetest.register_alias("nether:netherrack", "hell:hellrack")
|
add_aliases("netherrack", "hellrack")
|
||||||
|
|
||||||
minetest.register_node("hell:hellrack_tiled", {
|
minetest.register_node("hell:hellrack_tiled", {
|
||||||
description = "Tiled Hellrack",
|
description = "Tiled Hellrack",
|
||||||
|
@ -98,7 +104,7 @@ minetest.register_node("hell:hellrack_tiled", {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
add_more_nodes("hellrack_tiled")
|
add_more_nodes("hellrack_tiled")
|
||||||
minetest.register_alias("nether:netherrack_tiled", "hell:hellrack_tiled")
|
add_aliases("netherrack_tiled", "hellrack_tiled")
|
||||||
|
|
||||||
minetest.register_node("hell:hellrack_soil", {
|
minetest.register_node("hell:hellrack_soil", {
|
||||||
description = "Dirty Hellrack",
|
description = "Dirty Hellrack",
|
||||||
|
@ -109,7 +115,7 @@ minetest.register_node("hell:hellrack_soil", {
|
||||||
return digging_allowed(player, 2)
|
return digging_allowed(player, 2)
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
minetest.register_alias("nether:netherrack_soil", "hell:hellrack_soil")
|
add_aliases("netherrack_soil", "hellrack_soil")
|
||||||
|
|
||||||
minetest.register_node("hell:hellrack_black", {
|
minetest.register_node("hell:hellrack_black", {
|
||||||
description = "Black Hellrack",
|
description = "Black Hellrack",
|
||||||
|
@ -121,7 +127,7 @@ minetest.register_node("hell:hellrack_black", {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
add_more_nodes("hellrack_black")
|
add_more_nodes("hellrack_black")
|
||||||
minetest.register_alias("nether:netherrack_black", "hell:hellrack_black")
|
add_aliases("netherrack_black", "hellrack_black")
|
||||||
|
|
||||||
minetest.register_node("hell:hellrack_blue", {
|
minetest.register_node("hell:hellrack_blue", {
|
||||||
description = "Blue Hellrack",
|
description = "Blue Hellrack",
|
||||||
|
@ -133,7 +139,7 @@ minetest.register_node("hell:hellrack_blue", {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
add_more_nodes("hellrack_blue")
|
add_more_nodes("hellrack_blue")
|
||||||
minetest.register_alias("nether:netherrack_blue", "hell:hellrack_blue")
|
add_aliases("netherrack_blue", "hellrack_blue")
|
||||||
|
|
||||||
-- Hellbrick
|
-- Hellbrick
|
||||||
minetest.register_node("hell:hellrack_brick", {
|
minetest.register_node("hell:hellrack_brick", {
|
||||||
|
@ -146,7 +152,7 @@ minetest.register_node("hell:hellrack_brick", {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
add_more_nodes("hellrack_brick")
|
add_more_nodes("hellrack_brick")
|
||||||
minetest.register_alias("nether:netherrack_brick", "hell:hellrack_brick")
|
add_aliases("netherrack_brick", "hellrack_brick")
|
||||||
|
|
||||||
minetest.register_node("hell:hellrack_brick_blue", {
|
minetest.register_node("hell:hellrack_brick_blue", {
|
||||||
description = "Blue Hellrack Brick",
|
description = "Blue Hellrack Brick",
|
||||||
|
@ -158,7 +164,7 @@ minetest.register_node("hell:hellrack_brick_blue", {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
add_more_nodes("hellrack_brick_blue")
|
add_more_nodes("hellrack_brick_blue")
|
||||||
minetest.register_alias("nether:netherrack_brick_blue", "hell:hellrack_brick_blue")
|
add_aliases("netherrack_brick_blue", "hellrack_brick_blue")
|
||||||
|
|
||||||
minetest.register_node("hell:hellrack_brick_black", {
|
minetest.register_node("hell:hellrack_brick_black", {
|
||||||
description = "Black Hellrack Brick",
|
description = "Black Hellrack Brick",
|
||||||
|
@ -170,7 +176,7 @@ minetest.register_node("hell:hellrack_brick_black", {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
add_more_nodes("hellrack_brick_black")
|
add_more_nodes("hellrack_brick_black")
|
||||||
minetest.register_alias("nether:netherrack_brick_black", "hell:hellrack_brick_black")
|
add_aliases("netherrack_brick_black", "hellrack_brick_black")
|
||||||
|
|
||||||
minetest.register_node("hell:white", {
|
minetest.register_node("hell:white", {
|
||||||
description = "Siwtonic block",
|
description = "Siwtonic block",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user