Added Desert Stone Bricks

This commit is contained in:
Kotolegokot 2013-04-20 22:14:40 +06:00
parent 8b05506e32
commit 081e339c94
6 changed files with 37 additions and 7 deletions

View File

@ -309,8 +309,17 @@ minetest.register_node("default:desert_stone_flat", {
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", {
description = "Stone Brick Block",
description = "Stone Bricks",
tiles = {"default_cobbleblock_flat.png"},
particle_image = {"default_cobble.png"},
is_ground_content = true,

Binary file not shown.

After

Width:  |  Height:  |  Size: 724 B

View File

@ -131,8 +131,6 @@ for i, material in ipairs(instruments.materials) do
minetest.env:add_node(pointed_thing.under, {name="default:stone_flat"})
elseif n.name == "default:desert_stone" then
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
minetest.env:add_node(pointed_thing.under, {name="default:stone_flat_slab_r", param2=n.param2})
elseif n.name == "default:stone_slab" then

View File

@ -1,2 +1,2 @@
default
trees
scribing_table

View File

@ -44,10 +44,25 @@ realtest.register_joiner_table_recipe({
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
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",
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"},
@ -98,7 +113,6 @@ for _, tree in pairs(realtest.registered_trees) do
instr_stack = inv:get_stack("instruments", instr)
end
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 recipe.rmitem1 then
src1:take_item()

View File

@ -109,6 +109,15 @@ realtest.register_instrument_plan("scribing_table:plan_saw", {
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 meta = minetest.env:get_meta(pos)
local inv = meta:get_inventory()