379 lines
12 KiB
Lua
379 lines
12 KiB
Lua
core.register_craft({
|
|
type = "cooking",
|
|
output = "mcl_deepslate:tuff 6",
|
|
recipe = "tuf:tuf_dust",
|
|
cooktime = 20,
|
|
})
|
|
|
|
core.register_craft({
|
|
type = "cooking",
|
|
output = "tuf:tuf_bread",
|
|
recipe = "mcl_deepslate:tuff",
|
|
cooktime = 1,
|
|
})
|
|
|
|
minetest.register_craftitem("tuf:tuf_bread", {
|
|
description = ("tuf BREAD GOOD"),
|
|
_tt_help = minetest.colorize(mcl_colors.YELLOW, ("Very GOOD")),
|
|
inventory_image = "TUF_bread.png",
|
|
on_place = minetest.item_eat(1),
|
|
on_secondary_use = minetest.item_eat(1),
|
|
stack_max = 2137,
|
|
groups = { food = 2, eatable = 1 },
|
|
})
|
|
|
|
|
|
minetest.register_on_item_eat(function(hp_change, replace_with_item, itemstack, user, pointed_thing)
|
|
if itemstack:get_name() == "tuf:tuf_bread" then
|
|
mcl_potions.give_effect_by_level("leaping", user, 10000, 10)
|
|
mcl_potions.give_effect_by_level("slow_falling", user, 1, 120)
|
|
end
|
|
end)
|
|
|
|
minetest.register_craftitem("tuf:tuf_dust", {
|
|
description = ("TUF dust"),
|
|
inventory_image = "tuf_dust.png",
|
|
stack_max = 64,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "tuf:tuf_dust",
|
|
recipe = {
|
|
{ "mcl_deepslate:tuff", "mcl_deepslate:tuff", "mcl_deepslate:tuff" },
|
|
}
|
|
})
|
|
|
|
minetest.register_craftitem("tuf:tuf_gem", {
|
|
description = ("TUF gem"),
|
|
inventory_image = "tuf_gem.png",
|
|
stack_max = 64,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "tuf:tuf_gem",
|
|
recipe = {
|
|
{ "tuf:tuf_dust", "tuf:tuf_dust", "tuf:tuf_dust" },
|
|
{ "tuf:tuf_dust", "mcl_amethyst:amethyst_shard", "tuf:tuf_dust" },
|
|
{ "tuf:tuf_dust", "tuf:tuf_dust", "tuf:tuf_dust" },
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "mcl_core:emerald 6",
|
|
recipe = {
|
|
{ "mcl_nether:quartz", "mcl_amethyst:amethyst_shard", "mcl_nether:quartz" },
|
|
{ "mcl_core:diamond", "mcl_core:emerald", "mcl_core:diamond" },
|
|
{ "mcl_nether:quartz", "mcl_amethyst:amethyst_shard", "mcl_nether:quartz" },
|
|
}
|
|
})
|
|
|
|
minetest.register_tool("tuf:pick_tuff", {
|
|
description = ("TUF PickAck"),
|
|
inventory_image = "tuf_pick.png",
|
|
wield_scale = mcl_vars.tool_wield_scale,
|
|
groups = { tool = 1, pickaxe = 1, dig_speed_class = 2, enchantability = 6 },
|
|
tool_capabilities = {
|
|
-- 1/1.2
|
|
full_punch_interval = 1,
|
|
max_drop_level = 2,
|
|
damage_groups = { fleshy = 3 },
|
|
punch_attack_uses = 500,
|
|
},
|
|
sound = { breaks = "default_tool_breaks" },
|
|
_repair_material = "tuf:tuf_dust",
|
|
_mcl_toollike_wield = true,
|
|
_mcl_diggroups = {
|
|
pickaxey = { speed = 4, level = 3, uses = 1225 }
|
|
},
|
|
_mcl_upgradable = false,
|
|
})
|
|
|
|
minetest.register_tool("tuf:pick_tgem", {
|
|
description = ("GEM PickAck"),
|
|
inventory_image = "tgem_pick.png",
|
|
wield_scale = mcl_vars.tool_wield_scale,
|
|
groups = { tool = 1, pickaxe = 1, dig_speed_class = 4, enchantability = 10 },
|
|
tool_capabilities = {
|
|
-- 1/1.2
|
|
full_punch_interval = 0.67,
|
|
max_drop_level = 4,
|
|
damage_groups = { fleshy = 7 },
|
|
punch_attack_uses = 1000,
|
|
},
|
|
sound = { breaks = "default_tool_breaks" },
|
|
_repair_material = "tuf:tuf_gem",
|
|
_mcl_toollike_wield = true,
|
|
_mcl_diggroups = {
|
|
pickaxey = { speed = 7, level = 4, uses = 2137 }
|
|
},
|
|
_mcl_upgradable = false,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "tuf:pick_tuff",
|
|
recipe = {
|
|
{ "mcl_deepslate:tuff", "mcl_deepslate:tuff", "mcl_deepslate:tuff" },
|
|
{ "", "mcl_core:stick", "" },
|
|
{ "", "mcl_core:stick", "" },
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "tuf:pick_tgem",
|
|
recipe = {
|
|
{ "tuf:tuf_gem", "tuf:tuf_gem", "tuf:tuf_gem" },
|
|
{ "", "mcl_core:stick", "" },
|
|
{ "", "mcl_core:stick", "" },
|
|
}
|
|
})
|
|
|
|
minetest.register_node("tuf:tuferaldblock", {
|
|
description = ("BLOK of TUFrald"),
|
|
tiles = { "tuferaldblock.png" },
|
|
is_ground_content = false,
|
|
stack_max = 64,
|
|
groups = { pickaxey = 4, building_block = 1 },
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 5,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "tuf:tuferaldblock",
|
|
recipe = {
|
|
{ "tuf:tuf_gem", "mcl_core:emerald", "tuf:tuf_gem" },
|
|
{ "mcl_core:emerald", "mcl_core:emeraldblock", "mcl_core:emerald" },
|
|
{ "tuf:tuf_gem", "mcl_core:emerald", "tuf:tuf_gem" },
|
|
}
|
|
})
|
|
|
|
minetest.register_node("tuf:tuferaldstoneblock", {
|
|
description = ("BLOK of TUFraldSTON"),
|
|
tiles = { "tuferaldstoneblock.png" },
|
|
is_ground_content = false,
|
|
stack_max = 64,
|
|
groups = { pickaxey = 4, building_block = 1 },
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 5,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "tuf:tuferaldstoneblock",
|
|
recipe = {
|
|
{ "tuf:tuf_dust", "mesecons_torch:redstoneblock", "tuf:tuf_dust" },
|
|
{ "mesecons_torch:redstoneblock", "tuf:tuferaldblock", "mesecons_torch:redstoneblock" },
|
|
{ "tuf:tuf_dust", "mesecons_torch:redstoneblock", "tuf:tuf_dust" },
|
|
}
|
|
})
|
|
|
|
minetest.register_node("tuf:tuferalddeepstoneblock", {
|
|
description = ("BLOK of TUFraldDiipSTON"),
|
|
tiles = { "tuferalddeepstoneblock.png" },
|
|
is_ground_content = false,
|
|
stack_max = 64,
|
|
groups = { pickaxey = 4, building_block = 1 },
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 5,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "tuf:tuferalddeepstoneblock",
|
|
recipe = {
|
|
{ "mcl_core:emerald", "mcl_deepslate:deepslate", "mcl_core:emerald" },
|
|
{ "mcl_deepslate:deepslate", "tuf:tuferaldstoneblock", "mcl_deepslate:deepslate" },
|
|
{ "mcl_core:emerald", "mcl_deepslate:deepslate", "mcl_core:emerald" },
|
|
}
|
|
})
|
|
|
|
minetest.register_node("tuf:gildedtuferalddeepstoneblock", {
|
|
description = ("GILTEn BLOK of TUFraldDiipSTON"),
|
|
tiles = { "gildedtuferalddeepstoneblock.png" },
|
|
is_ground_content = false,
|
|
stack_max = 64,
|
|
groups = { pickaxey = 4, building_block = 1 },
|
|
sounds = mcl_sounds.node_sound_stone_defaults(),
|
|
_mcl_blast_resistance = 6,
|
|
_mcl_hardness = 5,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "tuf:gildedtuferalddeepstoneblock",
|
|
recipe = {
|
|
{ "mcl_nether:ancient_debris", "mcl_core:goldblock", "mcl_nether:ancient_debris" },
|
|
{ "mcl_core:goldblock", "tuf:tuferalddeepstoneblock", "mcl_core:goldblock" },
|
|
{ "mcl_nether:ancient_debris", "mcl_core:goldblock", "mcl_nether:ancient_debris" },
|
|
}
|
|
})
|
|
|
|
minetest.register_craftitem("tuf:gildedtuferalddeepstone_ingot", {
|
|
description = ("GILTEn IGNOD of TUFraldDiipSTON"),
|
|
inventory_image = "gildedtuferalddeepstone_ingot.png",
|
|
stack_max = 64,
|
|
})
|
|
core.register_craft({
|
|
type = "cooking",
|
|
output = "tuf:gildedtuferalddeepstone_ingot",
|
|
recipe = "tuf:gildedtuferalddeepstoneblock",
|
|
cooktime = 1000,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "tuf:pick_gildedtuferalddeepstone",
|
|
recipe = {
|
|
{ "tuf:gildedtuferalddeepstone_ingot", "tuf:gildedtuferalddeepstone_ingot", "tuf:gildedtuferalddeepstone_ingot" },
|
|
{ "", "mcl_core:stick", "" },
|
|
{ "", "mcl_core:stick", "" },
|
|
}
|
|
})
|
|
|
|
minetest.register_tool("tuf:pick_gildedtuferalddeepstone", {
|
|
description = ("GILTEn TUFraldDiipSTON PickAck"),
|
|
inventory_image = "gildedtuferalddeepstone_pick.png",
|
|
wield_scale = mcl_vars.tool_wield_scale,
|
|
groups = { tool = 1, pickaxe = 1, dig_speed_class = 10, enchantability = 67 },
|
|
tool_capabilities = {
|
|
-- 1/1.2
|
|
full_punch_interval = 1,
|
|
max_drop_level = 6,
|
|
damage_groups = { fleshy = 10 },
|
|
punch_attack_uses = 2137,
|
|
},
|
|
sound = { breaks = "default_tool_breaks" },
|
|
_repair_material = "tuf:gildedtuferalddeepstone_ingot",
|
|
_mcl_toollike_wield = true,
|
|
_mcl_diggroups = {
|
|
pickaxey = { speed = 10, level = 6, uses = 6767 }
|
|
},
|
|
_mcl_upgradable = false,
|
|
})
|
|
|
|
minetest.register_tool("tuf:shadowmantle", {
|
|
description = ("Shadow Mantle"),
|
|
_doc_items_longdesc = mcl_armor.longdesc,
|
|
_doc_items_usagehelp = mcl_armor.usage,
|
|
inventory_image = "shadowmantle.png",
|
|
groups = { armor = 1, armor_torso = 1, mcl_armor_uses = 6767, enchantability = 67, elytra = 1, transport = 1, mcl_armor_points = 10 },
|
|
sounds = {
|
|
_mcl_armor_equip = "mcl_armor_equip_leather",
|
|
_mcl_armor_unequip = "mcl_armor_unequip_leather",
|
|
},
|
|
on_place = mcl_armor.equip_on_use,
|
|
on_secondary_use = mcl_armor.equip_on_use,
|
|
_mcl_armor_element = "torso",
|
|
_mcl_armor_texture = "shadow_mantle.png",
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "tuf:shadowmantle",
|
|
recipe = {
|
|
{ "mcl_mobitems:feather", "tuf:gildedtuferalddeepstone_ingot", "mcl_mobitems:feather" },
|
|
{ "mcl_mobitems:feather", "mcl_core:diamond", "mcl_mobitems:feather" },
|
|
{ "mcl_mobitems:feather", "", "mcl_mobitems:feather" }
|
|
}
|
|
})
|
|
|
|
minetest.register_craftitem("tuf:dispel", {
|
|
description = ("Dispel Spell"),
|
|
inventory_image = "dispel.png",
|
|
stack_max = 64,
|
|
})
|
|
|
|
minetest.register_craftitem("tuf:enchant", {
|
|
description = ("Enchant Spell"),
|
|
inventory_image = "enchant.png",
|
|
stack_max = 64,
|
|
})
|
|
|
|
minetest.register_craftitem("tuf:magic_shard", {
|
|
description = ("Magic Shard"),
|
|
_tt_help = minetest.colorize(mcl_colors.YELLOW, ("GAY")),
|
|
inventory_image = "magic_shard.png",
|
|
stack_max = 64,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "tuf:magic_shard 16",
|
|
recipe = {
|
|
{ "mcl_amethyst:amethyst_shard", "mcl_amethyst:amethyst_shard", "mcl_amethyst:amethyst_shard" },
|
|
{ "mcl_amethyst:amethyst_shard", "tuf:tuf_gem", "mcl_amethyst:amethyst_shard" },
|
|
{ "mcl_amethyst:amethyst_shard", "mcl_amethyst:amethyst_shard", "mcl_amethyst:amethyst_shard" }
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "tuf:enchant",
|
|
recipe = {
|
|
{ "", "mcl_core:lapis", "" },
|
|
{ "mcl_amethyst:amethyst_shard", "tuf:magic_shard", "mcl_amethyst:amethyst_shard" },
|
|
{ "", "mcl_core:lapis", "" }
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "tuf:dispel",
|
|
recipe = {
|
|
{ "", "mcl_nether:glowstone_dust", "" },
|
|
{ "mcl_nether:glowstone_dust", "tuf:magic_shard", "mcl_nether:glowstone_dust" },
|
|
{ "", "mcl_nether:glowstone_dust", "" }
|
|
}
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "mcl_mobitems:gunpowder 8",
|
|
type = "shapeless",
|
|
recipe = { "mcl_mobitems:flaming_powder", "tuf:dispel" },
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "mcl_mobitems:flaming_powder",
|
|
type = "shapeless",
|
|
recipe = { "mcl_mobitems:gunpowder", "tuf:enchant", "mcl_mobitems:gunpowder", "mcl_mobitems:gunpowder", "mcl_mobitems:gunpowder" },
|
|
})
|
|
|
|
minetest.register_node("tuf:dragon_eg", {
|
|
description = ("Dragon Eg"),
|
|
tiles = {
|
|
"mcl_end_dragon_egg.png",
|
|
"mcl_end_dragon_egg.png",
|
|
"mcl_end_dragon_egg.png",
|
|
"mcl_end_dragon_egg.png",
|
|
"mcl_end_dragon_egg.png",
|
|
"mcl_end_dragon_egg.png",
|
|
},
|
|
drawtype = "nodebox",
|
|
is_ground_content = false,
|
|
paramtype = "light",
|
|
light_source = 1,
|
|
node_box = {
|
|
type = "fixed",
|
|
fixed = {
|
|
{ -0.375, -0.5, -0.375, 0.375, -0.4375, 0.375 },
|
|
{ -0.5, -0.4375, -0.5, 0.5, -0.1875, 0.5 },
|
|
{ -0.4375, -0.1875, -0.4375, 0.4375, 0, 0.4375 },
|
|
{ -0.375, 0, -0.375, 0.375, 0.125, 0.375 },
|
|
{ -0.3125, 0.125, -0.3125, 0.3125, 0.25, 0.3125 },
|
|
{ -0.25, 0.25, -0.25, 0.25, 0.3125, 0.25 },
|
|
{ -0.1875, 0.3125, -0.1875, 0.1875, 0.375, 0.1875 },
|
|
{ -0.125, 0.375, -0.125, 0.125, 0.4375, 0.125 },
|
|
{ -0.0625, 0.4375, -0.0625, 0.0625, 0.5, 0.0625 },
|
|
}
|
|
},
|
|
selection_box = {
|
|
type = "regular",
|
|
},
|
|
groups = { handy = 1, falling_node = 1, deco_block = 1 },
|
|
_mcl_blast_resistance = 99999,
|
|
_mcl_hardness = 3,
|
|
})
|
|
|
|
minetest.register_craft({
|
|
output = "tuf:dragon_eg",
|
|
recipe = {
|
|
{ "mcl_deepslate:tuff", "mcl_deepslate:tuff", "mcl_deepslate:tuff" },
|
|
{ "mcl_deepslate:tuff", "tuf:magic_shard", "mcl_deepslate:tuff" },
|
|
{ "mcl_deepslate:tuff", "mcl_deepslate:tuff", "mcl_deepslate:tuff" }
|
|
}
|
|
})
|