Compare commits
12 Commits
Author | SHA1 | Date |
---|---|---|
Code-Sploit | d3dd6559a2 | |
Code-Sploit | 464216ea0a | |
Code-Sploit | 5c9a78bea7 | |
Code-Sploit | 7d22906f34 | |
Code-Sploit | 1247bcc039 | |
Code-Sploit | 93df51b223 | |
Code-Sploit | 7e7a635ed0 | |
Code-Sploit | 35d2ef52c1 | |
Code-Sploit | a3ef3737d5 | |
Code-Sploit | e1236d7547 | |
Code-Sploit | 7a6929f4cb | |
Code-Sploit | bc23cd800e |
|
@ -83,6 +83,21 @@ minetest.register_tool("mcl_armor:helmet_diamond",{
|
||||||
on_secondary_use = armor.on_armor_use,
|
on_secondary_use = armor.on_armor_use,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_tool("mcl_armor:helmet_netherite",{
|
||||||
|
description = S("Netherite Helmet"),
|
||||||
|
_doc_items_longdesc = longdesc,
|
||||||
|
_doc_items_usagehelp = usage,
|
||||||
|
inventory_image = "mcl_armor_inv_helmet_netherite.png",
|
||||||
|
groups = {armor_head=1, mcl_armor_points=3, mcl_armor_uses=407, mcl_armor_toughness=2, enchantability=10 },
|
||||||
|
_repair_material = "mcl_netherite:netherite_ingot",
|
||||||
|
sounds = {
|
||||||
|
_mcl_armor_equip = "mcl_armor_equip_diamond",
|
||||||
|
_mcl_armor_unequip = "mcl_armor_unequip_diamond",
|
||||||
|
},
|
||||||
|
on_place = armor.on_armor_use,
|
||||||
|
on_secondary_use = armor.on_armor_use,
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_tool("mcl_armor:helmet_chain", {
|
minetest.register_tool("mcl_armor:helmet_chain", {
|
||||||
description = S("Chain Helmet"),
|
description = S("Chain Helmet"),
|
||||||
_doc_items_longdesc = longdesc,
|
_doc_items_longdesc = longdesc,
|
||||||
|
@ -160,6 +175,21 @@ minetest.register_tool("mcl_armor:chestplate_diamond",{
|
||||||
on_secondary_use = armor.on_armor_use,
|
on_secondary_use = armor.on_armor_use,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_tool("mcl_armor:chestplate_netherite",{
|
||||||
|
description = S("Netherite Chestplate"),
|
||||||
|
_doc_items_longdesc = longdesc,
|
||||||
|
_doc_items_usagehelp = usage,
|
||||||
|
inventory_image = "mcl_armor_inv_chestplate_netherite.png",
|
||||||
|
groups = {armor_torso=1, mcl_armor_points=8, mcl_armor_uses=592, mcl_armor_toughness=2, enchantability=10 },
|
||||||
|
_repair_material = "mcl_netherite:netherite_ingot",
|
||||||
|
sounds = {
|
||||||
|
_mcl_armor_equip = "mcl_armor_equip_diamond",
|
||||||
|
_mcl_armor_unequip = "mcl_armor_unequip_diamond",
|
||||||
|
},
|
||||||
|
on_place = armor.on_armor_use,
|
||||||
|
on_secondary_use = armor.on_armor_use,
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_tool("mcl_armor:chestplate_chain", {
|
minetest.register_tool("mcl_armor:chestplate_chain", {
|
||||||
description = S("Chain Chestplate"),
|
description = S("Chain Chestplate"),
|
||||||
_doc_items_longdesc = longdesc,
|
_doc_items_longdesc = longdesc,
|
||||||
|
@ -237,6 +267,21 @@ minetest.register_tool("mcl_armor:leggings_diamond",{
|
||||||
on_secondary_use = armor.on_armor_use,
|
on_secondary_use = armor.on_armor_use,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_tool("mcl_armor:leggings_netherite",{
|
||||||
|
description = S("Netherite Leggings"),
|
||||||
|
_doc_items_longdesc = longdesc,
|
||||||
|
_doc_items_usagehelp = usage,
|
||||||
|
inventory_image = "mcl_armor_inv_leggings_netherite.png",
|
||||||
|
groups = {armor_legs=1, mcl_armor_points=6, mcl_armor_uses=555, mcl_armor_toughness=2, enchantability=10 },
|
||||||
|
_repair_material = "mcl_netherite:netherite_ingot",
|
||||||
|
sounds = {
|
||||||
|
_mcl_armor_equip = "mcl_armor_equip_diamond",
|
||||||
|
_mcl_armor_unequip = "mcl_armor_unequip_diamond",
|
||||||
|
},
|
||||||
|
on_place = armor.on_armor_use,
|
||||||
|
on_secondary_use = armor.on_armor_use,
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_tool("mcl_armor:leggings_chain", {
|
minetest.register_tool("mcl_armor:leggings_chain", {
|
||||||
description = S("Chain Leggings"),
|
description = S("Chain Leggings"),
|
||||||
_doc_items_longdesc = longdesc,
|
_doc_items_longdesc = longdesc,
|
||||||
|
@ -328,6 +373,21 @@ minetest.register_tool("mcl_armor:boots_chain", {
|
||||||
on_secondary_use = armor.on_armor_use,
|
on_secondary_use = armor.on_armor_use,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_tool("mcl_armor:boots_netherite", {
|
||||||
|
description = S("Netherite Boots"),
|
||||||
|
_doc_items_longdesc = longdesc,
|
||||||
|
_doc_items_usagehelp = usage,
|
||||||
|
inventory_image = "mcl_armor_inv_boots_netherite.png",
|
||||||
|
groups = {armor_feet=1, mcl_armor_points=1, mcl_armor_uses=481, enchantability=1 },
|
||||||
|
_repair_material = "mcl_netherite:netherite_ingot",
|
||||||
|
sounds = {
|
||||||
|
_mcl_armor_equip = "mcl_armor_equip_chainmail",
|
||||||
|
_mcl_armor_unequip = "mcl_armor_unequip_chainmail",
|
||||||
|
},
|
||||||
|
on_place = armor.on_armor_use,
|
||||||
|
on_secondary_use = armor.on_armor_use,
|
||||||
|
})
|
||||||
|
|
||||||
-- Register Craft Recipies
|
-- Register Craft Recipies
|
||||||
|
|
||||||
local craft_ingreds = {
|
local craft_ingreds = {
|
||||||
|
|
After Width: | Height: | Size: 385 B |
After Width: | Height: | Size: 494 B |
After Width: | Height: | Size: 472 B |
After Width: | Height: | Size: 173 B |
After Width: | Height: | Size: 244 B |
After Width: | Height: | Size: 162 B |
After Width: | Height: | Size: 176 B |
After Width: | Height: | Size: 458 B |
|
@ -55,6 +55,7 @@ local uses = {
|
||||||
iron = 251,
|
iron = 251,
|
||||||
gold = 33,
|
gold = 33,
|
||||||
diamond = 1562,
|
diamond = 1562,
|
||||||
|
netherite = 2031,
|
||||||
}
|
}
|
||||||
|
|
||||||
local hoe_tt = S("Turns block into farmland")
|
local hoe_tt = S("Turns block into farmland")
|
||||||
|
@ -273,3 +274,24 @@ minetest.register_craft({
|
||||||
{"mcl_core:stick", ""}
|
{"mcl_core:stick", ""}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_tool("mcl_farming:hoe_netherite", {
|
||||||
|
description = S("Netherite Hoe"),
|
||||||
|
_tt_help = hoe_tt.."\n"..S("Uses: @1", uses.netherite),
|
||||||
|
_doc_items_longdesc = hoe_longdesc,
|
||||||
|
_doc_items_usagehelp = hoe_usagehelp,
|
||||||
|
inventory_image = "farming_tool_netheritehoe.png",
|
||||||
|
wield_scale = mcl_vars.tool_wield_scale,
|
||||||
|
on_place = hoe_on_place_function(uses.netherite),
|
||||||
|
groups = { tool=1, hoe=1, enchantability=10 },
|
||||||
|
tool_capabilities = {
|
||||||
|
full_punch_interval = 0.25,
|
||||||
|
damage_groups = { fleshy = 4, },
|
||||||
|
punch_attack_uses = uses.netherite,
|
||||||
|
},
|
||||||
|
_repair_material = "mcl_nether:netherite_ingot",
|
||||||
|
_mcl_toollike_wield = true,
|
||||||
|
_mcl_diggroups = {
|
||||||
|
hoey = { speed = 8, level = 5, uses = uses.netherite }
|
||||||
|
},
|
||||||
|
})
|
After Width: | Height: | Size: 167 B |
|
@ -52,6 +52,21 @@ minetest.register_node("mcl_nether:quartz_ore", {
|
||||||
_mcl_fortune_drop = mcl_core.fortune_drop_ore
|
_mcl_fortune_drop = mcl_core.fortune_drop_ore
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_node("mcl_nether:ancient_debris", {
|
||||||
|
description = S("Ancient Debris"),
|
||||||
|
_doc_items_longdesc = S("Ancient debris can be found in the nether and is very very rare."),
|
||||||
|
stack_max = 64,
|
||||||
|
tiles = {"mcl_nether_ancient_debris_top.png", "mcl_nether_ancient_debris_side.png"},
|
||||||
|
is_ground_content = true,
|
||||||
|
groups = {pickaxey=4, building_block=1, material_stone=1, xp=0},
|
||||||
|
drop = 'mcl_nether:ancient_debris',
|
||||||
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
||||||
|
_mcl_blast_resistance = 1200,
|
||||||
|
_mcl_hardness = 30,
|
||||||
|
_mcl_silk_touch_drop = true,
|
||||||
|
_mcl_fortune_drop = mcl_core.fortune_drop_ore
|
||||||
|
})
|
||||||
|
|
||||||
-- For eternal fire on top of netherrack and magma blocks
|
-- For eternal fire on top of netherrack and magma blocks
|
||||||
-- (this code does not require a dependency on mcl_fire)
|
-- (this code does not require a dependency on mcl_fire)
|
||||||
local eternal_after_destruct = function(pos, oldnode)
|
local eternal_after_destruct = function(pos, oldnode)
|
||||||
|
@ -253,6 +268,22 @@ minetest.register_craftitem("mcl_nether:quartz", {
|
||||||
groups = { craftitem = 1 },
|
groups = { craftitem = 1 },
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("mcl_nether:netherite_scrap", {
|
||||||
|
description = S("Netherite Scrap"),
|
||||||
|
_doc_items_longdesc = S("Netherite scrap is a crafting ingredient for netherite ingots."),
|
||||||
|
inventory_image = "mcl_nether_netherite_scrap.png",
|
||||||
|
stack_max = 64,
|
||||||
|
groups = { craftitem = 1 },
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("mcl_nether:netherite_ingot", {
|
||||||
|
description = S("Netherite Ingot"),
|
||||||
|
_doc_items_longdesc = S("Netherite ingots can be used with a smithing table to upgrade items to netherite."),
|
||||||
|
inventory_image = "mcl_nether_netherite_ingot.png",
|
||||||
|
stack_max = 64,
|
||||||
|
groups = { craftitem = 1 },
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("mcl_nether:netherbrick", {
|
minetest.register_craftitem("mcl_nether:netherbrick", {
|
||||||
description = S("Nether Brick"),
|
description = S("Nether Brick"),
|
||||||
_doc_items_longdesc = S("Nether bricks are the main crafting ingredient for crafting nether brick blocks and nether fences."),
|
_doc_items_longdesc = S("Nether bricks are the main crafting ingredient for crafting nether brick blocks and nether fences."),
|
||||||
|
@ -268,6 +299,13 @@ minetest.register_craft({
|
||||||
cooktime = 10,
|
cooktime = 10,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "cooking",
|
||||||
|
output = "mcl_nether:netherite_scrap",
|
||||||
|
recipe = "mcl_nether:ancient_debris",
|
||||||
|
cooktime = 10,
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = 'mcl_nether:quartz_block',
|
output = 'mcl_nether:quartz_block',
|
||||||
recipe = {
|
recipe = {
|
||||||
|
@ -339,5 +377,14 @@ minetest.register_craft({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = "mcl_nether:netherite_ingot",
|
||||||
|
recipe = {
|
||||||
|
{'mcl_nether:netherite_scrap', 'mcl_nether:netherite_scrap', 'mcl_nether:netherite_scrap'},
|
||||||
|
{'mcl_nether:netherite_scrap', 'mcl_core:gold_ingot', 'mcl_core:gold_ingot'},
|
||||||
|
{'mcl_core:gold_ingot', 'mcl_core:gold_ingot', ''},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
dofile(minetest.get_modpath(minetest.get_current_modname()).."/nether_wart.lua")
|
dofile(minetest.get_modpath(minetest.get_current_modname()).."/nether_wart.lua")
|
||||||
dofile(minetest.get_modpath(minetest.get_current_modname()).."/lava.lua")
|
dofile(minetest.get_modpath(minetest.get_current_modname()).."/lava.lua")
|
||||||
|
|
After Width: | Height: | Size: 8.4 KiB |
After Width: | Height: | Size: 7.6 KiB |
After Width: | Height: | Size: 222 B |
After Width: | Height: | Size: 207 B |
|
@ -175,6 +175,27 @@ minetest.register_tool("mcl_tools:pick_diamond", {
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_tool("mcl_tools:pick_netherite", {
|
||||||
|
description = S("Netherite Pickaxe"),
|
||||||
|
_doc_items_longdesc = pickaxe_longdesc,
|
||||||
|
inventory_image = "default_tool_netheritepick.png",
|
||||||
|
wield_scale = wield_scale,
|
||||||
|
groups = { tool=1, pickaxe=1, dig_speed_class=5, enchantability=10 },
|
||||||
|
tool_capabilities = {
|
||||||
|
-- 1/1.2
|
||||||
|
full_punch_interval = 0.83333333,
|
||||||
|
max_drop_level=5,
|
||||||
|
damage_groups = {fleshy=6},
|
||||||
|
punch_attack_uses = 1016,
|
||||||
|
},
|
||||||
|
sound = { breaks = "default_tool_breaks" },
|
||||||
|
_repair_material = "mcl_nether:netherite_ingot",
|
||||||
|
_mcl_toollike_wield = true,
|
||||||
|
_mcl_diggroups = {
|
||||||
|
pickaxey = { speed = 8, level = 5, uses = 2031 }
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
local make_grass_path = function(itemstack, placer, pointed_thing)
|
local make_grass_path = function(itemstack, placer, pointed_thing)
|
||||||
-- Use pointed node's on_rightclick function first, if present
|
-- Use pointed node's on_rightclick function first, if present
|
||||||
local node = minetest.get_node(pointed_thing.under)
|
local node = minetest.get_node(pointed_thing.under)
|
||||||
|
@ -351,6 +372,28 @@ minetest.register_tool("mcl_tools:shovel_diamond", {
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_tool("mcl_tools:shovel_netherite", {
|
||||||
|
description = S("Netherite Shovel"),
|
||||||
|
_doc_items_longdesc = shovel_longdesc,
|
||||||
|
_doc_items_usagehelp = shovel_use,
|
||||||
|
inventory_image = "default_tool_netheriteshovel.png",
|
||||||
|
wield_scale = wield_scale,
|
||||||
|
groups = { tool=1, shovel=1, dig_speed_class=5, enchantability=10 },
|
||||||
|
tool_capabilities = {
|
||||||
|
full_punch_interval = 1,
|
||||||
|
max_drop_level=5,
|
||||||
|
damage_groups = {fleshy=5},
|
||||||
|
punch_attack_uses = 1016,
|
||||||
|
},
|
||||||
|
on_place = make_grass_path,
|
||||||
|
sound = { breaks = "default_tool_breaks" },
|
||||||
|
_repair_material = "mcl_nether:netherite_ingot",
|
||||||
|
_mcl_toollike_wield = true,
|
||||||
|
_mcl_diggroups = {
|
||||||
|
shovely = { speed = 8, level = 5, uses = 2031 }
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
-- Axes
|
-- Axes
|
||||||
|
|
||||||
local make_stripped_trunk = function(itemstack, placer, pointed_thing)
|
local make_stripped_trunk = function(itemstack, placer, pointed_thing)
|
||||||
|
@ -505,6 +548,27 @@ minetest.register_tool("mcl_tools:axe_diamond", {
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_tool("mcl_tools:axe_netherite", {
|
||||||
|
description = S("Netherite Axe"),
|
||||||
|
_doc_items_longdesc = axe_longdesc,
|
||||||
|
inventory_image = "default_tool_netheriteaxe.png",
|
||||||
|
wield_scale = wield_scale,
|
||||||
|
groups = { tool=1, axe=1, dig_speed_class=5, enchantability=10 },
|
||||||
|
tool_capabilities = {
|
||||||
|
full_punch_interval = 1.0,
|
||||||
|
max_drop_level=5,
|
||||||
|
damage_groups = {fleshy=10},
|
||||||
|
punch_attack_uses = 1016,
|
||||||
|
},
|
||||||
|
on_place = make_stripped_trunk,
|
||||||
|
sound = { breaks = "default_tool_breaks" },
|
||||||
|
_repair_material = "mcl_nether:netherite_ingot",
|
||||||
|
_mcl_toollike_wield = true,
|
||||||
|
_mcl_diggroups = {
|
||||||
|
axey = { speed = 8, level = 5, uses = 2031 }
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
-- Swords
|
-- Swords
|
||||||
minetest.register_tool("mcl_tools:sword_wood", {
|
minetest.register_tool("mcl_tools:sword_wood", {
|
||||||
description = S("Wooden Sword"),
|
description = S("Wooden Sword"),
|
||||||
|
@ -607,6 +671,26 @@ minetest.register_tool("mcl_tools:sword_diamond", {
|
||||||
swordy_cobweb = { speed = 8, level = 5, uses = 1562 }
|
swordy_cobweb = { speed = 8, level = 5, uses = 1562 }
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
minetest.register_tool("mcl_tools:sword_netherite", {
|
||||||
|
description = S("Netherite Sword"),
|
||||||
|
_doc_items_longdesc = sword_longdesc,
|
||||||
|
inventory_image = "default_tool_netheritesword.png",
|
||||||
|
wield_scale = wield_scale,
|
||||||
|
groups = { weapon=1, sword=1, dig_speed_class=5, enchantability=10 },
|
||||||
|
tool_capabilities = {
|
||||||
|
full_punch_interval = 0.625,
|
||||||
|
max_drop_level=5,
|
||||||
|
damage_groups = {fleshy=9},
|
||||||
|
punch_attack_uses = 2031,
|
||||||
|
},
|
||||||
|
sound = { breaks = "default_tool_breaks" },
|
||||||
|
_repair_material = "mcl_nether:netherite_ingot",
|
||||||
|
_mcl_toollike_wield = true,
|
||||||
|
_mcl_diggroups = {
|
||||||
|
swordy = { speed = 8, level = 5, uses = 2031 },
|
||||||
|
swordy_cobweb = { speed = 8, level = 5, uses = 2031 }
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
--Shears
|
--Shears
|
||||||
minetest.register_tool("mcl_tools:shears", {
|
minetest.register_tool("mcl_tools:shears", {
|
||||||
|
|
After Width: | Height: | Size: 184 B |
After Width: | Height: | Size: 188 B |
After Width: | Height: | Size: 161 B |
After Width: | Height: | Size: 210 B |