Add files via upload
parent
2cec7dc64b
commit
4a8d3f76be
|
@ -0,0 +1,293 @@
|
|||
-----------------
|
||||
-- Ores/blocks --
|
||||
-----------------
|
||||
|
||||
minetest.register_node("amethyst:amethyst_block", {
|
||||
description = ("Amethyst Block"),
|
||||
tiles = {"ameythst_block.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3},
|
||||
})
|
||||
|
||||
minetest.register_node("amethyst:amethyst_ore", {
|
||||
description = ("Amethyst Ore"),
|
||||
tiles = {"default_stone.png^ameythst_ore.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3},
|
||||
drop = "amethyst:amethyst_lump",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("amethyst:amethyst_lump", {
|
||||
description = ("Amethyst Lump"),
|
||||
inventory_image = "ameythst_lump.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("amethyst:amethyst_ingot", {
|
||||
description = ("Amethyst Ingot"),
|
||||
inventory_image = "ameythst_ingot.png",
|
||||
})
|
||||
|
||||
------------
|
||||
-- Tools --
|
||||
------------
|
||||
|
||||
minetest.register_tool("amethyst:amethyst_sword", {
|
||||
description = "Amethyst Sword",
|
||||
inventory_image = "ameythst_sword.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.5,
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
snappy={times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=40, maxlevel=3},
|
||||
},
|
||||
damage_groups = {fleshy=8},
|
||||
},
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
groups = {sword = 1}
|
||||
})
|
||||
|
||||
minetest.register_tool("amethyst:amethyst_pickaxe", {
|
||||
description = "Amethyst Pickaxe",
|
||||
inventory_image = "ameythst_pickaxe.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.5,
|
||||
max_drop_level=3,
|
||||
groupcaps={
|
||||
cracky = {times={[1]=2.0, [2]=1.0, [3]=0.50}, uses=80, maxlevel=3},
|
||||
},
|
||||
damage_groups = {fleshy=5},
|
||||
},
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
groups = {pickaxe = 1}
|
||||
})
|
||||
|
||||
minetest.register_tool("amethyst:amethyst_axe", {
|
||||
description = "Amethyst Axe",
|
||||
inventory_image = "ameythst_axe.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.5,
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
choppy={times={[1]=2.10, [2]=0.90, [3]=0.50}, uses=80, maxlevel=3},
|
||||
},
|
||||
damage_groups = {fleshy=7},
|
||||
},
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
groups = {axe = 1}
|
||||
})
|
||||
|
||||
minetest.register_tool("amethyst:amethyst_shovel", {
|
||||
description = "Amethyst Shovel",
|
||||
inventory_image = "ameythst_shovel.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.5,
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
crumbly = {times={[1]=1.10, [2]=0.50, [3]=0.30}, uses=80, maxlevel=3},
|
||||
},
|
||||
damage_groups = {fleshy=4},
|
||||
},
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
groups = {shovel = 1}
|
||||
})
|
||||
|
||||
-----------------
|
||||
-- Mapgen --
|
||||
-----------------
|
||||
|
||||
-- Amethyst Ore
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "amethyst:amethyst_ore",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 15 * 15 * 15,
|
||||
clust_num_ores = 4,
|
||||
clust_size = 3,
|
||||
y_max = -256,
|
||||
y_min = -31000,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "amethyst:amethyst_ore",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 17 * 17 * 17,
|
||||
clust_num_ores = 4,
|
||||
clust_size = 3,
|
||||
y_max = -128,
|
||||
y_min = -255,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "amethyst:amethyst_ore",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 15 * 15 * 15,
|
||||
clust_num_ores = 4,
|
||||
clust_size = 3,
|
||||
y_max = -256,
|
||||
y_min = -31000,
|
||||
})
|
||||
|
||||
-------------
|
||||
-- Crafts --
|
||||
-------------
|
||||
|
||||
-- Tools
|
||||
|
||||
minetest.register_craft({
|
||||
output = "amethyst:amethyst_sword",
|
||||
recipe = {
|
||||
{"amethyst:amethyst_ingot"},
|
||||
{"amethyst:amethyst_ingot"},
|
||||
{"group:stick"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "amethyst:amethyst_pickaxe",
|
||||
recipe = {
|
||||
{"amethyst:amethyst_ingot", "amethyst:amethyst_ingot", "amethyst:amethyst_ingot"},
|
||||
{"", "group:stick", ""},
|
||||
{"", "group:stick", ""},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "amethyst:amethyst_shovel",
|
||||
recipe = {
|
||||
{"amethyst:amethyst_ingot"},
|
||||
{"group:stick"},
|
||||
{"group:stick"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "amethyst:amethyst_axe",
|
||||
recipe = {
|
||||
{"amethyst:amethyst_ingot", "amethyst:amethyst_ingot"},
|
||||
{"amethyst:amethyst_ingot", "group:stick"},
|
||||
{"", "group:stick"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "amethyst:amethyst_block",
|
||||
recipe = {
|
||||
{"amethyst:amethyst_ingot", "amethyst:amethyst_ingot", "amethyst:amethyst_ingot"},
|
||||
{"amethyst:amethyst_ingot", "amethyst:amethyst_ingot", "amethyst:amethyst_ingot"},
|
||||
{"amethyst:amethyst_ingot", "amethyst:amethyst_ingot", "amethyst:amethyst_ingot"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "amethyst:amethyst_ingot 9",
|
||||
recipe = {
|
||||
{"amethyst:amethyst_block"},
|
||||
}
|
||||
})
|
||||
|
||||
-- Armor
|
||||
|
||||
minetest.register_craft({
|
||||
output = "amethyst:helmet_amethyst",
|
||||
recipe = {
|
||||
{"amethyst:amethyst_ingot", "amethyst:amethyst_ingot", "amethyst:amethyst_ingot"},
|
||||
{"amethyst:amethyst_ingot", "", "amethyst:amethyst_ingot"},
|
||||
{"", "", ""},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "amethyst:chestplate_amethyst",
|
||||
recipe = {
|
||||
{"amethyst:amethyst_ingot", "", "amethyst:amethyst_ingot"},
|
||||
{"amethyst:amethyst_ingot", "amethyst:amethyst_ingot", "amethyst:amethyst_ingot"},
|
||||
{"amethyst:amethyst_ingot", "amethyst:amethyst_ingot", "amethyst:amethyst_ingot"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "amethyst:leggings_amethyst",
|
||||
recipe = {
|
||||
{"amethyst:amethyst_ingot", "amethyst:amethyst_ingot", "amethyst:amethyst_ingot"},
|
||||
{"amethyst:amethyst_ingot", "", "amethyst:amethyst_ingot"},
|
||||
{"amethyst:amethyst_ingot", "", "amethyst:amethyst_ingot"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "amethyst:boots_amethyst",
|
||||
recipe = {
|
||||
{"amethyst:amethyst_ingot", "", "amethyst:amethyst_ingot"},
|
||||
{"amethyst:amethyst_ingot", "", "amethyst:amethyst_ingot"},
|
||||
{"", "", ""},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "amethyst:shield_amethyst",
|
||||
recipe = {
|
||||
{"amethyst:amethyst_ingot", "", "amethyst:amethyst_ingot"},
|
||||
{"amethyst:amethyst_ingot", "amethyst:amethyst_ingot", "amethyst:amethyst_ingot"},
|
||||
{"", "amethyst:amethyst_ingot", ""},
|
||||
}
|
||||
})
|
||||
|
||||
-- Cooking
|
||||
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "amethyst:amethyst_ingot",
|
||||
recipe = "amethyst:amethyst_lump",
|
||||
cooktime = 30,
|
||||
})
|
||||
|
||||
-----------------------
|
||||
-- 3D Armor support --
|
||||
-----------------------
|
||||
|
||||
if minetest.get_modpath("3d_armor") then
|
||||
armor:register_armor("amethyst:helmet_amethyst", {
|
||||
description = ("Amethyst Helmet"),
|
||||
inventory_image = "amethyst_helmet_inv.png",
|
||||
groups = {armor_head=1, armor_heal=16, armor_use=70},
|
||||
armor_groups = {fleshy=10},
|
||||
damage_groups = {cracky=2, snappy=1, level=6},
|
||||
})
|
||||
|
||||
armor:register_armor("amethyst:leggings_amethyst", {
|
||||
description = ("Amethyst Leggings"),
|
||||
inventory_image = "ameythst_leggings_inv.png",
|
||||
groups = {armor_legs=1, armor_heal=16, armor_use=70},
|
||||
armor_groups = {fleshy=30},
|
||||
damage_groups = {cracky=2, snappy=1, level=6},
|
||||
})
|
||||
|
||||
armor:register_armor("amethyst:chestplate_amethyst", {
|
||||
description = ("Amethyst Chestplate"),
|
||||
inventory_image = "ameythst_chestplates_inv.png",
|
||||
groups = {armor_torso=1, armor_heal=16, armor_use=70},
|
||||
armor_groups = {fleshy=30},
|
||||
damage_groups = {cracky=2, snappy=1, level=6},
|
||||
})
|
||||
|
||||
armor:register_armor("amethyst:boots_amethyst", {
|
||||
description = ("Amethyst Boots"),
|
||||
inventory_image = "ameythst_boots_inv.png",
|
||||
groups = {armor_feet=1, armor_heal=16, armor_use=70, physics_speed=1,
|
||||
physics_jump=0.5},
|
||||
armor_groups = {fleshy=10},
|
||||
damage_groups = {cracky=2, snappy=1, level=6},
|
||||
})
|
||||
|
||||
armor:register_armor("amethyst:shield_amethyst", {
|
||||
description = ("Amethyst Shield"),
|
||||
inventory_image = "amethyst_shield_inv.png",
|
||||
groups = {armor_shield=1, armor_heal=12, armor_use=70},
|
||||
armor_groups = {fleshy=10},
|
||||
damage_groups = {cracky=2, snappy=1, level=6},
|
||||
})
|
||||
|
||||
end
|
Loading…
Reference in New Issue