Add Lunarium; Add Lunarium and Titanium tools
Finally, some proper moontest-exclusives
|
@ -148,3 +148,27 @@ minetest.register_ore({
|
||||||
height_max = -64,
|
height_max = -64,
|
||||||
flags = "absheight",
|
flags = "absheight",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_ore({
|
||||||
|
ore_type = "scatter",
|
||||||
|
ore = "moontest:lunariumore",
|
||||||
|
wherein = "moontest:stone",
|
||||||
|
clust_scarcity = 17*17*17,
|
||||||
|
clust_num_ores = 4,
|
||||||
|
clust_size = 3,
|
||||||
|
height_min = -255,
|
||||||
|
height_max = -128,
|
||||||
|
flags = "absheight",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_ore({
|
||||||
|
ore_type = "scatter",
|
||||||
|
ore = "moontest:lunariumore",
|
||||||
|
wherein = "moontest:stone",
|
||||||
|
clust_scarcity = 15*15*15,
|
||||||
|
clust_num_ores = 4,
|
||||||
|
clust_size = 3,
|
||||||
|
height_min = -31000,
|
||||||
|
height_max = -256,
|
||||||
|
flags = "absheight",
|
||||||
|
})
|
||||||
|
|
|
@ -135,6 +135,80 @@ minetest.register_craft({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
--Tools
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'moontest:pick_lunarium',
|
||||||
|
recipe = {
|
||||||
|
{'moontest:lunarium_ingot', 'moontest:lunarium_ingot', 'moontest:lunarium_ingot'},
|
||||||
|
{'', 'group:stick', ''},
|
||||||
|
{'', 'group:stick', ''},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'moontest:pick_titanium',
|
||||||
|
recipe = {
|
||||||
|
{'moontest:titanium_ingot', 'moontest:titanium_ingot', 'moontest:titanium_ingot'},
|
||||||
|
{'', 'group:stick', ''},
|
||||||
|
{'', 'group:stick', ''},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'moontest:shovel_lunarium',
|
||||||
|
recipe = {
|
||||||
|
{'moontest:lunarium_ingot'},
|
||||||
|
{'group:stick'},
|
||||||
|
{'group:stick'},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'moontest:shovel_titanium',
|
||||||
|
recipe = {
|
||||||
|
{'moontest:titanium_ingot'},
|
||||||
|
{'group:stick'},
|
||||||
|
{'group:stick'},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'moontest:axe_lunarium',
|
||||||
|
recipe = {
|
||||||
|
{'moontest:lunarium_ingot', 'moontest:lunarium_ingot'},
|
||||||
|
{'moontest:lunarium_ingot', 'group:stick'},
|
||||||
|
{'', 'group:stick'},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'moontest:axe_titanium',
|
||||||
|
recipe = {
|
||||||
|
{'moontest:titanium_ingot', 'moontest:titanium_ingot'},
|
||||||
|
{'moontest:titanium_ingot', 'group:stick'},
|
||||||
|
{'', 'group:stick'},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'moontest:sword_lunarium',
|
||||||
|
recipe = {
|
||||||
|
{'moontest:lunarium_ingot'},
|
||||||
|
{'moontest:lunarium_ingot'},
|
||||||
|
{'group:stick'},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
output = 'moontest:sword_titanium',
|
||||||
|
recipe = {
|
||||||
|
{'moontest:titanium_ingot'},
|
||||||
|
{'moontest:titanium_ingot'},
|
||||||
|
{'group:stick'},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
-- Cooking
|
-- Cooking
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
@ -149,6 +223,12 @@ minetest.register_craft({
|
||||||
recipe = "moontest:titanium_lump",
|
recipe = "moontest:titanium_lump",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craft({
|
||||||
|
type = "cooking",
|
||||||
|
output = "moontest:lunarium_ingot",
|
||||||
|
recipe = "moontest:lunarium_lump",
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
type = "fuel",
|
type = "fuel",
|
||||||
recipe = "default:mese_crystal",
|
recipe = "default:mese_crystal",
|
||||||
|
|
|
@ -8,6 +8,7 @@ local player_pos_previous = {}
|
||||||
|
|
||||||
dofile(minetest.get_modpath("moontest").."/nodes.lua")
|
dofile(minetest.get_modpath("moontest").."/nodes.lua")
|
||||||
dofile(minetest.get_modpath("moontest").."/crafting.lua")
|
dofile(minetest.get_modpath("moontest").."/crafting.lua")
|
||||||
|
dofile(minetest.get_modpath("moontest").."/tools.lua")
|
||||||
|
|
||||||
-- Globalstep function
|
-- Globalstep function
|
||||||
minetest.register_globalstep(function(dtime)
|
minetest.register_globalstep(function(dtime)
|
||||||
|
@ -83,7 +84,7 @@ function moontest_appletree(pos)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
minetest.add_node({x=pos.x,y=pos.y+j,z=pos.z},{name="default:tree"})
|
minetest.add_node({x=pos.x,y=pos.y+j,z=pos.z},{name="moontest:tree"})
|
||||||
end
|
end
|
||||||
print ("[moontest] Appletree sapling grows")
|
print ("[moontest] Appletree sapling grows")
|
||||||
end
|
end
|
||||||
|
|
|
@ -337,6 +337,15 @@ minetest.register_node(":default:stone_with_mese", {
|
||||||
sounds = default.node_sound_stone_defaults(),
|
sounds = default.node_sound_stone_defaults(),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_node("moontest:lunariumore", {
|
||||||
|
description = "Lunarium Ore",
|
||||||
|
tiles = {"moontest_stone.png^moontest_mineral_lunarium.png"},
|
||||||
|
is_ground_content = true,
|
||||||
|
groups = {cracky=1, stone = 1},
|
||||||
|
drop = "moontest:lunarium_lump",
|
||||||
|
sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_node("moontest:light", {
|
minetest.register_node("moontest:light", {
|
||||||
description = "Light",
|
description = "Light",
|
||||||
tiles = {"moontest_light.png"},
|
tiles = {"moontest_light.png"},
|
||||||
|
@ -402,6 +411,16 @@ minetest.register_craftitem("moontest:titanium_ingot", {
|
||||||
inventory_image = "moontest_titanium_ingot.png",
|
inventory_image = "moontest_titanium_ingot.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("moontest:lunarium_lump", {
|
||||||
|
description = "Lunarium Lump",
|
||||||
|
inventory_image = "moontest_lunarium_lump.png",
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_craftitem("moontest:lunarium_ingot", {
|
||||||
|
description = "Lunarium Ingot",
|
||||||
|
inventory_image = "moontest_lunarium_ingot.png",
|
||||||
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("moontest:helmet", {
|
minetest.register_craftitem("moontest:helmet", {
|
||||||
description = "Helmet",
|
description = "Helmet",
|
||||||
inventory_image = "moontest_helmet.png",
|
inventory_image = "moontest_helmet.png",
|
||||||
|
|
BIN
mods/moontest/textures/moontest_lunarium_ingot.png
Normal file
After Width: | Height: | Size: 365 B |
BIN
mods/moontest/textures/moontest_lunarium_lump.png
Normal file
After Width: | Height: | Size: 385 B |
BIN
mods/moontest/textures/moontest_mineral_lunarium.png
Normal file
After Width: | Height: | Size: 879 B |
BIN
mods/moontest/textures/moontest_tool_lunariumaxe.png
Normal file
After Width: | Height: | Size: 204 B |
BIN
mods/moontest/textures/moontest_tool_lunariumpick.png
Normal file
After Width: | Height: | Size: 340 B |
BIN
mods/moontest/textures/moontest_tool_lunariumshovel.png
Normal file
After Width: | Height: | Size: 242 B |
BIN
mods/moontest/textures/moontest_tool_lunariumsword.png
Normal file
After Width: | Height: | Size: 303 B |
BIN
mods/moontest/textures/moontest_tool_titaniumaxe.png
Normal file
After Width: | Height: | Size: 205 B |
BIN
mods/moontest/textures/moontest_tool_titaniumpick.png
Normal file
After Width: | Height: | Size: 317 B |
BIN
mods/moontest/textures/moontest_tool_titaniumshovel.png
Normal file
After Width: | Height: | Size: 233 B |
BIN
mods/moontest/textures/moontest_tool_titaniumsword.png
Normal file
After Width: | Height: | Size: 302 B |
113
mods/moontest/tools.lua
Normal file
|
@ -0,0 +1,113 @@
|
||||||
|
--picks
|
||||||
|
|
||||||
|
minetest.register_tool("moontest:pick_lunarium", {
|
||||||
|
description = "Lunarium Pickaxe",
|
||||||
|
inventory_image = "moontest_tool_lunariumpick.png",
|
||||||
|
tool_capabilities = {
|
||||||
|
full_punch_interval = 0.8,
|
||||||
|
max_drop_level=3,
|
||||||
|
groupcaps={
|
||||||
|
cracky = {times={[1]=1.75, [2]=0.85, [3]=0.35}, uses=40, maxlevel=3},
|
||||||
|
},
|
||||||
|
damage_groups = {fleshy=6},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_tool("moontest:pick_titanium", {
|
||||||
|
description = "Titanium Pickaxe",
|
||||||
|
inventory_image = "moontest_tool_titaniumpick.png",
|
||||||
|
tool_capabilities = {
|
||||||
|
full_punch_interval = 0.9,
|
||||||
|
max_drop_level=2,
|
||||||
|
groupcaps={
|
||||||
|
cracky = {times={[1]=3.50, [2]=1.70, [3]=0.70}, uses=50, maxlevel=2},
|
||||||
|
},
|
||||||
|
damage_groups = {fleshy=4},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
--shovels
|
||||||
|
|
||||||
|
minetest.register_tool("moontest:shovel_lunarium", {
|
||||||
|
description = "Lunarium Shovel",
|
||||||
|
inventory_image = "moontest_tool_lunariumshovel.png",
|
||||||
|
wield_image = "moontest_tool_lunariumshovel.png^[transformR90",
|
||||||
|
tool_capabilities = {
|
||||||
|
full_punch_interval = 0.8,
|
||||||
|
max_drop_level=1,
|
||||||
|
groupcaps={
|
||||||
|
crumbly = {times={[1]=0.85, [2]=0.35, [3]=0.15}, uses=40, maxlevel=3},
|
||||||
|
},
|
||||||
|
damage_groups = {fleshy=5},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_tool("moontest:shovel_titanium", {
|
||||||
|
description = "Titanium Shovel",
|
||||||
|
inventory_image = "moontest_tool_titaniumshovel.png",
|
||||||
|
wield_image = "moontest_tool_titaniumshovel.png^[transformR90",
|
||||||
|
tool_capabilities = {
|
||||||
|
full_punch_interval = 0.9,
|
||||||
|
max_drop_level=1,
|
||||||
|
groupcaps={
|
||||||
|
crumbly = {times={[1]=1.7, [2]=0.7, [3]=0.3}, uses=50, maxlevel=2},
|
||||||
|
},
|
||||||
|
damage_groups = {fleshy=4},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
--axes
|
||||||
|
|
||||||
|
minetest.register_tool("moontest:axe_lunarium", {
|
||||||
|
description = "Lunarium Axe",
|
||||||
|
inventory_image = "moontest_tool_lunariumaxe.png",
|
||||||
|
tool_capabilities = {
|
||||||
|
full_punch_interval = 0.7,
|
||||||
|
max_drop_level=1,
|
||||||
|
groupcaps={
|
||||||
|
choppy={times={[1]=1.85, [2]=0.75, [3]=0.35}, uses=40, maxlevel=2},
|
||||||
|
},
|
||||||
|
damage_groups = {fleshy=9},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_tool("moontest:axe_titanium", {
|
||||||
|
description = "Titanium Axe",
|
||||||
|
inventory_image = "moontest_tool_titaniumaxe.png",
|
||||||
|
tool_capabilities = {
|
||||||
|
full_punch_interval = 0.8,
|
||||||
|
max_drop_level=1,
|
||||||
|
groupcaps={
|
||||||
|
choppy={times={[1]=2.7, [2]=1.5, [3]=0.7}, uses=50, maxlevel=2},
|
||||||
|
},
|
||||||
|
damage_groups = {fleshy=8},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
|
--swords :D
|
||||||
|
|
||||||
|
minetest.register_tool("moontest:sword_lunarium", {
|
||||||
|
description = "Lunarium Sword",
|
||||||
|
inventory_image = "moontest_tool_lunariumsword.png",
|
||||||
|
tool_capabilities = {
|
||||||
|
full_punch_interval = 0.5,
|
||||||
|
max_drop_level=1,
|
||||||
|
groupcaps={
|
||||||
|
snappy={times={[1]=1.65, [2]=0.75, [3]=0.15}, uses=40, maxlevel=3},
|
||||||
|
},
|
||||||
|
damage_groups = {fleshy=10},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
minetest.register_tool("moontest:sword_titanium", {
|
||||||
|
description = "Titanium Sword",
|
||||||
|
inventory_image = "moontest_tool_titaniumsword.png",
|
||||||
|
tool_capabilities = {
|
||||||
|
full_punch_interval = 0.6,
|
||||||
|
max_drop_level=1,
|
||||||
|
groupcaps={
|
||||||
|
snappy={times={[1]=3.3, [2]=1.5, [3]=0.3}, uses=50, maxlevel=3},
|
||||||
|
},
|
||||||
|
damage_groups = {fleshy=9},
|
||||||
|
}
|
||||||
|
})
|