some improvements

This commit is contained in:
cale 2016-07-12 19:13:55 +02:00
parent 4d8ccaff01
commit 69edcfe721
4 changed files with 19 additions and 3 deletions

View File

@ -64,6 +64,13 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = "default:stick 2",
recipe = {
{"default:jungle_wood"},
}
})
minetest.register_craft({
output = "default:wood 3",
recipe = {
@ -182,6 +189,13 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = "default:stone_item 4",
recipe = {
{"default:stone_tile"},
}
})
-- coal

Binary file not shown.

Before

Width:  |  Height:  |  Size: 191 B

After

Width:  |  Height:  |  Size: 261 B

View File

@ -33,8 +33,10 @@ function farming.register_plant(name, steps, def)
inventory_image = def.drop_texture,
on_place = function(itemstack, placer, pointed_thing)
if pointed_thing.above then
minetest.set_node(pointed_thing.above, {name="farming:"..name.."_1"})
itemstack:take_item()
if minetest.get_node(pointed_thing.above).name == "air" then
minetest.set_node(pointed_thing.above, {name="farming:"..name.."_1"})
itemstack:take_item()
end
end
return itemstack
end,

View File

@ -170,7 +170,7 @@ minetest.register_craftitem("stairs:chisel", {
if n.param2 > 3 then
n.param2 = 0;
end
minetest.set_node(pt.under, n)
minetest.swap_node(pt.under, n)
end
end
return itemstack