2014-12-16 21:43:27 +01:00
|
|
|
local nether_sound = default.node_sound_stone_defaults({
|
|
|
|
dig = {name="nether_dig", gain=0.7},
|
|
|
|
dug = {name="nether_dug", gain=1},
|
|
|
|
footstep = {name="nether_footstep", gain=0.4}
|
|
|
|
})
|
|
|
|
|
|
|
|
local function add_stair_and_slab(name)
|
|
|
|
local nd = "nether:"..name
|
|
|
|
if not string.find(name, "nether") then
|
|
|
|
name = "nether_"..name
|
|
|
|
end
|
|
|
|
local data = minetest.registered_nodes[nd]
|
|
|
|
stairs.register_stair_and_slab(name, nd,
|
|
|
|
data.groups,
|
|
|
|
data.tiles,
|
|
|
|
data.description.." Stair",
|
|
|
|
data.description.." Slab",
|
|
|
|
data.sounds
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
local function digging_allowed(player, v)
|
|
|
|
if not player then
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
local tool = minetest.registered_tools[player:get_wielded_item():get_name()]
|
|
|
|
if not tool then
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
local capabilities = tool.tool_capabilities
|
|
|
|
if not capabilities then
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
local groups = capabilities.groupcaps
|
|
|
|
if not groups then
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
local nether = groups.nether
|
|
|
|
if not nether then
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
if nether.times[v] then
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
|
|
|
|
-- Netherrack
|
|
|
|
minetest.register_node("nether:netherrack", {
|
|
|
|
description = "Netherrack",
|
|
|
|
tiles = {"nether_netherrack.png"},
|
|
|
|
groups = {nether=2},
|
|
|
|
sounds = nether_sound,
|
|
|
|
can_dig = function(_, player)
|
|
|
|
return digging_allowed(player, 2)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
add_stair_and_slab("netherrack")
|
|
|
|
|
|
|
|
minetest.register_node("nether:netherrack_tiled", {
|
|
|
|
description = "Tiled Netherrack",
|
|
|
|
tiles = {"nether_netherrack_tiled.png"},
|
|
|
|
groups = {nether=2},
|
|
|
|
sounds = nether_sound,
|
|
|
|
can_dig = function(_, player)
|
|
|
|
return digging_allowed(player, 2)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
add_stair_and_slab("netherrack_tiled")
|
|
|
|
|
|
|
|
minetest.register_node("nether:netherrack_soil", {
|
|
|
|
description = "Dirty Netherrack",
|
|
|
|
tiles = {"nether_netherrack.png^nether_netherrack_soil.png"},
|
|
|
|
groups = {nether=2},
|
|
|
|
sounds = nether_sound,
|
|
|
|
can_dig = function(_, player)
|
|
|
|
return digging_allowed(player, 2)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("nether:netherrack_black", {
|
|
|
|
description = "Black Netherrack",
|
|
|
|
tiles = {"nether_netherrack_black.png"},
|
|
|
|
groups = {nether=2},
|
|
|
|
sounds = nether_sound,
|
|
|
|
can_dig = function(_, player)
|
|
|
|
return digging_allowed(player, 2)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
add_stair_and_slab("netherrack_black")
|
|
|
|
|
|
|
|
minetest.register_node("nether:netherrack_blue", {
|
|
|
|
description = "Blue Netherrack",
|
|
|
|
tiles = {"nether_netherrack_blue.png"},
|
|
|
|
groups = {nether=1},
|
|
|
|
sounds = nether_sound,
|
|
|
|
can_dig = function(_, player)
|
|
|
|
return digging_allowed(player, 1)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
add_stair_and_slab("netherrack_blue")
|
|
|
|
|
|
|
|
-- Netherbrick
|
|
|
|
minetest.register_node("nether:netherrack_brick", {
|
|
|
|
description = "Netherrack Brick",
|
|
|
|
tiles = {"nether_netherrack_brick.png"},
|
|
|
|
groups = {nether=3},
|
|
|
|
sounds = nether_sound,
|
|
|
|
can_dig = function(_, player)
|
|
|
|
return digging_allowed(player, 3)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
add_stair_and_slab("netherrack_brick")
|
|
|
|
|
|
|
|
minetest.register_node("nether:netherrack_brick_blue", {
|
|
|
|
description = "Blue Netherrack Brick",
|
|
|
|
tiles = {"nether_netherrack_brick_blue.png"},
|
|
|
|
groups = {nether=3},
|
|
|
|
sounds = nether_sound,
|
|
|
|
can_dig = function(_, player)
|
|
|
|
return digging_allowed(player, 3)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
add_stair_and_slab("netherrack_brick_blue")
|
|
|
|
|
|
|
|
minetest.register_node("nether:netherrack_brick_black", {
|
|
|
|
description = "Black Netherrack Brick",
|
|
|
|
tiles = {"nether_netherrack_brick_black.png"},
|
|
|
|
groups = {nether=3},
|
|
|
|
sounds = nether_sound,
|
|
|
|
can_dig = function(_, player)
|
|
|
|
return digging_allowed(player, 3)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
add_stair_and_slab("netherrack_brick_black")
|
|
|
|
|
|
|
|
minetest.register_node("nether:white", {
|
|
|
|
description = "Siwtonic block",
|
|
|
|
tiles = {"nether_white.png"},
|
|
|
|
groups = {nether=1},
|
|
|
|
sounds = nether_sound,
|
|
|
|
can_dig = function(_, player)
|
|
|
|
return digging_allowed(player, 1)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
add_stair_and_slab("white")
|
|
|
|
|
|
|
|
|
|
|
|
-- Nether blood
|
|
|
|
minetest.register_node("nether:sapling", {
|
|
|
|
description = "Nether Blood Child",
|
|
|
|
drawtype = "plantlike",
|
|
|
|
tiles = {"nether_sapling.png"},
|
|
|
|
inventory_image = "nether_sapling.png",
|
|
|
|
wield_image = "nether_sapling.png",
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
|
|
|
|
},
|
|
|
|
groups = {snappy=2, oddly_breakable_by_hand=2, attached_node=1},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("nether:blood", {
|
|
|
|
description = "Nether Blood",
|
|
|
|
tiles = {"nether_blood.png"},
|
|
|
|
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
add_stair_and_slab("blood")
|
|
|
|
|
|
|
|
minetest.register_node("nether:blood_cooked", {
|
|
|
|
description = "Cooked Nether Blood",
|
|
|
|
tiles = {"nether_blood_cooked.png"},
|
|
|
|
groups = {nether=3},
|
|
|
|
sounds = nether_sound,
|
|
|
|
furnace_burntime = 10,
|
|
|
|
can_dig = function(_, player)
|
|
|
|
return digging_allowed(player, 3)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
add_stair_and_slab("blood_cooked")
|
|
|
|
|
|
|
|
minetest.register_node("nether:blood_empty", {
|
|
|
|
description = "Nether Blood Extracted",
|
|
|
|
tiles = {"nether_blood_empty.png"},
|
|
|
|
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
add_stair_and_slab("blood_empty")
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_node("nether:blood_top", {
|
|
|
|
description = "Nether Blood Head",
|
|
|
|
tiles = {"nether_blood_top.png", "nether_blood.png", "nether_blood.png^nether_blood_side.png"},
|
|
|
|
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
add_stair_and_slab("blood_top")
|
|
|
|
|
|
|
|
minetest.register_node("nether:blood_top_cooked", {
|
|
|
|
description = "Cooked Nether Blood Head",
|
|
|
|
tiles = {"nether_blood_top_cooked.png", "nether_blood_cooked.png", "nether_blood_cooked.png^nether_blood_side_cooked.png"},
|
|
|
|
groups = {nether=3},
|
|
|
|
sounds = nether_sound,
|
|
|
|
furnace_burntime = 10,
|
|
|
|
can_dig = function(_, player)
|
|
|
|
return digging_allowed(player, 3)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
add_stair_and_slab("blood_top_cooked")
|
|
|
|
|
|
|
|
minetest.register_node("nether:blood_top_empty", {
|
|
|
|
description = "Nether Blood Head Extracted",
|
|
|
|
tiles = {"nether_blood_top_empty.png", "nether_blood_empty.png", "nether_blood_empty.png^nether_blood_side_empty.png"},
|
|
|
|
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
add_stair_and_slab("blood_top_empty")
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_node("nether:blood_stem", {
|
|
|
|
description = "Nether Blood Stem",
|
|
|
|
tiles = {"nether_blood_stem_top.png", "nether_blood_stem_top.png", "nether_blood_stem.png"},
|
|
|
|
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
add_stair_and_slab("blood_stem")
|
|
|
|
|
|
|
|
minetest.register_node("nether:blood_stem_cooked", {
|
|
|
|
description = "Cooked Nether Blood Stem",
|
|
|
|
tiles = {"nether_blood_stem_top_cooked.png", "nether_blood_stem_top_cooked.png", "nether_blood_stem_cooked.png"},
|
|
|
|
groups = {nether=3},
|
|
|
|
sounds = nether_sound,
|
|
|
|
furnace_burntime = 30,
|
|
|
|
can_dig = function(_, player)
|
|
|
|
return digging_allowed(player, 3)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
add_stair_and_slab("blood_stem_cooked")
|
|
|
|
|
|
|
|
minetest.register_node("nether:blood_stem_empty", {
|
|
|
|
description = "Nether Blood Stem Extracted",
|
|
|
|
tiles = {"nether_blood_stem_top_empty.png", "nether_blood_stem_top_empty.png", "nether_blood_stem_empty.png"},
|
|
|
|
groups = {tree=1, choppy=2, oddly_breakable_by_hand=1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
add_stair_and_slab("blood_stem_empty")
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_node("nether:wood", {
|
|
|
|
description = "Nether Blood Wood",
|
|
|
|
tiles = {"nether_wood.png"},
|
|
|
|
groups = {choppy=2, oddly_breakable_by_hand=2},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
add_stair_and_slab("wood")
|
|
|
|
|
|
|
|
minetest.register_node("nether:wood_cooked", {
|
|
|
|
description = "Cooked Nether Blood Wood",
|
|
|
|
tiles = {"nether_wood_cooked.png"},
|
|
|
|
groups = {nether=3},
|
|
|
|
sounds = nether_sound,
|
|
|
|
furnace_burntime = 8,
|
|
|
|
can_dig = function(_, player)
|
|
|
|
return digging_allowed(player, 3)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
add_stair_and_slab("wood_cooked")
|
|
|
|
|
|
|
|
minetest.register_node("nether:wood_empty", {
|
|
|
|
description = "Nether Wood",
|
|
|
|
tiles = {"nether_wood_empty.png"},
|
|
|
|
groups = {choppy=2, oddly_breakable_by_hand=2, wood=1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
add_stair_and_slab("wood_empty")
|
|
|
|
|
|
|
|
minetest.register_node("nether:extractor", {
|
|
|
|
description = "Nether Blood Extractor",
|
|
|
|
tiles = {"nether_blood_extractor.png"},
|
|
|
|
groups = {nether=3},
|
|
|
|
sounds = nether_sound,
|
|
|
|
can_dig = function(_, player)
|
|
|
|
return digging_allowed(player, 3)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Nether fruit
|
|
|
|
minetest.register_node("nether:fruit_leaves", {
|
|
|
|
description = "Nether Fruit Leaves",
|
|
|
|
tiles = {"nether_fruit_leaves.png"},
|
|
|
|
groups = {fleshy=3, dig_immediate=2},
|
|
|
|
sounds = default.node_sound_defaults(),
|
|
|
|
furnace_burntime = 18,
|
|
|
|
})
|
|
|
|
add_stair_and_slab("fruit_leaves")
|
|
|
|
|
|
|
|
local function room_for_items(inv)
|
|
|
|
local free_slots = 0
|
|
|
|
for _,i in ipairs(inv:get_list("main")) do
|
|
|
|
if i:get_count() == 0 then
|
|
|
|
free_slots = free_slots+1
|
|
|
|
end
|
|
|
|
end
|
|
|
|
if free_slots < 2 then
|
|
|
|
return false
|
|
|
|
end
|
|
|
|
return true
|
|
|
|
end
|
|
|
|
|
|
|
|
local drop_mushroom = minetest.registered_nodes["riesenpilz:nether_shroom"].on_drop
|
|
|
|
minetest.override_item("riesenpilz:nether_shroom", {
|
|
|
|
on_drop = function(itemstack, dropper, pos)
|
|
|
|
if dropper:get_player_control().aux1 then
|
|
|
|
return drop_mushroom(itemstack, dropper, pos)
|
|
|
|
end
|
|
|
|
local inv = dropper:get_inventory()
|
|
|
|
if not inv then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
if not room_for_items(inv) then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
minetest.sound_play("nether_remove_leaf", {pos = pos, gain = 0.25})
|
|
|
|
itemstack:take_item()
|
|
|
|
inv:add_item("main", "nether:shroom_head")
|
|
|
|
inv:add_item("main", "nether:shroom_stem")
|
|
|
|
return itemstack
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("nether:apple", {
|
|
|
|
description = "Nether Fruit",
|
|
|
|
drawtype = "nodebox",
|
|
|
|
tiles = {"nether_fruit_top.png", "nether_fruit_bottom.png", "nether_fruit.png", "nether_fruit.png^[transformFX", "nether_fruit.png^[transformFX", "nether_fruit.png"},
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-1/6, -1/4, -1/6, 1/6, -1/6, 1/6},
|
|
|
|
|
|
|
|
{-1/6, -1/6, -1/4, 1/6, 1/6, 1/4},
|
|
|
|
{-1/4, -1/6, -1/6, 1/4, 1/6, 1/6},
|
|
|
|
|
|
|
|
{-1/4, 1/6, -1/12, 1/4, 1/4, 1/12},
|
|
|
|
{-1/12, 1/6, -1/4, 1/12, 1/4, 1/4},
|
|
|
|
|
|
|
|
{-1/6, 1/6, -1/6, 1/6, 1/3, 1/6},
|
|
|
|
|
|
|
|
{-1/12, 1/3, -1/12, 0, 5/12, 0},
|
|
|
|
|
|
|
|
{-1/12, 5/12, -1/6, 0, 0.5, 1/12},
|
|
|
|
{-1/6, 5/12, -1/12, 1/12, 0.5, 0},
|
|
|
|
}
|
|
|
|
},
|
|
|
|
paramtype = "light",
|
|
|
|
groups = {fleshy=3, dig_immediate=3},
|
|
|
|
on_use = function(itemstack, user)
|
|
|
|
local inv = user:get_inventory()
|
|
|
|
if not inv then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
itemstack:take_item()
|
|
|
|
if nether_port(user, vector.round(user:getpos())) then
|
|
|
|
return itemstack
|
|
|
|
end
|
2014-12-16 22:36:07 +01:00
|
|
|
|
2015-04-22 19:44:46 +02:00
|
|
|
local p_hunger = tonumber(hud.hunger[user:get_player_name()])
|
|
|
|
if not p_hunger then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
p_hunger = p_hunger + 9
|
|
|
|
if p_hunger > 30 then
|
|
|
|
p_hunger = 30
|
|
|
|
end
|
|
|
|
hud.hunger[user:get_player_name()] = p_hunger
|
|
|
|
hud.set_hunger(user)
|
|
|
|
|
2014-12-16 21:43:27 +01:00
|
|
|
local amount = math.random(4, 6)
|
|
|
|
inv:add_item("main", {name="nether:blood_extracted", count=math.floor(amount/3)})
|
|
|
|
user:set_hp(user:get_hp()-amount)
|
|
|
|
return itemstack
|
|
|
|
end,
|
|
|
|
sounds = default.node_sound_defaults(),
|
|
|
|
furnace_burntime = 6,
|
|
|
|
})
|
|
|
|
|
|
|
|
local drop_fruit = minetest.registered_nodes["nether:apple"].on_drop
|
|
|
|
minetest.override_item("nether:apple", {
|
|
|
|
on_drop = function(itemstack, dropper, pos)
|
|
|
|
if dropper:get_player_control().aux1 then
|
|
|
|
return drop_fruit(itemstack, dropper, pos)
|
|
|
|
end
|
|
|
|
local inv = dropper:get_inventory()
|
|
|
|
if not inv then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
if not room_for_items(inv) then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
minetest.sound_play("nether_remove_leaf", {pos = pos, gain = 0.25})
|
|
|
|
itemstack:take_item()
|
|
|
|
inv:add_item("main", "nether:fruit_leaf")
|
|
|
|
inv:add_item("main", "nether:fruit_no_leaf")
|
|
|
|
return itemstack
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Nether vine
|
|
|
|
minetest.register_node("nether:vine", {
|
|
|
|
description = "Nether vine",
|
|
|
|
walkable = false,
|
|
|
|
drop = "nether:sapling",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
tiles = { "nether_vine.png" },
|
|
|
|
drawtype = "plantlike",
|
|
|
|
inventory_image = "nether_vine.png",
|
|
|
|
groups = { snappy = 3,flammable=2 },
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
after_dig_node = function(pos, _, _, digger)
|
|
|
|
if digger then
|
|
|
|
local p = {x=pos.x, y=pos.y-1, z=pos.z}
|
|
|
|
local nn = minetest.get_node(p)
|
|
|
|
if nn.name == "nether:vine" then
|
|
|
|
minetest.node_dig(p, nn, digger)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
-- forest stuff
|
|
|
|
|
|
|
|
for n,i in pairs({"small", "middle", "big"}) do
|
|
|
|
minetest.register_node("nether:grass_"..i, {
|
2015-03-05 17:09:02 +01:00
|
|
|
description = "Nether Grass",
|
2014-12-16 21:43:27 +01:00
|
|
|
drawtype = "plantlike",
|
|
|
|
waving = 1,
|
|
|
|
tiles = {"nether_grass_"..i..".png"},
|
|
|
|
inventory_image = "nether_grass_"..i..".png",
|
|
|
|
wield_image = "nether_grass_"..i..".png",
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
drop = "nether:grass "..n,
|
|
|
|
groups = {snappy=3,flora=1,attached_node=1},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.5, -0.5, -0.5, 0.5, -5/16, 0.5},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
end
|
|
|
|
|
|
|
|
minetest.register_node("nether:glowflower", {
|
|
|
|
description = "Glowing Flower",
|
|
|
|
drawtype = "plantlike",
|
|
|
|
tiles = {"nether_glowflower.png"},
|
|
|
|
inventory_image = "nether_glowflower.png",
|
|
|
|
wield_image = "nether_glowflower.png",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
buildable_to = true,
|
|
|
|
light_source = 10,
|
|
|
|
groups = {snappy=3,flammable=2,flower=1,flora=1,attached_node=1},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = { -0.15, -0.5, -0.15, 0.15, 0.2, 0.15 },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("nether:tree_sapling", {
|
|
|
|
description = "Nether Tree Sapling",
|
|
|
|
drawtype = "plantlike",
|
|
|
|
tiles = {"nether_tree_sapling.png"},
|
|
|
|
inventory_image = "nether_tree_sapling.png",
|
|
|
|
wield_image = "nether_tree_sapling.png",
|
|
|
|
paramtype = "light",
|
|
|
|
walkable = false,
|
|
|
|
selection_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
|
|
|
|
},
|
|
|
|
groups = {snappy=2, oddly_breakable_by_hand=2, attached_node=1},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("nether:tree", {
|
2015-03-05 17:09:02 +01:00
|
|
|
description = "Nether Trunk",
|
2014-12-16 21:43:27 +01:00
|
|
|
tiles = {"nether_tree_top.png", "nether_tree_top.png", "nether_tree.png"},
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {tree=1,choppy=2,oddly_breakable_by_hand=1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
on_place = minetest.rotate_node
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("nether:tree_corner", {
|
2015-03-05 17:09:02 +01:00
|
|
|
description = "Nether Trunk Corner",
|
2014-12-16 21:43:27 +01:00
|
|
|
tiles = {"nether_tree.png^[transformR180", "nether_tree_top.png", "nether_tree_corner.png^[transformFY",
|
|
|
|
"nether_tree_corner.png^[transformR180", "nether_tree.png", "nether_tree_top.png"},
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {tree=1,choppy=2,oddly_breakable_by_hand=1,not_in_creative_inventory=1},
|
|
|
|
drop = "nether:tree",
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
on_place = minetest.rotate_node
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("nether:forest_wood", {
|
|
|
|
description = "Nether Wood Block",
|
|
|
|
tiles = {"nether_forest_wood.png"},
|
|
|
|
groups = {choppy=2,oddly_breakable_by_hand=2,wood=1},
|
|
|
|
sounds = default.node_sound_wood_defaults(),
|
|
|
|
})
|
|
|
|
add_stair_and_slab("forest_wood")
|
|
|
|
|
|
|
|
minetest.register_node("nether:leaves", {
|
|
|
|
description = "Nether Leaves",
|
|
|
|
drawtype = "plantlike",
|
|
|
|
waving = 1,
|
|
|
|
visual_scale = math.sqrt(math.sqrt(2)),
|
|
|
|
tiles = {"nether_leaves.png"},
|
|
|
|
inventory_image = "nether_leaves.png",
|
|
|
|
wield_image = "nether_leaves.png",
|
|
|
|
paramtype = "light",
|
|
|
|
is_ground_content = false,
|
|
|
|
groups = {snappy=3, leafdecay=3, leaves=1},
|
|
|
|
drop = {
|
|
|
|
max_items = 1,
|
|
|
|
items = {
|
|
|
|
{
|
|
|
|
items = {"nether:tree_sapling"},
|
|
|
|
rarity = 30,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
items = {"nether:leaves"},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
sounds = default.node_sound_leaves_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("nether:dirt", {
|
|
|
|
description = "Nether Dirt",
|
|
|
|
tiles = {"nether_dirt.png"},
|
|
|
|
groups = {crumbly=3,soil=1,nether_dirt=1},
|
|
|
|
sounds = default.node_sound_dirt_defaults(),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("nether:dirt_top", {
|
|
|
|
description = "Nether Dirt Top",
|
|
|
|
tiles = {"nether_dirt_top.png", "nether_dirt.png", "nether_dirt.png^nether_dirt_top_side.png"},
|
|
|
|
groups = {crumbly=3,soil=1,nether_dirt=1},
|
|
|
|
drop = "nether:dirt",
|
|
|
|
sounds = default.node_sound_dirt_defaults({
|
|
|
|
footstep = {name="default_grass_footstep", gain=0.25},
|
|
|
|
}),
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_node("nether:dirt_bottom", {
|
|
|
|
description = "Netherrack Dirt Transition",
|
|
|
|
tiles = {"nether_dirt.png", "nether_netherrack.png", "nether_netherrack.png^nether_dirt_transition.png"},
|
|
|
|
groups = {nether=2},
|
|
|
|
drop = "nether:netherrack",
|
|
|
|
sounds = default.node_sound_dirt_defaults({
|
|
|
|
dig = {name="nether_dig", gain=0.7},
|
|
|
|
dug = {name="nether_dug", gain=1},
|
|
|
|
}),
|
|
|
|
can_dig = function(_, player)
|
|
|
|
return digging_allowed(player, 2)
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
-- Nether torch
|
|
|
|
minetest.register_node("nether:torch", {
|
|
|
|
description = "Nether Torch",
|
|
|
|
drawtype = "torchlike",
|
2015-03-05 17:09:02 +01:00
|
|
|
tiles = {"nether_torch_on_floor.png", "nether_torch_on_ceiling.png",
|
|
|
|
{
|
|
|
|
name = "nether_torch.png",
|
|
|
|
animation = {
|
|
|
|
type = "vertical_frames",
|
|
|
|
aspect_w = 16,
|
|
|
|
aspect_h = 16,
|
|
|
|
length = 2.0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2014-12-16 21:43:27 +01:00
|
|
|
inventory_image = "nether_torch_on_floor.png",
|
|
|
|
wield_image = "nether_torch_on_floor.png",
|
|
|
|
paramtype = "light",
|
|
|
|
paramtype2 = "wallmounted",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
walkable = false,
|
2015-03-05 17:09:02 +01:00
|
|
|
light_source = 13,
|
2014-12-16 21:43:27 +01:00
|
|
|
selection_box = {
|
|
|
|
type = "wallmounted",
|
|
|
|
wall_top = {-0.1, 0.5-0.6, -0.1, 0.1, 0.5, 0.1},
|
|
|
|
wall_bottom = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1},
|
|
|
|
wall_side = {-0.5, -0.3, -0.1, -0.5+0.3, 0.3, 0.1},
|
|
|
|
},
|
|
|
|
groups = {choppy=2, dig_immediate=3, attached_node=1, hot=2},
|
|
|
|
legacy_wallmounted = true,
|
|
|
|
sounds = default.node_sound_defaults(),
|
|
|
|
})
|
|
|
|
|
2015-01-08 21:10:10 +01:00
|
|
|
local invisible = "nether_transparent.png"
|
2014-12-16 21:43:27 +01:00
|
|
|
minetest.register_node("nether:portal", {
|
|
|
|
description = "Nether Portal Essence",
|
2015-01-08 21:52:16 +01:00
|
|
|
tiles = {invisible, invisible, invisible, invisible, "nether_portal_stuff.png"},
|
2014-12-16 21:43:27 +01:00
|
|
|
inventory_image = "nether_portal_stuff.png",
|
|
|
|
wield_image = "nether_portal_stuff.png",
|
2015-03-05 17:09:02 +01:00
|
|
|
light_source = 12,
|
2014-12-16 21:43:27 +01:00
|
|
|
paramtype = "light",
|
|
|
|
sunlight_propagates = true,
|
|
|
|
use_texture_alpha = true,
|
|
|
|
walkable = false,
|
|
|
|
pointable = false,
|
|
|
|
buildable_to = false,
|
|
|
|
drop = "",
|
2015-05-15 13:21:03 +02:00
|
|
|
diggable = false,
|
2014-12-16 21:43:27 +01:00
|
|
|
groups = {not_in_creative_inventory=1},
|
|
|
|
post_effect_color = {a=200, r=50, g=0, b=60},--{a=180, r=128, g=0, b=128}
|
|
|
|
drawtype = "nodebox",
|
|
|
|
paramtype2 = "facedir",
|
|
|
|
node_box = {
|
|
|
|
type = "fixed",
|
|
|
|
fixed = {
|
|
|
|
{-0.5, -0.5, -0.1, 0.5, 0.5, 0.1},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
minetest.register_craftitem("nether:grass", {
|
2015-03-05 17:09:02 +01:00
|
|
|
description = "Nether Grass",
|
2014-12-16 21:43:27 +01:00
|
|
|
inventory_image = "nether_grass.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("nether:grass_dried", {
|
2015-03-05 17:09:02 +01:00
|
|
|
description = "Dried Nether Grass",
|
2014-12-16 21:43:27 +01:00
|
|
|
inventory_image = "nether_grass_dried.png",
|
|
|
|
furnace_burntime = 1,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("nether:forest_planks", {
|
|
|
|
description = "Nether Wooden Planks",
|
|
|
|
inventory_image = "nether_forest_planks.png",
|
|
|
|
stack_max = 990,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("nether:bark", {
|
|
|
|
description = "Nether Trunk Bark",
|
|
|
|
inventory_image = "nether_bark.png",
|
|
|
|
furnace_burntime = 5,
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Nether Pearl
|
|
|
|
minetest.register_craftitem("nether:pearl", {
|
|
|
|
description = "Nether Pearl",
|
|
|
|
inventory_image = "nether_pearl.png",
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("nether:stick", {
|
|
|
|
description = "Nether Stick",
|
|
|
|
inventory_image = "nether_stick.png",
|
|
|
|
groups = {stick=1},
|
|
|
|
})
|
|
|
|
|
|
|
|
local tmp = {}
|
|
|
|
minetest.register_craftitem("nether:shroom_head", {
|
|
|
|
description = "Nether Mushroom Head",
|
|
|
|
inventory_image = "nether_shroom_top.png",
|
|
|
|
furnace_burntime = 3,
|
|
|
|
on_place = function(itemstack, _, pointed_thing)
|
|
|
|
if not pointed_thing then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
if pointed_thing.type ~= "node" then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
local pos = minetest.get_pointed_thing_position(pointed_thing)
|
|
|
|
local node = minetest.get_node(pos)
|
|
|
|
local pstr = pos.x.." "..pos.y.." "..pos.z
|
|
|
|
|
|
|
|
if node.name == "nether:netherrack_soil"
|
|
|
|
and not tmp[pstr] then
|
|
|
|
minetest.sound_play("default_grass_footstep", {pos=pos})
|
|
|
|
minetest.set_node(pos, {name="nether:netherrack_soil", param2=math.max(node.param2, math.random(3, 10))})
|
|
|
|
tmp[pstr] = true
|
|
|
|
minetest.after(3, function() tmp[pos.x.." "..pos.y.." "..pos.z] = nil end)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("nether:shroom_stem", {
|
|
|
|
description = "Nether Mushroom Stem",
|
|
|
|
inventory_image = "nether_shroom_stem.png",
|
|
|
|
furnace_burntime = 3,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("nether:fruit_leaf", {
|
|
|
|
description = "Nether Fruit Leaf",
|
|
|
|
inventory_image = "nether_fruit_leaf.png",
|
|
|
|
furnace_burntime = 2,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("nether:fruit_no_leaf", {
|
|
|
|
description = "Nether Fruit Without Leaf",
|
|
|
|
inventory_image = "nether_fruit_no_leaf.png",
|
|
|
|
furnace_burntime = 4,
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("nether:fim", {
|
|
|
|
description = "Nether FIM", --fruit in mushroom
|
|
|
|
inventory_image = "nether_fim.png",
|
|
|
|
furnace_burntime = 10,
|
|
|
|
})
|
|
|
|
|
|
|
|
local blood_exno = {}
|
|
|
|
for _,i in ipairs({"nether:blood", "nether:blood_top", "nether:blood_stem"}) do
|
|
|
|
blood_exno[i] = i.."_empty"
|
|
|
|
end
|
|
|
|
|
|
|
|
minetest.register_craftitem("nether:blood_extracted", {
|
|
|
|
description = "Blood",
|
|
|
|
inventory_image = "nether_blood_extracted.png",
|
|
|
|
on_place = function(itemstack, _, pointed_thing)
|
|
|
|
if not pointed_thing then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
if pointed_thing.type ~= "node" then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
local pos = minetest.get_pointed_thing_position(pointed_thing)
|
|
|
|
local node = minetest.get_node_or_nil(pos)
|
|
|
|
|
|
|
|
if not node then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
if node.name == "nether:vine" then
|
|
|
|
pos = {x=pos.x, y=pos.y-1, z=pos.z}
|
|
|
|
if minetest.get_node(pos).name == "air" then
|
|
|
|
minetest.set_node(pos, {name = "nether:vine"})
|
|
|
|
end
|
|
|
|
itemstack:take_item()
|
|
|
|
return itemstack
|
|
|
|
end
|
|
|
|
|
|
|
|
if node.name ~= "nether:extractor" then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
itemstack:take_item()
|
|
|
|
minetest.after(1, function(pos)
|
|
|
|
for i = -1,1,2 do
|
|
|
|
for _,p in ipairs({
|
|
|
|
{x=pos.x+i, y=pos.y, z=pos.z},
|
|
|
|
{x=pos.x, y=pos.y, z=pos.z+i},
|
|
|
|
}) do
|
|
|
|
local nodename = blood_exno[minetest.get_node(p).name]
|
|
|
|
if nodename then
|
|
|
|
minetest.set_node(p, {name=nodename})
|
|
|
|
p = vector.add(p, {x=math.random()-0.5, y=math.random()+0.5, z=math.random()-0.5})
|
|
|
|
minetest.sound_play("nether_extract_blood", {pos = p, gain = 1})
|
|
|
|
minetest.add_item(p, "nether:blood_extracted")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end, pos)
|
|
|
|
|
|
|
|
return itemstack
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("nether:hotbed", {
|
|
|
|
description = "Cooked Blood",
|
|
|
|
inventory_image = "nether_hotbed.png",
|
|
|
|
on_place = function(itemstack, _, pointed_thing)
|
|
|
|
if not pointed_thing then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
if pointed_thing.type ~= "node" then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
local pos = minetest.get_pointed_thing_position(pointed_thing)
|
|
|
|
local node = minetest.get_node(pos)
|
|
|
|
|
|
|
|
if node.name ~= "nether:netherrack" then
|
|
|
|
return
|
|
|
|
end
|
|
|
|
|
|
|
|
minetest.sound_play("default_place_node", {pos=pos})
|
|
|
|
minetest.set_node(pos, {name = "nether:netherrack_soil"})
|
|
|
|
|
|
|
|
itemstack:take_item()
|
|
|
|
return itemstack
|
|
|
|
end
|
|
|
|
})
|
|
|
|
|
2015-06-02 23:19:23 +02:00
|
|
|
-- Nether Pickaxe
|
|
|
|
minetest.register_tool("nether:pick_mushroom", { -- Modif MFF the entire tool
|
2014-12-16 21:43:27 +01:00
|
|
|
description = "Nether Mushroom Pickaxe",
|
|
|
|
inventory_image = "nether_pick_mushroom.png",
|
|
|
|
tool_capabilities = {
|
|
|
|
max_drop_level=0,
|
|
|
|
groupcaps={
|
2015-01-29 00:20:09 +01:00
|
|
|
cracky = {times={[3]=3.0}, uses=5, maxlevel=1},
|
2015-01-21 22:38:36 +01:00
|
|
|
nether = {times={[3]=3}, uses=5, maxlevel=1},
|
2014-12-16 21:43:27 +01:00
|
|
|
},
|
2015-06-02 23:19:23 +02:00
|
|
|
damage_groups = {fleshy=2},
|
2014-12-16 21:43:27 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2015-06-02 23:19:23 +02:00
|
|
|
minetest.register_tool("nether:pick_wood", { -- Modif MFF the entire tool
|
2014-12-16 21:43:27 +01:00
|
|
|
description = "Nether Wood Pickaxe",
|
|
|
|
inventory_image = "nether_pick_wood.png",
|
|
|
|
tool_capabilities = {
|
|
|
|
full_punch_interval = 1.2,
|
|
|
|
max_drop_level=0,
|
|
|
|
groupcaps={
|
2015-01-29 00:20:09 +01:00
|
|
|
cracky = {times={[3]=1.60}, uses=10, maxlevel=1},
|
2015-03-02 23:08:50 +01:00
|
|
|
nether = {times={[2]=6, [3]=1.60}, uses=10, maxlevel=1},
|
2014-12-16 21:43:27 +01:00
|
|
|
},
|
|
|
|
damage_groups = {fleshy=2},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2015-06-02 23:19:23 +02:00
|
|
|
minetest.register_tool("nether:pick_netherrack", { -- Modif MFF the entire tool
|
2014-12-16 21:43:27 +01:00
|
|
|
description = "Netherrack Pickaxe",
|
|
|
|
inventory_image = "nether_pick_netherrack.png",
|
|
|
|
tool_capabilities = {
|
2015-01-21 22:38:36 +01:00
|
|
|
full_punch_interval = 1.2,
|
2014-12-16 21:43:27 +01:00
|
|
|
max_drop_level=0,
|
|
|
|
groupcaps={
|
2015-06-02 23:19:23 +02:00
|
|
|
cracky = {times={[2]=2.00, [3]=1.20}, uses=20, maxlevel=2},
|
2015-03-02 23:08:50 +01:00
|
|
|
nether = {times={[1]=16, [2]=2.00, [3]=1.20}, uses=20, maxlevel=1},
|
2014-12-16 21:43:27 +01:00
|
|
|
},
|
|
|
|
damage_groups = {fleshy=3},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2015-06-02 23:19:23 +02:00
|
|
|
minetest.register_tool("nether:pick_netherrack_blue", { -- Modif MFF the entire tool
|
2014-12-16 21:43:27 +01:00
|
|
|
description = "Blue Netherrack Pickaxe",
|
|
|
|
inventory_image = "nether_pick_netherrack_blue.png",
|
|
|
|
tool_capabilities = {
|
2015-01-21 22:38:36 +01:00
|
|
|
full_punch_interval = 0.8,
|
2014-12-16 21:43:27 +01:00
|
|
|
max_drop_level=1,
|
|
|
|
groupcaps={
|
|
|
|
cracky = {times={[1]=4.00, [2]=1.60, [3]=0.80}, uses=30, maxlevel=2},
|
|
|
|
nether = {times={[1]=4.00, [2]=1.60, [3]=0.80}, uses=30, maxlevel=2},
|
|
|
|
},
|
|
|
|
damage_groups = {fleshy=4},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2015-06-02 23:19:23 +02:00
|
|
|
minetest.register_tool("nether:pick_white", { -- Modif MFF the entire tool
|
2014-12-16 21:43:27 +01:00
|
|
|
description = "Siwtonic Pickaxe",
|
|
|
|
inventory_image = "nether_pick_white.png",
|
|
|
|
tool_capabilities = {
|
2015-01-21 22:38:36 +01:00
|
|
|
full_punch_interval = 0.5,
|
2014-12-16 21:43:27 +01:00
|
|
|
max_drop_level=3,
|
|
|
|
groupcaps={
|
2015-01-21 22:38:36 +01:00
|
|
|
cracky = {times={[1]=1.75, [2]=0.85, [3]=0.40}, uses=125, maxlevel=3},
|
|
|
|
nether = {times={[1]=1, [2]=0.5, [3]=0.3}, uses=125, maxlevel=3},
|
2014-12-16 21:43:27 +01:00
|
|
|
},
|
|
|
|
damage_groups = {fleshy=5},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2015-06-02 23:19:23 +02:00
|
|
|
-- Nether Axe
|
|
|
|
minetest.register_tool("nether:axe_netherrack", { -- Modif MFF the entire tool
|
2014-12-16 21:43:27 +01:00
|
|
|
description = "Netherrack Axe",
|
|
|
|
inventory_image = "nether_axe_netherrack.png",
|
|
|
|
tool_capabilities = {
|
|
|
|
full_punch_interval = 1.3,
|
|
|
|
max_drop_level=0,
|
|
|
|
groupcaps={
|
2015-06-02 23:19:23 +02:00
|
|
|
choppy={times={[1]=3.00, [2]=1.00, [3]=0.60}, uses=20, maxlevel=2},
|
2014-12-16 21:43:27 +01:00
|
|
|
},
|
2015-06-02 23:19:23 +02:00
|
|
|
damage_groups = {fleshy=3},
|
2014-12-16 21:43:27 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2015-06-02 23:19:23 +02:00
|
|
|
minetest.register_tool("nether:axe_netherrack_blue", { -- Modif MFF the entire tool
|
2014-12-16 21:43:27 +01:00
|
|
|
description = "Blue Netherrack Axe",
|
|
|
|
inventory_image = "nether_axe_netherrack_blue.png",
|
|
|
|
tool_capabilities = {
|
|
|
|
full_punch_interval = 0.9,
|
|
|
|
max_drop_level=1,
|
|
|
|
groupcaps={
|
2015-06-02 23:19:23 +02:00
|
|
|
choppy={times={[1]=2.00, [2]=0.80, [3]=0.40}, uses=30, maxlevel=2},
|
2014-12-16 21:43:27 +01:00
|
|
|
},
|
2015-06-02 23:19:23 +02:00
|
|
|
damage_groups = {fleshy=4},
|
2014-12-16 21:43:27 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2015-06-02 23:19:23 +02:00
|
|
|
minetest.register_tool("nether:axe_white", { -- Modif MFF the entire tool
|
2014-12-16 21:43:27 +01:00
|
|
|
description = "Siwtonic Axe",
|
|
|
|
inventory_image = "nether_axe_white.png",
|
|
|
|
tool_capabilities = {
|
|
|
|
full_punch_interval = 0.9,
|
|
|
|
max_drop_level=1,
|
|
|
|
groupcaps={
|
2015-06-02 23:19:23 +02:00
|
|
|
choppy={times={[1]=0.90, [2]=0.45, [3]=0.20}, uses=125, maxlevel=3},
|
2014-12-16 21:43:27 +01:00
|
|
|
},
|
2015-06-02 23:19:23 +02:00
|
|
|
damage_groups = {fleshy=5},
|
2014-12-16 21:43:27 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2015-06-02 23:19:23 +02:00
|
|
|
-- Nether Shovel
|
|
|
|
minetest.register_tool("nether:shovel_netherrack", { -- Modif MFF the entire tool
|
2014-12-16 21:43:27 +01:00
|
|
|
description = "Netherrack Shovel",
|
|
|
|
inventory_image = "nether_shovel_netherrack.png",
|
|
|
|
wield_image = "nether_shovel_netherrack.png^[transformR90",
|
|
|
|
tool_capabilities = {
|
|
|
|
full_punch_interval = 1.4,
|
|
|
|
max_drop_level=0,
|
|
|
|
groupcaps={
|
2015-06-02 23:19:23 +02:00
|
|
|
crumbly = {times={[1]=3.30, [2]=2.20, [3]=1.32}, uses=20, maxlevel=2},
|
2014-12-16 21:43:27 +01:00
|
|
|
},
|
2015-06-02 23:19:23 +02:00
|
|
|
damage_groups = {fleshy=3},
|
2014-12-16 21:43:27 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2015-06-02 23:19:23 +02:00
|
|
|
minetest.register_tool("nether:shovel_netherrack_blue", { -- Modif MFF the entire tool
|
2014-12-16 21:43:27 +01:00
|
|
|
description = "Blue Netherrack Shovel",
|
|
|
|
inventory_image = "nether_shovel_netherrack_blue.png",
|
|
|
|
wield_image = "nether_shovel_netherrack_blue.png^[transformR90",
|
|
|
|
tool_capabilities = {
|
|
|
|
full_punch_interval = 1.1,
|
|
|
|
max_drop_level=1,
|
|
|
|
groupcaps={
|
2015-06-02 23:19:23 +02:00
|
|
|
crumbly = {times={[1]=4.40, [2]=1.76, [3]=0.88}, uses=30, maxlevel=2},
|
2014-12-16 21:43:27 +01:00
|
|
|
},
|
2015-06-02 23:19:23 +02:00
|
|
|
damage_groups = {fleshy=4},
|
2014-12-16 21:43:27 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2015-06-02 23:19:23 +02:00
|
|
|
minetest.register_tool("nether:shovel_white", { -- Modif MFF the entire tool
|
2014-12-16 21:43:27 +01:00
|
|
|
description = "Siwtonic Shovel",
|
|
|
|
inventory_image = "nether_shovel_white.png",
|
|
|
|
wield_image = "nether_shovel_white.png^[transformR90",
|
|
|
|
tool_capabilities = {
|
|
|
|
full_punch_interval = 1,
|
|
|
|
max_drop_level=1,
|
|
|
|
groupcaps={
|
2015-06-02 23:19:23 +02:00
|
|
|
crumbly = {times={[1]=1.93, [2]=0.94, [3]=0.44}, uses=125, maxlevel=3},
|
2014-12-16 21:43:27 +01:00
|
|
|
},
|
2015-06-02 23:19:23 +02:00
|
|
|
damage_groups = {fleshy=5},
|
2014-12-16 21:43:27 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2015-06-02 23:19:23 +02:00
|
|
|
-- Nether Sword
|
|
|
|
minetest.register_tool("nether:sword_netherrack", { -- Modif MFF the entire tool
|
2014-12-16 21:43:27 +01:00
|
|
|
description = "Netherrack Sword",
|
|
|
|
inventory_image = "nether_sword_netherrack.png",
|
|
|
|
tool_capabilities = {
|
2015-01-12 23:07:15 +01:00
|
|
|
full_punch_interval = 0.9,
|
2014-12-16 21:43:27 +01:00
|
|
|
max_drop_level=0,
|
|
|
|
groupcaps={
|
|
|
|
snappy={times={[2]=1.3, [3]=0.38}, uses=40, maxlevel=1},
|
|
|
|
},
|
2014-12-23 22:30:26 +01:00
|
|
|
damage_groups = {fleshy=4},
|
2014-12-16 21:43:27 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2015-06-02 23:19:23 +02:00
|
|
|
minetest.register_tool("nether:sword_netherrack_blue", { -- Modif MFF the entire tool
|
2014-12-16 21:43:27 +01:00
|
|
|
description = "Blue Netherrack Sword",
|
|
|
|
inventory_image = "nether_sword_netherrack_blue.png",
|
|
|
|
tool_capabilities = {
|
2015-01-12 23:07:15 +01:00
|
|
|
full_punch_interval = 0.7,
|
2014-12-16 21:43:27 +01:00
|
|
|
max_drop_level=1,
|
|
|
|
groupcaps={
|
|
|
|
snappy={times={[1]=2.5, [2]=1.1, [3]=0.33}, uses=40, maxlevel=2},
|
|
|
|
},
|
2014-12-23 22:30:26 +01:00
|
|
|
damage_groups = {fleshy=6},
|
2014-12-16 21:43:27 +01:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
2015-06-02 23:19:23 +02:00
|
|
|
minetest.register_tool("nether:sword_white", { -- Modif MFF the entire tool
|
2014-12-16 21:43:27 +01:00
|
|
|
description = "Siwtonic Sword",
|
|
|
|
inventory_image = "nether_sword_white.png",
|
|
|
|
wield_image = "nether_sword_white.png^[transformR90",
|
|
|
|
tool_capabilities = {
|
2015-01-12 23:07:15 +01:00
|
|
|
full_punch_interval = 0.6,
|
2014-12-16 21:43:27 +01:00
|
|
|
max_drop_level=1,
|
|
|
|
groupcaps={
|
|
|
|
snappy={times={[1]=1.7, [2]=0.8, [3]=0.2}, uses=100, maxlevel=3},
|
|
|
|
},
|
2015-06-02 23:19:23 +02:00
|
|
|
damage_groups = {fleshy=8},
|
2014-12-16 21:43:27 +01:00
|
|
|
},
|
|
|
|
})
|