Make wood not breakable by hand (by default).

This commit is contained in:
Duane 2016-06-24 12:01:52 -05:00
parent c8ad6d4fec
commit aac2db0da4
6 changed files with 31 additions and 4 deletions

View file

@ -4,6 +4,19 @@
minetest.register_ore({ore_type="sheet", ore="default:sandstone", wherein="default:stone", clust_num_ores=250, clust_scarcity=60, clust_size=10, y_min=-1000, y_max=31000, noise_threshold=0.1, noise_params={offset=0, scale=1, spread={x=256, y=256, z=256}, seed=4130293965, octaves=5, persist=0.60}, random_factor=1.0})
minetest.register_ore({ore_type="sheet", ore="default:desert_stone", wherein="default:stone", clust_num_ores=250, clust_scarcity=60, clust_size=10, y_min=-1000, y_max=31000, noise_threshold=0.1, noise_params={offset=0, scale=1, spread={x=256, y=256, z=256}, seed=163281090, octaves=5, persist=0.60}, random_factor=1.0})
if not fun_caves.breakable_wood then
print('* Fun Caves: Wood is NOT breakable by hand.')
for _, item in pairs(minetest.registered_items) do
if item.groups.tree or item.groups.wood then
local groups = table.copy(item.groups)
groups.oddly_breakable_by_hand = nil
minetest.override_item(item.name, {groups=groups})
end
end
end
minetest.register_node("fun_caves:sand_with_rocks", {
description = "Sand and rocks",
tiles = {"fun_caves_sand_with_rocks.png"},
@ -12,6 +25,13 @@ minetest.register_node("fun_caves:sand_with_rocks", {
drop = {max_items=2, items={{items={"fun_caves:small_rocks"}, rarity=1}, {items={"default:sand"}, rarity=1}}},
})
minetest.register_craft({
output = "default:stick 2",
recipe = {
{"group:sapling"}
}
})
minetest.register_craft({
output = "default:stick 2",
recipe = {
@ -19,7 +39,7 @@ minetest.register_craft({
}
})
minetest.add_group("default:cactus", {oddly_breakable_by_hand=1})
--minetest.add_group("default:cactus", {oddly_breakable_by_hand=1})
if fun_caves.use_bi_hi then