Ajout de plusieurs mods personnalisés
58
nalc_default/crafting.lua
Normal file
@ -0,0 +1,58 @@
|
||||
minetest.register_craft(
|
||||
{ output = 'nalc_default:pick_gold',
|
||||
recipe = {
|
||||
{'default:gold_ingot', 'default:gold_ingot', 'default:gold_ingot'},
|
||||
{'', 'group:stick', ''},
|
||||
{'', 'group:stick', ''},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{ output = 'nalc_default:shovel_gold',
|
||||
recipe = {
|
||||
{'default:gold_ingot'},
|
||||
{'group:stick'},
|
||||
{'group:stick'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{ output = "nalc_default:axe_gold",
|
||||
recipe = {
|
||||
{"default:gold_ingot", "default:gold_ingot"},
|
||||
{"default:gold_ingot", "group:stick"},
|
||||
{"", "group:stick"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{ output = "nalc_default:sword_gold",
|
||||
recipe = {
|
||||
{"default:gold_ingot"},
|
||||
{"default:gold_ingot"},
|
||||
{"group:stick"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{ output = "default:cactus 2",
|
||||
recipe = {
|
||||
{"nalc_default:cactus_spiky", "nalc_default:cactus_spiky"},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{ output = "nalc_default:cactus_spiky 2",
|
||||
recipe = {
|
||||
{"default:cactus", "default:cactus"},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{ output = "nalc_default:ladder_obsidian 4",
|
||||
recipe = {
|
||||
{"default:obsidianbrick", "", "default:obsidianbrick"},
|
||||
{"default:obsidianbrick", "default:obsidianbrick", "default:obsidianbrick"},
|
||||
{"default:obsidianbrick", "", "default:obsidianbrick"}
|
||||
}
|
||||
})
|
2
nalc_default/depends.txt
Normal file
@ -0,0 +1,2 @@
|
||||
default
|
||||
toolranks?
|
45
nalc_default/fences.lua
Normal file
@ -0,0 +1,45 @@
|
||||
default.register_fence(
|
||||
"nalc_default:fence_cobble",
|
||||
{
|
||||
description = "Cobble Fence",
|
||||
texture = "default_fence_cobble.png",
|
||||
material = "default:cobble",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults()
|
||||
})
|
||||
|
||||
default.register_fence(
|
||||
"nalc_default:fence_desert_cobble",
|
||||
{
|
||||
description = "Desert Cobble Fence",
|
||||
texture = "default_fence_desert_cobble.png",
|
||||
material = "default:desert_cobble",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults()
|
||||
})
|
||||
|
||||
default.register_fence(
|
||||
"nalc_default:fence_steelblock",
|
||||
{
|
||||
description = "Steel Block Fence",
|
||||
texture = "default_fence_steelblock.png",
|
||||
material = "default:steelblock",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults()
|
||||
})
|
||||
|
||||
default.register_fence(
|
||||
"nalc_default:fence_brick",
|
||||
{
|
||||
description = "Brick Fence",
|
||||
texture = "default_fence_brick.png",
|
||||
material = "default:brick",
|
||||
groups = {choppy = 2, oddly_breakable_by_hand = 2, flammable = 2},
|
||||
sounds = default.node_sound_wood_defaults()
|
||||
})
|
||||
|
||||
-- Aliases
|
||||
minetest.register_alias("default:fence_cobble", "nalc_default:fence_cobble")
|
||||
minetest.register_alias("default:fence_desert_cobble", "nalc_default:fence_desert_cobble")
|
||||
minetest.register_alias("default:fence_steelblock", "nalc_default:fence_steelblock")
|
||||
minetest.register_alias("default:fence_brick", "nalc_default:fence_brick")
|
26
nalc_default/init.lua
Normal file
@ -0,0 +1,26 @@
|
||||
local modpath = minetest.get_modpath(minetest.get_current_modname())
|
||||
|
||||
-- Custom Nodes
|
||||
dofile(modpath.."/nodes.lua")
|
||||
|
||||
-- Custom mapgen ore generation
|
||||
dofile(modpath.."/mapgen.lua")
|
||||
|
||||
-- Custom Tools
|
||||
dofile(modpath.."/tools.lua")
|
||||
|
||||
-- Custom Crafts
|
||||
dofile(modpath.."/crafting.lua")
|
||||
|
||||
-- Override items
|
||||
minetest.override_item(
|
||||
"default:stick",
|
||||
{
|
||||
stack_max = 1000
|
||||
})
|
||||
|
||||
minetest.override_item(
|
||||
"default:clay_lump",
|
||||
{
|
||||
stack_max = 200
|
||||
})
|
88
nalc_default/mapgen.lua
Normal file
@ -0,0 +1,88 @@
|
||||
minetest.register_ore(
|
||||
{
|
||||
ore_type = "scatter",
|
||||
ore = "nalc_default:desert_stone_with_coal",
|
||||
wherein = "default:desert_stone",
|
||||
clust_scarcity = 9 * 9 * 9,
|
||||
clust_num_ores = 10,
|
||||
clust_size = 3,
|
||||
y_min = -113,
|
||||
y_max = 64,
|
||||
})
|
||||
|
||||
minetest.register_ore(
|
||||
{
|
||||
ore_type = "scatter",
|
||||
ore = "nalc_default:desert_stone_with_iron",
|
||||
wherein = "default:desert_stone",
|
||||
clust_scarcity = 9 * 9 * 9,
|
||||
clust_num_ores = 10,
|
||||
clust_size = 3,
|
||||
y_min = -113,
|
||||
y_max = 64,
|
||||
})
|
||||
|
||||
minetest.register_ore(
|
||||
{
|
||||
ore_type = "scatter",
|
||||
ore = "nalc_default:desert_stone_with_copper",
|
||||
wherein = "default:desert_stone",
|
||||
clust_scarcity = 11 * 11 * 11,
|
||||
clust_num_ores = 6,
|
||||
clust_size = 3,
|
||||
y_min = -113,
|
||||
y_max = 64,
|
||||
})
|
||||
|
||||
minetest.register_ore(
|
||||
{
|
||||
ore_type = "scatter",
|
||||
ore = "nalc_default:desert_stone_with_tin",
|
||||
wherein = "default:desert_stone",
|
||||
clust_scarcity = 7 * 7 * 7,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 7,
|
||||
y_min = -113,
|
||||
y_max = 12,
|
||||
})
|
||||
|
||||
-- Beware of Meze
|
||||
minetest.register_ore(
|
||||
{
|
||||
ore_type = "scatter",
|
||||
ore = "nalc_default:meze",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 40 * 40 * 40,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 2,
|
||||
y_min = 0,
|
||||
y_max = 64,
|
||||
flags = "absheight",
|
||||
})
|
||||
|
||||
minetest.register_ore(
|
||||
{
|
||||
ore_type = "scatter",
|
||||
ore = "nalc_default:meze",
|
||||
wherein = "default:desert_stone",
|
||||
clust_scarcity = 40 * 40 * 40,
|
||||
clust_num_ores = 3,
|
||||
clust_size = 2,
|
||||
y_min = -113,
|
||||
y_max = 64,
|
||||
flags = "absheight",
|
||||
})
|
||||
|
||||
-- Acid lakes in gravel:
|
||||
|
||||
minetest.register_ore(
|
||||
{
|
||||
ore_type = "scatter",
|
||||
ore = "nalc_default:acid_source",
|
||||
wherein = "default:gravel",
|
||||
clust_scarcity = 26 * 26 * 26,
|
||||
clust_num_ores = 64,
|
||||
clust_size = 5,
|
||||
y_min = -30000,
|
||||
y_max = 64,
|
||||
})
|
292
nalc_default/nodes.lua
Normal file
@ -0,0 +1,292 @@
|
||||
local function die_later(digger)
|
||||
digger:set_hp(0)
|
||||
end
|
||||
|
||||
minetest.register_node(
|
||||
"nalc_default:desert_stone_with_coal",
|
||||
{
|
||||
description = "Coal Ore",
|
||||
tiles = {"default_desert_stone.png^default_mineral_coal.png"},
|
||||
is_ground_content = true,
|
||||
groups = {crumbly = 1, cracky = 3},
|
||||
drop = {
|
||||
items = {
|
||||
{items = {"default:coal_lump"}},
|
||||
},
|
||||
},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"nalc_default:desert_stone_with_iron",
|
||||
{
|
||||
description = "Iron Ore",
|
||||
tiles = {"default_desert_stone.png^default_mineral_iron.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 2},
|
||||
drop = {
|
||||
items = {
|
||||
{items = {"default:iron_lump"}},
|
||||
},
|
||||
},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"nalc_default:desert_stone_with_copper",
|
||||
{
|
||||
description = "Copper Ore",
|
||||
tiles = {"default_desert_stone.png^default_mineral_copper.png"},
|
||||
is_ground_content = true,
|
||||
groups = {crumbly = 1, cracky = 3},
|
||||
drop = {
|
||||
items = {
|
||||
{items = {"default:copper_lump"}},
|
||||
},
|
||||
},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"nalc_default:desert_stone_with_tin",
|
||||
{
|
||||
description = "Tin Ore",
|
||||
tiles = {"default_desert_stone.png^default_mineral_tin.png"},
|
||||
is_ground_content = true,
|
||||
groups = {crumbly = 1, cracky = 3},
|
||||
drop = {
|
||||
items = {
|
||||
{items = {"default:tin_lump"}},
|
||||
},
|
||||
},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"nalc_default:meze",
|
||||
{
|
||||
description = "Meze Block",
|
||||
tiles = {"default_meze_block.png"},
|
||||
is_ground_content = true,
|
||||
drop = "",
|
||||
groups = {cracky = 1, level = 2, fall_damage_add_percent = -75},
|
||||
sounds = default.node_sound_wood_defaults(), -- Intended.
|
||||
|
||||
on_dig = function(pos, node, digger)
|
||||
if digger and minetest.setting_getbool("enable_damage") and not minetest.setting_getbool("creative_mode") then
|
||||
minetest.after(3, die_later, digger)
|
||||
minetest.chat_send_player(digger:get_player_name(), "You feel like you did a mistake.")
|
||||
minetest.node_dig(pos, node, digger)
|
||||
elseif digger then
|
||||
minetest.node_dig(pos, node, digger)
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
--
|
||||
-- Plantlife (non-cubic)
|
||||
--
|
||||
|
||||
minetest.override_item(
|
||||
"default:cactus",
|
||||
{
|
||||
after_dig_node = function(pos, node, metadata, digger)
|
||||
default.dig_up(pos, node, digger)
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"nalc_default:cactus_spiky",
|
||||
{
|
||||
description = "Spiky Cactus",
|
||||
tiles = {"default_cactus_top.png", "default_cactus_top.png",
|
||||
"default_cactus_spiky.png"},
|
||||
paramtype2 = "facedir",
|
||||
groups = {snappy = 1, choppy = 3, flammable = 2},
|
||||
drop = {
|
||||
items = {
|
||||
{items = {"nalc_default:cactus_spiky"}},
|
||||
},
|
||||
},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_place = minetest.rotate_node,
|
||||
|
||||
after_dig_node = function(pos, node, metadata, digger)
|
||||
default.dig_up(pos, node, digger)
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"nalc_default:acid_source",
|
||||
{
|
||||
description = "Acid Source",
|
||||
inventory_image = minetest.inventorycube("default_acid.png"),
|
||||
drawtype = "liquid",
|
||||
tiles = {
|
||||
{name = "default_acid_source_animated.png", animation={type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 1.5}}
|
||||
},
|
||||
special_tiles = {
|
||||
-- New-style acid source material (mostly unused)
|
||||
{
|
||||
name = "default_acid_source_animated.png",
|
||||
animation = {type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 1.5},
|
||||
backface_culling = false,
|
||||
}
|
||||
},
|
||||
alpha = 160,
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
drowning = 2,
|
||||
liquidtype = "source",
|
||||
liquid_alternative_flowing = "nalc_default:acid_flowing",
|
||||
liquid_alternative_source = "nalc_default:acid_source",
|
||||
liquid_viscosity = 1,
|
||||
liquid_range = 4,
|
||||
damage_per_second = 3,
|
||||
post_effect_color = {a = 120, r = 50, g = 90, b = 30},
|
||||
groups = {water = 3, acid = 3, liquid = 3, puts_out_fire = 1},
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"nalc_default:acid_flowing",
|
||||
{
|
||||
description = "Flowing Acid",
|
||||
inventory_image = minetest.inventorycube("default_acid.png"),
|
||||
drawtype = "flowingliquid",
|
||||
tiles = {"default_acid.png"},
|
||||
special_tiles = {
|
||||
{
|
||||
image = "default_acid_flowing_animated.png",
|
||||
backface_culling=false,
|
||||
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.6}
|
||||
},
|
||||
{
|
||||
image = "default_acid_flowing_animated.png",
|
||||
backface_culling=true,
|
||||
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.6}
|
||||
},
|
||||
},
|
||||
alpha = 160,
|
||||
paramtype = "light",
|
||||
paramtype2 = "flowingliquid",
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
drowning = 2,
|
||||
liquidtype = "flowing",
|
||||
liquid_alternative_flowing = "nalc_default:acid_flowing",
|
||||
liquid_alternative_source = "nalc_default:acid_source",
|
||||
liquid_viscosity = 1,
|
||||
liquid_range = 4,
|
||||
damage_per_second = 3,
|
||||
post_effect_color = {a = 120, r = 50, g = 90, b = 30},
|
||||
groups = {water = 3, acid = 3, liquid = 3, puts_out_fire = 1, not_in_creative_inventory = 1},
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"nalc_default:sand_source",
|
||||
{
|
||||
description = "Sand Source",
|
||||
inventory_image = minetest.inventorycube("default_sand.png"),
|
||||
drawtype = "liquid",
|
||||
tiles = {"default_sand.png"},
|
||||
alpha = 255,
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
drowning = 4,
|
||||
liquidtype = "source",
|
||||
liquid_alternative_flowing = "nalc_default:sand_flowing",
|
||||
liquid_alternative_source = "nalc_default:sand_source",
|
||||
liquid_viscosity = 20,
|
||||
liquid_renewable = false,
|
||||
post_effect_color = {a = 250, r = 0, g = 0, b = 0},
|
||||
groups = {liquid = 3},
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"nalc_default:sand_flowing",
|
||||
{
|
||||
description = "Flowing Sand",
|
||||
inventory_image = minetest.inventorycube("default_sand.png"),
|
||||
drawtype = "flowingliquid",
|
||||
tiles = {"default_sand.png"},
|
||||
special_tiles = {
|
||||
{
|
||||
image = "default_sand_flowing_animated.png",
|
||||
backface_culling=false,
|
||||
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.6}
|
||||
},
|
||||
{
|
||||
image = "default_sand_flowing_animated.png",
|
||||
backface_culling=true,
|
||||
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.6}
|
||||
},
|
||||
},
|
||||
alpha = 255,
|
||||
paramtype = "light",
|
||||
paramtype2 = "flowingliquid",
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
buildable_to = true,
|
||||
drop = "",
|
||||
drowning = 4,
|
||||
liquidtype = "flowing",
|
||||
liquid_alternative_flowing = "nalc_default:sand_flowing",
|
||||
liquid_alternative_source = "nalc_default:sand_source",
|
||||
liquid_viscosity = 20,
|
||||
post_effect_color = {a = 250, r = 0, g = 0, b = 0},
|
||||
groups = {liquid = 3, not_in_creative_inventory = 1},
|
||||
})
|
||||
|
||||
--
|
||||
-- Tools / "Advanced" crafting / Non-"natural"
|
||||
--
|
||||
|
||||
minetest.register_node(
|
||||
"nalc_default:ladder_obsidian",
|
||||
{
|
||||
description = "Obsidian Ladder",
|
||||
drawtype = "signlike",
|
||||
tiles = {"default_ladder_obsidian.png"},
|
||||
inventory_image = "default_ladder_obsidian.png",
|
||||
wield_image = "default_ladder_obsidian.png",
|
||||
paramtype = "light",
|
||||
paramtype2 = "wallmounted",
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
is_ground_content = false,
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
--wall_top = = <default>
|
||||
--wall_bottom = = <default>
|
||||
--wall_side = = <default>
|
||||
},
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
-- Aliases
|
||||
minetest.register_alias("default:desert_stone_with_coal", "nalc_default:desert_stone_with_coal")
|
||||
minetest.register_alias("default:desert_stone_with_iron", "nalc_default:desert_stone_with_iron")
|
||||
minetest.register_alias("default:desert_stone_with_copper", "nalc_default:desert_stone_with_copper")
|
||||
minetest.register_alias("default:desert_stone_with_tin", "nalc_default:desert_stone_with_tin")
|
||||
minetest.register_alias("default:meze_block", "nalc_default:meze")
|
||||
minetest.register_alias("default:meze", "nalc_default:meze")
|
||||
minetest.register_alias("default:cactus_spiky", "nalc_default:cactus_spiky")
|
||||
minetest.register_alias("default:acid_source", "nalc_default:acid_source")
|
||||
minetest.register_alias("default:acid_flowing", "nalc_default:acid_flowing")
|
||||
minetest.register_alias("default:sand_source", "nalc_default:sand_source")
|
||||
minetest.register_alias("default:sand_flowing", "nalc_default:sand_flowing")
|
||||
minetest.register_alias("default:ladder_obsidian", "nalc_default:ladder_obsidian")
|
BIN
nalc_default/textures/default_acid.png
Executable file
After Width: | Height: | Size: 360 B |
BIN
nalc_default/textures/default_acid_flowing_animated.png
Executable file
After Width: | Height: | Size: 2.0 KiB |
BIN
nalc_default/textures/default_acid_source_animated.png
Executable file
After Width: | Height: | Size: 1.7 KiB |
BIN
nalc_default/textures/default_cactus_spiky.png
Normal file
After Width: | Height: | Size: 356 B |
BIN
nalc_default/textures/default_fence_brick.png
Normal file
After Width: | Height: | Size: 347 B |
BIN
nalc_default/textures/default_fence_cobble.png
Normal file
After Width: | Height: | Size: 261 B |
BIN
nalc_default/textures/default_fence_desert_cobble.png
Normal file
After Width: | Height: | Size: 235 B |
BIN
nalc_default/textures/default_fence_steelblock.png
Normal file
After Width: | Height: | Size: 319 B |
BIN
nalc_default/textures/default_ladder_obsidian.png
Executable file
After Width: | Height: | Size: 208 B |
BIN
nalc_default/textures/default_ladder_obsidian_inv.png
Executable file
After Width: | Height: | Size: 209 B |
BIN
nalc_default/textures/default_meze_block.png
Executable file
After Width: | Height: | Size: 303 B |
BIN
nalc_default/textures/default_sand_flowing_animated.png
Executable file
After Width: | Height: | Size: 669 B |
BIN
nalc_default/textures/default_tool_goldaxe.png
Executable file
After Width: | Height: | Size: 220 B |
BIN
nalc_default/textures/default_tool_goldpick.png
Executable file
After Width: | Height: | Size: 265 B |
BIN
nalc_default/textures/default_tool_goldshovel.png
Executable file
After Width: | Height: | Size: 205 B |
BIN
nalc_default/textures/default_tool_goldsword.png
Normal file
After Width: | Height: | Size: 567 B |
94
nalc_default/tools.lua
Normal file
@ -0,0 +1,94 @@
|
||||
minetest.register_tool(
|
||||
"nalc_default:pick_gold",
|
||||
{
|
||||
description = "Golden Pickaxe",
|
||||
inventory_image = "default_tool_goldpick.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1.2,
|
||||
max_drop_level = 3,
|
||||
groupcaps = {
|
||||
cracky = {times = {[1] = 2.80, [2] = 1.15, [3] = 0.65}, uses = 15, maxlevel = 3},
|
||||
crumbly = {times = {[1] = 2.0, [2] = 0.9, [3] = 0.36}, uses = 5, maxlevel = 2},
|
||||
},
|
||||
damage_groups = {fleshy = 4},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"nalc_default:shovel_gold",
|
||||
{
|
||||
description = "Golden Shovel",
|
||||
inventory_image = "default_tool_goldshovel.png",
|
||||
wield_image = "default_tool_goldshovel.png^[transformR90",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1.2,
|
||||
max_drop_level = 1,
|
||||
groupcaps = {
|
||||
crumbly = {times = {[1] = 1.40, [2] = 0.60, [3] = 0.35}, uses = 15, maxlevel = 3},
|
||||
},
|
||||
damage_groups = {fleshy = 4},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"nalc_default:axe_gold",
|
||||
{
|
||||
description = "Golden Axe",
|
||||
inventory_image = "default_tool_goldaxe.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1.2,
|
||||
max_drop_level = 1,
|
||||
groupcaps = {
|
||||
choppy = {times = {[1] = 3.08, [2] = 1.27, [3] = 0.72}, uses = 15, maxlevel = 3},
|
||||
snappy = {times = {[3] = 0.125}, uses = 0, maxlevel = 1},
|
||||
},
|
||||
damage_groups = {fleshy = 4},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"nalc_default:sword_gold",
|
||||
{
|
||||
description = "Golden Sword",
|
||||
inventory_image = "default_tool_goldsword.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.8,
|
||||
max_drop_level = 1,
|
||||
groupcaps = {
|
||||
snappy = {times = {[1] = 1.9, [2] = 0.85, [3] = 0.125}, uses = 10, maxlevel = 3},
|
||||
},
|
||||
damage_groups = {fleshy = 5},
|
||||
}
|
||||
})
|
||||
|
||||
-- Toolranks
|
||||
if minetest.get_modpath("toolranks") then
|
||||
|
||||
minetest.override_item(
|
||||
"nalc_default:pick_gold",
|
||||
{
|
||||
original_description = "Golden Pickaxe",
|
||||
description = toolranks.create_description("Golden Pickaxe", 0, 1),
|
||||
after_use = toolranks.new_afteruse
|
||||
})
|
||||
minetest.override_item(
|
||||
"nalc_default:axe_gold",
|
||||
{
|
||||
original_description = "Golden Axe",
|
||||
description = toolranks.create_description("Golden Axe", 0, 1),
|
||||
after_use = toolranks.new_afteruse
|
||||
})
|
||||
minetest.override_item(
|
||||
"nalc_default:shovel_gold",
|
||||
{
|
||||
original_description = "Golden Shovel",
|
||||
description = toolranks.create_description("Golden Shovel", 0, 1),
|
||||
after_use = toolranks.new_afteruse
|
||||
})
|
||||
end
|
||||
|
||||
-- Aliases
|
||||
minetest.register_alias("default:pick_gold", "nalc_default:pick_gold")
|
||||
minetest.register_alias("default:shovel_gold", "nalc_default:shovel_gold")
|
||||
minetest.register_alias("default:axe_gold", "nalc_default:axe_gold")
|
||||
minetest.register_alias("default:sword_gold", "nalc_default:sword_gold")
|