Added Desert Stone Bricks
This commit is contained in:
parent
8b05506e32
commit
081e339c94
@ -309,8 +309,17 @@ minetest.register_node("default:desert_stone_flat", {
|
|||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_node("default:desert_stone_bricks", {
|
||||||
|
description = "Desert Stone Bricks",
|
||||||
|
tiles = {"default_desert_stone_bricks.png"},
|
||||||
|
particle_image = {"default_desert_stone_bricks.png"},
|
||||||
|
is_ground_content = true,
|
||||||
|
groups = {cracky=3,drop_on_dig=1},
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_node("default:cobbleblock_flat", {
|
minetest.register_node("default:cobbleblock_flat", {
|
||||||
description = "Stone Brick Block",
|
description = "Stone Bricks",
|
||||||
tiles = {"default_cobbleblock_flat.png"},
|
tiles = {"default_cobbleblock_flat.png"},
|
||||||
particle_image = {"default_cobble.png"},
|
particle_image = {"default_cobble.png"},
|
||||||
is_ground_content = true,
|
is_ground_content = true,
|
||||||
|
BIN
mods/default/textures/default_desert_stone_bricks.png
Normal file
BIN
mods/default/textures/default_desert_stone_bricks.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 724 B |
@ -131,8 +131,6 @@ for i, material in ipairs(instruments.materials) do
|
|||||||
minetest.env:add_node(pointed_thing.under, {name="default:stone_flat"})
|
minetest.env:add_node(pointed_thing.under, {name="default:stone_flat"})
|
||||||
elseif n.name == "default:desert_stone" then
|
elseif n.name == "default:desert_stone" then
|
||||||
minetest.env:add_node(pointed_thing.under, {name="default:desert_stone_flat"})
|
minetest.env:add_node(pointed_thing.under, {name="default:desert_stone_flat"})
|
||||||
elseif n.name == "default:cobbleblock" then
|
|
||||||
minetest.env:add_node(pointed_thing.under, {name="default:cobbleblock_flat"})
|
|
||||||
elseif n.name == "default:stone_slab_r" then
|
elseif n.name == "default:stone_slab_r" then
|
||||||
minetest.env:add_node(pointed_thing.under, {name="default:stone_flat_slab_r", param2=n.param2})
|
minetest.env:add_node(pointed_thing.under, {name="default:stone_flat_slab_r", param2=n.param2})
|
||||||
elseif n.name == "default:stone_slab" then
|
elseif n.name == "default:stone_slab" then
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
default
|
default
|
||||||
trees
|
scribing_table
|
@ -44,10 +44,25 @@ realtest.register_joiner_table_recipe({
|
|||||||
instrument = "chisel"
|
instrument = "chisel"
|
||||||
})
|
})
|
||||||
|
|
||||||
|
realtest.register_joiner_table_recipe({
|
||||||
|
item1 = "default:stone_flat",
|
||||||
|
item2 = "scribing_table:stonebricks",
|
||||||
|
output = "default:cobbleblock_flat",
|
||||||
|
rmitem2 = false,
|
||||||
|
instrument = "chisel"
|
||||||
|
})
|
||||||
|
|
||||||
|
realtest.register_joiner_table_recipe({
|
||||||
|
item1 = "default:desert_stone_flat",
|
||||||
|
item2 = "scribing_table:stonebricks",
|
||||||
|
output = "default:desert_stone_bricks",
|
||||||
|
rmitem2 = false,
|
||||||
|
instrument = "chisel"
|
||||||
|
})
|
||||||
|
|
||||||
for _, tree in pairs(realtest.registered_trees) do
|
for _, tree in pairs(realtest.registered_trees) do
|
||||||
local planks = tree.textures.planks
|
local planks = tree.textures.planks
|
||||||
minetest.register_node("joiner_table:joiner_table_"..tree.name:remove_modname_prefix(),
|
minetest.register_node("joiner_table:joiner_table_"..tree.name:remove_modname_prefix(), {
|
||||||
{
|
|
||||||
description = tree.description .. " Joiner Table",
|
description = tree.description .. " Joiner Table",
|
||||||
tiles = {planks.."^joiner_table_top.png", planks, planks.."^joiner_table_side.png",
|
tiles = {planks.."^joiner_table_top.png", planks, planks.."^joiner_table_side.png",
|
||||||
planks.."^joiner_table_side.png", planks.."^joiner_table_side.png", planks.."^joiner_table_face.png"},
|
planks.."^joiner_table_side.png", planks.."^joiner_table_side.png", planks.."^joiner_table_face.png"},
|
||||||
@ -98,7 +113,6 @@ for _, tree in pairs(realtest.registered_trees) do
|
|||||||
instr_stack = inv:get_stack("instruments", instr)
|
instr_stack = inv:get_stack("instruments", instr)
|
||||||
end
|
end
|
||||||
if instr_stack and recipe.item1 == src1:get_name() and recipe.item2 == src2:get_name() then
|
if instr_stack and recipe.item1 == src1:get_name() and recipe.item2 == src2:get_name() then
|
||||||
minetest.chat_send_all("sdf")
|
|
||||||
if inv:room_for_item("output", recipe.output) then
|
if inv:room_for_item("output", recipe.output) then
|
||||||
if recipe.rmitem1 then
|
if recipe.rmitem1 then
|
||||||
src1:take_item()
|
src1:take_item()
|
||||||
|
@ -109,6 +109,15 @@ realtest.register_instrument_plan("scribing_table:plan_saw", {
|
|||||||
0,0,0,1,1,}
|
0,0,0,1,1,}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
realtest.register_instrument_plan("scribing_table:stonebricks", {
|
||||||
|
description = "Stonebricks Plan",
|
||||||
|
bitmap = {1,1,1,1,1,
|
||||||
|
1,0,0,0,1,
|
||||||
|
1,1,1,1,1,
|
||||||
|
1,0,1,0,1,
|
||||||
|
1,1,1,1,1,}
|
||||||
|
})
|
||||||
|
|
||||||
local function check_recipe(pos)
|
local function check_recipe(pos)
|
||||||
local meta = minetest.env:get_meta(pos)
|
local meta = minetest.env:get_meta(pos)
|
||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user