fixes
This commit is contained in:
parent
0253e555b4
commit
6de5cde3e8
81
init.lua
81
init.lua
@ -8,12 +8,32 @@ function firstToUpper(str)
|
||||
return (str:gsub("^%l", string.upper))
|
||||
end
|
||||
|
||||
local function on_punch_marble(pos, player, replace_item)
|
||||
local wielded_item = player:get_wielded_item()
|
||||
local wielded_item_name = wielded_item:get_name()
|
||||
if wielded_item_name == "jonez:chisel" then
|
||||
minetest.set_node(pos, {name= replace_item})
|
||||
minetest.sound_play("jonez_carve", {pos = pos, gain = 0.7, max_hear_distance = 5})
|
||||
end
|
||||
end
|
||||
|
||||
minetest.register_node("jonez:marble", {
|
||||
description = S("Ancient Marble"),
|
||||
tiles = {"jonez_marble.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
on_punch = function(pos, node, player, pointed_thing)
|
||||
on_punch_marble(pos, player, "jonez:marble_polished")
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node("jonez:marble_polished", {
|
||||
description = S("Ancient Polished Marble"),
|
||||
tiles = {"jonez_marble_polished.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
stairs.register_stair_and_slab(
|
||||
@ -41,16 +61,54 @@ minetest.register_node("jonez:marble_brick", {
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
on_punch = function(pos, node, player, pointed_thing)
|
||||
on_punch_marble(pos, player, "jonez:marble_brick_polished")
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node("jonez:marble_brick_polished", {
|
||||
description = S("Ancient Marble Polished Brick"),
|
||||
tiles = {"jonez_marble_brick_polished.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
stairs.register_stair_and_slab(
|
||||
"marble_polished",
|
||||
"jonez:marble_polished",
|
||||
{choppy = 2, stone = 1},
|
||||
{"jonez_marble_polished.png"},
|
||||
S("Ancient Polished Marble Stair"),
|
||||
S("Ancient Polished Marble Slab"),
|
||||
default.node_sound_stone_defaults()
|
||||
)
|
||||
stairs.register_stair_and_slab(
|
||||
"marble_brick_polished",
|
||||
"jonez:marble_brick_polished",
|
||||
{choppy = 2, stone = 1},
|
||||
{"jonez_marble_brick_polished.png"},
|
||||
S("Ancient Polished Marble Brick Stair"),
|
||||
S("Ancient Polished Marble Brick Slab"),
|
||||
default.node_sound_stone_defaults()
|
||||
)
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'jonez:marble_bricks',
|
||||
output = 'jonez:marble_brick',
|
||||
recipe = {
|
||||
{'jonez:marble', 'jonez:marble'},
|
||||
{'jonez:marble', 'jonez:marble'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'jonez:marble_brick_polished',
|
||||
recipe = {
|
||||
{'jonez:marble_polished', 'jonez:marble_polished'},
|
||||
{'jonez:marble_polished', 'jonez:marble_polished'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "jonez:marble",
|
||||
@ -243,6 +301,27 @@ local pavements= {
|
||||
{'stairs:slab_marble_brick', 'stairs:slab_marble_brick', ''},
|
||||
}
|
||||
},
|
||||
{name= "jonez:mosaic_pavement", description= "Ancient Mosaic Pavement", texture= "jonez_mosaic_pavement.png",
|
||||
recipe = {
|
||||
{'stairs:slab_marble_brick', 'stairs:slab_marble_brick', 'stairs:slab_marble_brick'},
|
||||
{'stairs:slab_marble_brick', 'stairs:slab_marble_brick', 'stairs:slab_marble_brick'},
|
||||
{'stairs:slab_marble_brick', 'stairs:slab_marble_brick', 'stairs:slab_marble_brick'},
|
||||
}
|
||||
},
|
||||
{name= "jonez:diamond_pavement", description= "Ancient Diamond Pavement", texture= "jonez_diamond_pavement.png",
|
||||
recipe = {
|
||||
{'', 'stairs:slab_marble', ''},
|
||||
{'stairs:slab_marble', '', 'stairs:slab_marble'},
|
||||
{'', 'stairs:slab_marble', ''},
|
||||
}
|
||||
},
|
||||
{name= "jonez:pebbled_pavement", description= "Ancient Pebbled Pavement", texture= "jonez_pebbled_pavement.png",
|
||||
recipe = {
|
||||
{'', 'stairs:slab_marble_brick_polished', ''},
|
||||
{'stairs:slab_marble_brick_polished', 'stairs:slab_marble_brick_polished', 'stairs:slab_marble_brick_polished'},
|
||||
{'', 'stairs:slab_marble_brick_polished', ''},
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
for i = 1, #pavements do
|
||||
|
@ -25,4 +25,11 @@ Mosaic Glass Panel=Panel de mosaico
|
||||
Blossom Glass Panel=Panel mosaico florido
|
||||
Ancient Blossom Pavement=Pavimento antiguo floreado
|
||||
Ancient Tiled Pavement=Pavimento de baldosas antiguas
|
||||
|
||||
Ancient Mosaic Pavement=Pavimento de mosaico antiguo
|
||||
Ancient Diamond Pavement=Pavimento de rombos antiguo
|
||||
Ancient Pebbled Pavement=Pavimento de guijarros antiguo
|
||||
Ancient Polished Marble=Marmol pulido antiguo
|
||||
Ancient Polished Marble Stair=Escalera de mármol pulido antiguo
|
||||
Ancient Polished Marble Slab=Losa de mármol pulido antiguo
|
||||
Ancient Polished Marble Brick Stair=Escalera de ladrillo de mármol pulido antiguo
|
||||
Ancient Polished Marble Brick Slab=Losa de ladrillo de mármol pulido antiguo
|
||||
|
BIN
textures/jonez_diamond_pavement.png
Normal file
BIN
textures/jonez_diamond_pavement.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 963 B |
BIN
textures/jonez_marble_brick_polished.png
Normal file
BIN
textures/jonez_marble_brick_polished.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
BIN
textures/jonez_mosaic_pavement.png
Normal file
BIN
textures/jonez_mosaic_pavement.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1009 B |
BIN
textures/jonez_pebbled_pavement.png
Normal file
BIN
textures/jonez_pebbled_pavement.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.0 KiB |
Loading…
Reference in New Issue
Block a user