An absolute ton of changes, add new tool types and rename old ones, armor and ores are still WIP
@ -307,9 +307,9 @@ achievements.register_achievement(
|
||||
"hardened_miner",
|
||||
{
|
||||
title = "Hardened Miner",
|
||||
description = "Craft 3 carbon steel pickaxes.",
|
||||
description = "Craft 3 Carbon Steel pickaxes.",
|
||||
times = 3,
|
||||
craftitem = "default:pick_carbonsteel",
|
||||
craftitem = "default:pick_carbon_steel",
|
||||
})
|
||||
|
||||
-- Dirt/soil
|
||||
|
@ -8,11 +8,11 @@ armor = {}
|
||||
armor.player_skin = "character.png"
|
||||
|
||||
armor.materials = {
|
||||
-- material craftitem % description
|
||||
{"wood", "group:planks", 15, "Wooden"},
|
||||
{"steel", "default:ingot_steel", 30, "Steel"},
|
||||
{"chainmail", "armor:chainmail_sheet", 45, "Chainmail"},
|
||||
{"carbonsteel", "default:ingot_carbonsteel", 60, "Carbonsteel"},
|
||||
-- material craftitem % description
|
||||
{"wood", "group:planks", 15, "Wooden"},
|
||||
{"steel", "default:ingot_steel", 30, "Steel"},
|
||||
{"chainmail", "armor:chainmail_sheet", 45, "Chainmail"},
|
||||
{"carbon_steel", "default:ingot_carbon_steel", 60, "Carbon Steel"},
|
||||
}
|
||||
|
||||
-- Usable slots
|
||||
@ -242,24 +242,24 @@ crafting.register_craft(
|
||||
|
||||
-- Armor pieces
|
||||
|
||||
for mat_index, _ in ipairs(armor.materials) do
|
||||
local def = armor.materials[mat_index]
|
||||
local mat = def[1]
|
||||
for mat_index, matdef in ipairs(armor.materials) do
|
||||
local mat = matdef[1]
|
||||
|
||||
local armor_def = math.floor(def[3] / #armor.slots)
|
||||
local armor_def = math.floor(matdef[3] / #armor.slots)
|
||||
-- print("Material " .. mat .. ": " .. armor_def)
|
||||
|
||||
for _, slot in ipairs(armor.slots) do
|
||||
local slot_pretty = slot:gsub(
|
||||
local prettystring = slot:gsub(
|
||||
"(%a)([%w_']*)",
|
||||
function(first, rest)
|
||||
return first:upper() .. rest:lower()
|
||||
return first:upper()..rest:lower()
|
||||
end)
|
||||
|
||||
|
||||
minetest.register_craftitem(
|
||||
"armor:" .. slot .. "_" .. mat,
|
||||
{
|
||||
description = def[4] .. " " .. slot_pretty,
|
||||
description = matdef[4] .. " " .. prettystring,
|
||||
|
||||
inventory_image = "armor_" .. slot .. "_" .. mat .. "_inventory.png",
|
||||
wield_image = "armor_" .. slot .. "_" .. mat .. "_inventory.png",
|
||||
@ -278,7 +278,7 @@ for mat_index, _ in ipairs(armor.materials) do
|
||||
{
|
||||
output = "armor:helmet_" .. mat,
|
||||
items = {
|
||||
def[2] .. " 5",
|
||||
matdef[2] .. " 5",
|
||||
}
|
||||
})
|
||||
|
||||
@ -286,7 +286,7 @@ for mat_index, _ in ipairs(armor.materials) do
|
||||
{
|
||||
output = "armor:chestplate_" .. mat,
|
||||
items = {
|
||||
def[2] .. " 8",
|
||||
matdef[2] .. " 8",
|
||||
}
|
||||
})
|
||||
|
||||
@ -294,7 +294,7 @@ for mat_index, _ in ipairs(armor.materials) do
|
||||
{
|
||||
output = "armor:boots_" .. mat,
|
||||
items = {
|
||||
def[2] .. " 6",
|
||||
matdef[2] .. " 6",
|
||||
}
|
||||
})
|
||||
end
|
||||
|
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 421 B After Width: | Height: | Size: 421 B |
Before Width: | Height: | Size: 363 B After Width: | Height: | Size: 363 B |
Before Width: | Height: | Size: 413 B After Width: | Height: | Size: 413 B |
Before Width: | Height: | Size: 301 B After Width: | Height: | Size: 301 B |
Before Width: | Height: | Size: 441 B After Width: | Height: | Size: 441 B |
@ -44,6 +44,12 @@ function crafting.register_craft(def)
|
||||
"Tried to register an existing craft " .. itemkey .. ", allowing")
|
||||
end
|
||||
|
||||
if not minetest.registered_items[itemstack:get_name()] then
|
||||
minetest.log("warning",
|
||||
"Trying to register craft " .. itemkey
|
||||
.. " that has an unknown output item")
|
||||
end
|
||||
|
||||
local craftdef = {
|
||||
output = itemstack,
|
||||
items = def.items or crafting.default_craftdef.items,
|
||||
|
@ -3,173 +3,56 @@
|
||||
-- Recipes
|
||||
--
|
||||
|
||||
-- Pickaxes
|
||||
-- Autogenerated tools
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:pick_wood",
|
||||
items = {
|
||||
"group:planks 2",
|
||||
"default:fiber 4",
|
||||
"default:stick 3",
|
||||
}
|
||||
})
|
||||
local tool_types = {
|
||||
pick = {
|
||||
wood = "group:planks 3",
|
||||
stone = "group:stone 3",
|
||||
wrought_iron = "default:ingot_wrought_iron 3",
|
||||
steel = "default:ingot_steel 3",
|
||||
carbon_steel = "default:ingot_carbon_steel 3",
|
||||
bronze = "default:ingot_bronze 3",
|
||||
},
|
||||
shovel = {
|
||||
wood = "group:planks 3",
|
||||
stone = "group:stone 3",
|
||||
wrought_iron = "default:ingot_wrought_iron 3",
|
||||
steel = "default:ingot_steel 3",
|
||||
carbon_steel = "default:ingot_carbon_steel 3",
|
||||
bronze = "default:ingot_bronze 3",
|
||||
},
|
||||
axe= {
|
||||
wood = "group:planks 3",
|
||||
stone = "group:stone 3",
|
||||
wrought_iron = "default:ingot_wrought_iron 3",
|
||||
steel = "default:ingot_steel 3",
|
||||
carbon_steel = "default:ingot_carbon_steel 3",
|
||||
bronze = "default:ingot_bronze 3",
|
||||
},
|
||||
spear = {
|
||||
wood = "group:planks 2",
|
||||
stone = "group:stone 2",
|
||||
wrought_iron = "default:ingot_wrought_iron 2",
|
||||
steel = "default:ingot_steel 2",
|
||||
carbon_steel = "default:ingot_carbon_steel 2",
|
||||
bronze = "default:ingot_bronze 2",
|
||||
},
|
||||
}
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:pick_stone",
|
||||
items = {
|
||||
"group:stone 2",
|
||||
"default:fiber 4",
|
||||
"default:stick 3",
|
||||
}
|
||||
})
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:pick_steel",
|
||||
items = {
|
||||
"default:ingot_steel 2",
|
||||
"default:fiber 4",
|
||||
"default:stick 3",
|
||||
}
|
||||
})
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:pick_carbonsteel",
|
||||
items = {
|
||||
"default:ingot_carbonsteel 2",
|
||||
"default:fiber 4",
|
||||
"default:stick 3",
|
||||
}
|
||||
})
|
||||
|
||||
-- Shovels
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:shovel_wood",
|
||||
items = {
|
||||
"group:planks 2",
|
||||
"default:fiber 4",
|
||||
"default:stick 3",
|
||||
}
|
||||
})
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:shovel_stone",
|
||||
items = {
|
||||
"group:stone 2",
|
||||
"default:fiber 4",
|
||||
"default:stick 3",
|
||||
}
|
||||
})
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:shovel_steel",
|
||||
items = {
|
||||
"default:ingot_steel 2",
|
||||
"default:fiber 4",
|
||||
"default:stick 3",
|
||||
}
|
||||
})
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:shovel_carbonsteel",
|
||||
items = {
|
||||
"default:ingot_carbonsteel 2",
|
||||
"default:fiber 4",
|
||||
"default:stick 3",
|
||||
}
|
||||
})
|
||||
|
||||
-- Axes
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:axe_wood",
|
||||
items = {
|
||||
"group:planks 2",
|
||||
"default:fiber 4",
|
||||
"default:stick 3",
|
||||
}
|
||||
})
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:axe_stone",
|
||||
items = {
|
||||
"group:stone 2",
|
||||
"default:fiber 4",
|
||||
"default:stick 3",
|
||||
}
|
||||
})
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:axe_steel",
|
||||
items = {
|
||||
"default:ingot_steel 2",
|
||||
"default:fiber 4",
|
||||
"default:stick 3",
|
||||
}
|
||||
})
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:axe_carbonsteel",
|
||||
items = {
|
||||
"default:ingot_carbonsteel 2",
|
||||
"default:fiber 4",
|
||||
"default:stick 3",
|
||||
}
|
||||
})
|
||||
|
||||
-- Spears
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:spear_wood",
|
||||
items = {
|
||||
"group:planks 2",
|
||||
"default:fiber 4",
|
||||
"default:stick 3",
|
||||
}
|
||||
})
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:spear_stone",
|
||||
items = {
|
||||
"group:stone 2",
|
||||
"default:fiber 4",
|
||||
"default:stick 3",
|
||||
}
|
||||
})
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:spear_steel",
|
||||
items = {
|
||||
"default:ingot_steel 2",
|
||||
"default:fiber 4",
|
||||
"default:stick 3",
|
||||
}
|
||||
})
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:spear_carbonsteel",
|
||||
items = {
|
||||
"default:ingot_carbonsteel 2",
|
||||
"default:fiber 4",
|
||||
"default:stick 3",
|
||||
}
|
||||
})
|
||||
for tool_name, tool_type in pairs(tool_types) do
|
||||
for material_name, material_item in pairs(tool_type) do
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:" .. tool_name .. "_" .. material_name,
|
||||
items = {
|
||||
material_item,
|
||||
"default:fiber 4",
|
||||
"default:stick 3",
|
||||
}
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
-- Broadsword
|
||||
|
||||
@ -183,17 +66,49 @@ crafting.register_craft(
|
||||
}
|
||||
})
|
||||
|
||||
-- Items
|
||||
-- Shears
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:dust_carbonsteel",
|
||||
output = "default:shears",
|
||||
items = {
|
||||
"default:lump_coal 2",
|
||||
"default:lump_iron 3",
|
||||
"default:ingot_wrought_iron 2",
|
||||
"default:fiber 2",
|
||||
"default:stick 2",
|
||||
}
|
||||
})
|
||||
|
||||
-- Minerals
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:ingot_steel 2",
|
||||
items = {
|
||||
"default:lump_coal",
|
||||
"default:ingot_steel 4",
|
||||
}
|
||||
})
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:ingot_carbon_steel 2",
|
||||
items = {
|
||||
"default:lump_coal 2",
|
||||
"default:ingot_wrought_iron 7",
|
||||
}
|
||||
})
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:lump_bronze 2",
|
||||
items = {
|
||||
"default:lump_tin 2",
|
||||
"default:lump_copper 5",
|
||||
}
|
||||
})
|
||||
|
||||
-- Items
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:rope 2",
|
||||
@ -293,6 +208,14 @@ crafting.register_craft(
|
||||
|
||||
-- Block nodes
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:block_wrought_iron",
|
||||
items = {
|
||||
"default:ingot_wrought_iron 9",
|
||||
}
|
||||
})
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:block_steel",
|
||||
@ -301,6 +224,22 @@ crafting.register_craft(
|
||||
}
|
||||
})
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:block_carbon_steel",
|
||||
items = {
|
||||
"default:ingot_carbon_steel 9",
|
||||
}
|
||||
})
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:block_bronze",
|
||||
items = {
|
||||
"default:ingot_bronze 9",
|
||||
}
|
||||
})
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "default:block_coal",
|
||||
@ -333,7 +272,7 @@ crafting.register_craft(
|
||||
output = "default:heated_dirt_path",
|
||||
items = {
|
||||
"default:dirt_path",
|
||||
"default:ingot_steel",
|
||||
"default:ingot_wrought_iron",
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -1,15 +1,17 @@
|
||||
|
||||
--
|
||||
-- Cooking
|
||||
-- Crafting/creation
|
||||
--
|
||||
|
||||
-- Cooking
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "cooking",
|
||||
output = "default:torch_weak",
|
||||
recipe = "default:torch_dead",
|
||||
cooktime = 1,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
@ -17,7 +19,7 @@ minetest.register_craft(
|
||||
output = "default:torch",
|
||||
recipe = "default:torch_weak",
|
||||
cooktime = 4,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
@ -25,31 +27,15 @@ minetest.register_craft(
|
||||
output = "default:glass",
|
||||
recipe = "default:sand",
|
||||
cooktime = 3,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "cooking",
|
||||
output = "default:lump_coal",
|
||||
recipe = "default:tree",
|
||||
recipe = "group:tree",
|
||||
cooktime = 4,
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "cooking",
|
||||
output = "default:lump_coal",
|
||||
recipe = "default:tree_oak",
|
||||
cooktime = 5,
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "cooking",
|
||||
output = "default:lump_coal",
|
||||
recipe = "default:tree_birch",
|
||||
cooktime = 5,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
@ -57,216 +43,157 @@ minetest.register_craft(
|
||||
output = "default:stone",
|
||||
recipe = "default:cobble",
|
||||
cooktime = 6,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "cooking",
|
||||
output = "default:ingot_steel",
|
||||
output = "default:ingot_wrought_iron",
|
||||
recipe = "default:lump_iron",
|
||||
cooktime = 3,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "cooking",
|
||||
output = "default:ingot_carbonsteel",
|
||||
recipe = "default:dust_carbonsteel",
|
||||
cooktime = 5,
|
||||
})
|
||||
output = "default:ingot_bronze",
|
||||
recipe = "default:lump_bronze",
|
||||
cooktime = 6,
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "cooking",
|
||||
output = "default:lump_sugar",
|
||||
recipe = "default:papyrus",
|
||||
cooktime = 7,
|
||||
})
|
||||
|
||||
--
|
||||
-- Fuels
|
||||
--
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "group:leaves",
|
||||
burntime = 1,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "default:dry_grass",
|
||||
burntime = 1,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "default:fern",
|
||||
burntime = 2,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "default:papyrus",
|
||||
burntime = 2,
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "default:apple",
|
||||
burntime = 3,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "default:ladder",
|
||||
burntime = 5,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "default:rope",
|
||||
burntime = 5,
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "group:planks",
|
||||
burntime = 5,
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "default:torch",
|
||||
burntime = 5,
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "group:sapling",
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "default:fertilizer",
|
||||
burntime = 8,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "group:planks",
|
||||
burntime = 9,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "default:torch",
|
||||
burntime = 7,
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "group:sapling",
|
||||
burntime = 4,
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "default:sign",
|
||||
burntime = 10,
|
||||
})
|
||||
burntime = 6,
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "default:cactus",
|
||||
burntime = 10,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "default:fence",
|
||||
burntime = 10,
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "default:fence_oak",
|
||||
burntime = 11,
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "default:fence_birch",
|
||||
burntime = 11,
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "default:planks_oak",
|
||||
burntime = 12,
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "default:planks_birch",
|
||||
burntime = 12,
|
||||
})
|
||||
recipe = "group:fence",
|
||||
burntime = 8,
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "default:frame",
|
||||
burntime = 12,
|
||||
})
|
||||
burntime = 13,
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "default:reinforced_frame",
|
||||
burntime = 17,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "group:tree",
|
||||
burntime = 20,
|
||||
})
|
||||
burntime = 22,
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "default:chest",
|
||||
burntime = 24,
|
||||
})
|
||||
burntime = 25,
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "default:bookshelf",
|
||||
burntime = 30,
|
||||
})
|
||||
burntime = 32,
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "default:lump_coal",
|
||||
burntime = 30,
|
||||
})
|
||||
burntime = 20,
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "fuel",
|
||||
recipe = "default:block_coal",
|
||||
burntime = 270,
|
||||
})
|
||||
burntime = 180,
|
||||
})
|
||||
|
||||
default.log("crafting", "loaded")
|
||||
|
@ -1,7 +1,10 @@
|
||||
|
||||
--
|
||||
-- Crafting items
|
||||
--
|
||||
|
||||
-- Organic items
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:fiber",
|
||||
{
|
||||
@ -25,12 +28,19 @@ minetest.register_craftitem(
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:book",
|
||||
"default:pearl",
|
||||
{
|
||||
description = "Book",
|
||||
inventory_image = "default_book.png",
|
||||
wield_scale = {x=1,y=1,z=2},
|
||||
stack_max = 1,
|
||||
description = "Pearl",
|
||||
inventory_image = "default_pearl.png",
|
||||
})
|
||||
|
||||
-- Mineral lumps
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:lump_sulfur",
|
||||
{
|
||||
description = "Sulfur Lump",
|
||||
inventory_image = "default_lump_sulfur.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
@ -48,10 +58,40 @@ minetest.register_craftitem(
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:dust_carbonsteel",
|
||||
"default:lump_graphite",
|
||||
{
|
||||
description = "Carbon Steel Dust",
|
||||
inventory_image = "default_dust_carbonsteel.png",
|
||||
description = "Graphite Lump",
|
||||
inventory_image = "default_lump_graphite.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:lump_tin",
|
||||
{
|
||||
description = "Tin Lump",
|
||||
inventory_image = "default_lump_tin.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:lump_copper",
|
||||
{
|
||||
description = "Copper Lump",
|
||||
inventory_image = "default_lump_copper.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:lump_bronze",
|
||||
{
|
||||
description = "Bronze Lump",
|
||||
inventory_image = "default_lump_bronze.png",
|
||||
})
|
||||
|
||||
-- Ingots
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:ingot_wrought_iron",
|
||||
{
|
||||
description = "Wrought Iron Ingot",
|
||||
inventory_image = "default_ingot_wrought_iron.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
@ -62,26 +102,20 @@ minetest.register_craftitem(
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:ingot_carbonsteel",
|
||||
"default:ingot_carbon_steel",
|
||||
{
|
||||
description = "Carbon Steel Ingot",
|
||||
inventory_image = "default_ingot_carbonsteel.png",
|
||||
inventory_image = "default_ingot_carbon_steel.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:lump_sugar",
|
||||
"default:ingot_bronze",
|
||||
{
|
||||
description = "Sugar Lump",
|
||||
inventory_image = "default_lump_sugar.png",
|
||||
on_use = minetest.item_eat({hp = 1, sat = 10})
|
||||
description = "Bronze Ingot",
|
||||
inventory_image = "default_ingot_bronze.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:pearl",
|
||||
{
|
||||
description = "Pearl",
|
||||
inventory_image = "default_pearl.png",
|
||||
})
|
||||
-- Crafted items
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:flint",
|
||||
@ -90,6 +124,15 @@ minetest.register_craftitem(
|
||||
inventory_image = "default_flint.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:book",
|
||||
{
|
||||
description = "Book",
|
||||
inventory_image = "default_book.png",
|
||||
wield_scale = {x=1,y=1,z=2},
|
||||
stack_max = 1,
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"default:bucket_water",
|
||||
{
|
||||
|
@ -1,9 +1,11 @@
|
||||
-- minetest/default/mapgen.lua
|
||||
|
||||
--
|
||||
-- Aliases for map generator outputs(Might not be needed with v7, but JIC)
|
||||
-- Mapgen
|
||||
--
|
||||
|
||||
-- Aliases for map generator outputs
|
||||
-- Might not be needed with v7, but just in case
|
||||
|
||||
minetest.register_alias("mapgen_stone", "default:stone")
|
||||
minetest.register_alias("mapgen_tree", "default:tree")
|
||||
minetest.register_alias("mapgen_leaves", "default:leaves")
|
||||
@ -25,9 +27,7 @@ minetest.register_alias("mapgen_mese", "default:block_steel")
|
||||
minetest.register_alias("mapgen_stair_cobble", "default:reinforced_frame")
|
||||
minetest.register_alias("mapgen_lava_source", "default:water_source")
|
||||
|
||||
--
|
||||
-- Biome setup
|
||||
--
|
||||
|
||||
minetest.clear_registered_biomes()
|
||||
|
||||
@ -48,7 +48,7 @@ minetest.register_biome(
|
||||
|
||||
heat_point = 35,
|
||||
humidity_point = 55,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_biome(
|
||||
{
|
||||
@ -65,7 +65,7 @@ minetest.register_biome(
|
||||
|
||||
heat_point = 30,
|
||||
humidity_point = 42,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_biome(
|
||||
{
|
||||
@ -82,7 +82,7 @@ minetest.register_biome(
|
||||
|
||||
heat_point = 33,
|
||||
humidity_point = 40,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_biome(
|
||||
{
|
||||
@ -99,7 +99,7 @@ minetest.register_biome(
|
||||
|
||||
heat_point = 35,
|
||||
humidity_point = 40,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_biome(
|
||||
{
|
||||
@ -116,7 +116,7 @@ minetest.register_biome(
|
||||
|
||||
heat_point = 40,
|
||||
humidity_point = 38,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_biome(
|
||||
{
|
||||
@ -133,7 +133,7 @@ minetest.register_biome(
|
||||
|
||||
heat_point = 46,
|
||||
humidity_point = 35,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_biome(
|
||||
{
|
||||
@ -150,7 +150,7 @@ minetest.register_biome(
|
||||
|
||||
heat_point = 50,
|
||||
humidity_point = 33,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_biome(
|
||||
{
|
||||
@ -167,7 +167,7 @@ minetest.register_biome(
|
||||
|
||||
heat_point = 50,
|
||||
humidity_point = 33,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_biome(
|
||||
{
|
||||
@ -184,7 +184,7 @@ minetest.register_biome(
|
||||
|
||||
heat_point = 60,
|
||||
humidity_point = 30,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_biome(
|
||||
{
|
||||
@ -201,7 +201,7 @@ minetest.register_biome(
|
||||
|
||||
heat_point = 60,
|
||||
humidity_point = 25,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_biome(
|
||||
{
|
||||
@ -218,7 +218,7 @@ minetest.register_biome(
|
||||
|
||||
heat_point = 75,
|
||||
humidity_point = 20,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_biome(
|
||||
{
|
||||
@ -235,7 +235,7 @@ minetest.register_biome(
|
||||
|
||||
heat_point = 80,
|
||||
humidity_point = 20,
|
||||
})
|
||||
})
|
||||
|
||||
-- Oceans
|
||||
|
||||
@ -254,7 +254,7 @@ minetest.register_biome(
|
||||
|
||||
heat_point = 50,
|
||||
humidity_point = 35,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_biome(
|
||||
{
|
||||
@ -271,7 +271,7 @@ minetest.register_biome(
|
||||
|
||||
heat_point = 59,
|
||||
humidity_point = 31,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_biome(
|
||||
{
|
||||
@ -288,13 +288,9 @@ minetest.register_biome(
|
||||
|
||||
heat_point = 60,
|
||||
humidity_point = 30,
|
||||
})
|
||||
})
|
||||
|
||||
--
|
||||
-- Decorations
|
||||
--
|
||||
|
||||
-- Trees
|
||||
-- Tree decorations
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -304,11 +300,16 @@ minetest.register_decoration(
|
||||
fill_ratio = 0.004,
|
||||
biomes = {"Forest"},
|
||||
flags = "place_center_x, place_center_z",
|
||||
replacements = {["default:leaves"] = "default:leaves_birch", ["default:tree"] = "default:tree_birch", ["default:apple"] = "air"},
|
||||
schematic = minetest.get_modpath("default").."/schematics/default_squaretree.mts",
|
||||
replacements = {
|
||||
["default:leaves"] = "default:leaves_birch",
|
||||
["default:tree"] = "default:tree_birch",
|
||||
["default:apple"] = "air"
|
||||
},
|
||||
schematic = minetest.get_modpath("default")
|
||||
.. "/schematics/default_squaretree.mts",
|
||||
y_min = -32000,
|
||||
y_max = 32000,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -318,10 +319,11 @@ minetest.register_decoration(
|
||||
fill_ratio = 0.007,
|
||||
biomes = {"Orchard"},
|
||||
flags = "place_center_x, place_center_z",
|
||||
schematic = minetest.get_modpath("default").."/schematics/default_tree.mts",
|
||||
schematic = minetest.get_modpath("default")
|
||||
.. "/schematics/default_tree.mts",
|
||||
y_min = 10,
|
||||
y_max = 32000,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -331,11 +333,16 @@ minetest.register_decoration(
|
||||
fill_ratio = 0.009,
|
||||
biomes = {"Forest", "Deep Forest"},
|
||||
flags = "place_center_x, place_center_z",
|
||||
replacements = {["default:leaves"] = "default:leaves_oak", ["default:tree"] = "default:tree_oak", ["default:apple"] = "air"},
|
||||
schematic = minetest.get_modpath("default").."/schematics/default_tree.mts",
|
||||
replacements = {
|
||||
["default:leaves"] = "default:leaves_oak",
|
||||
["default:tree"] = "default:tree_oak",
|
||||
["default:apple"] = "air",
|
||||
},
|
||||
schematic = minetest.get_modpath("default")
|
||||
.. "/schematics/default_tree.mts",
|
||||
y_min = -32000,
|
||||
y_max = 32000,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -345,10 +352,11 @@ minetest.register_decoration(
|
||||
fill_ratio = 0.008,
|
||||
biomes = {"Forest"},
|
||||
flags = "place_center_x, place_center_z",
|
||||
schematic = minetest.get_modpath("default").."/schematics/default_megatree.mts",
|
||||
schematic = minetest.get_modpath("default")
|
||||
.. "/schematics/default_megatree.mts",
|
||||
y_min = -32000,
|
||||
y_max = 32000,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -358,10 +366,11 @@ minetest.register_decoration(
|
||||
fill_ratio = 0.023,
|
||||
biomes = {"Deep Forest"},
|
||||
flags = "place_center_x, place_center_z",
|
||||
schematic = minetest.get_modpath("default").."/schematics/default_gigatree.mts",
|
||||
schematic = minetest.get_modpath("default")
|
||||
.. "/schematics/default_gigatree.mts",
|
||||
y_min = -32000,
|
||||
y_max = 32000,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -371,11 +380,14 @@ minetest.register_decoration(
|
||||
fill_ratio = 0.004,
|
||||
biomes = {"Wilderness"},
|
||||
flags = "place_center_x, place_center_z",
|
||||
replacements = {["default:apple"] = "air"},
|
||||
schematic = minetest.get_modpath("default").."/schematics/default_tree.mts",
|
||||
replacements = {
|
||||
["default:apple"] = "air",
|
||||
},
|
||||
schematic = minetest.get_modpath("default")
|
||||
.. "/schematics/default_tree.mts",
|
||||
y_min = -32000,
|
||||
y_max = 32000,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -385,11 +397,16 @@ minetest.register_decoration(
|
||||
fill_ratio = 0.004,
|
||||
biomes = {"Wilderness"},
|
||||
flags = "place_center_x, place_center_z",
|
||||
replacements = {["default:leaves"] = "default:leaves_oak", ["default:tree"] = "default:tree_oak", ["default:apple"] = "air"},
|
||||
schematic = minetest.get_modpath("default").."/schematics/default_tree.mts",
|
||||
replacements = {
|
||||
["default:leaves"] = "default:leaves_oak",
|
||||
["default:tree"] = "default:tree_oak",
|
||||
["default:apple"] = "air",
|
||||
},
|
||||
schematic = minetest.get_modpath("default")
|
||||
.. "/schematics/default_tree.mts",
|
||||
y_min = -32000,
|
||||
y_max = 32000,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -399,12 +416,13 @@ minetest.register_decoration(
|
||||
fill_ratio = 0.004,
|
||||
biomes = {"Grove"},
|
||||
flags = "place_center_x, place_center_z",
|
||||
schematic = minetest.get_modpath("default").."/schematics/default_talltree.mts",
|
||||
schematic = minetest.get_modpath("default")
|
||||
.. "/schematics/default_talltree.mts",
|
||||
y_min = 0,
|
||||
y_max = 32000,
|
||||
})
|
||||
})
|
||||
|
||||
-- Papyrus
|
||||
-- Papyrus decorations
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -419,9 +437,9 @@ minetest.register_decoration(
|
||||
height = 2,
|
||||
y_max = 3,
|
||||
y_min = 0,
|
||||
})
|
||||
})
|
||||
|
||||
-- Flowers
|
||||
-- Flower decorations
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -433,9 +451,9 @@ minetest.register_decoration(
|
||||
decoration = {"default:flower"},
|
||||
y_min = -32000,
|
||||
y_max = 32000,
|
||||
})
|
||||
})
|
||||
|
||||
-- Grasses
|
||||
-- Grass decorations
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -447,7 +465,7 @@ minetest.register_decoration(
|
||||
decoration = {"default:grass"},
|
||||
y_min = 10,
|
||||
y_max = 32000,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -459,7 +477,7 @@ minetest.register_decoration(
|
||||
decoration = {"default:swamp_grass"},
|
||||
y_min = 2,
|
||||
y_max = 40,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -471,7 +489,7 @@ minetest.register_decoration(
|
||||
decoration = {"default:dry_grass"},
|
||||
y_min = 10,
|
||||
y_max = 500,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -483,7 +501,7 @@ minetest.register_decoration(
|
||||
decoration = {"default:grass"},
|
||||
y_min = 0,
|
||||
y_max = 32000,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -495,7 +513,7 @@ minetest.register_decoration(
|
||||
decoration = {"default:tall_grass"},
|
||||
y_min = 0,
|
||||
y_max = 32000,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -507,7 +525,7 @@ minetest.register_decoration(
|
||||
decoration = {"default:tall_grass"},
|
||||
y_min = 0,
|
||||
y_max = 32000,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -519,7 +537,7 @@ minetest.register_decoration(
|
||||
decoration = {"default:grass"},
|
||||
y_min = -32000,
|
||||
y_max = 32000,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -531,9 +549,9 @@ minetest.register_decoration(
|
||||
decoration = {"default:tall_grass"},
|
||||
y_min = -32000,
|
||||
y_max = 32000,
|
||||
})
|
||||
})
|
||||
|
||||
-- Thistle
|
||||
-- Thistle decorations
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -546,9 +564,9 @@ minetest.register_decoration(
|
||||
height = 2,
|
||||
y_min = -32000,
|
||||
y_max = 32000,
|
||||
})
|
||||
})
|
||||
|
||||
-- Ferns
|
||||
-- Fern decorations
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -560,49 +578,9 @@ minetest.register_decoration(
|
||||
decoration = {"default:fern"},
|
||||
y_min = -32000,
|
||||
y_max = 32000,
|
||||
})
|
||||
})
|
||||
|
||||
-- Farming
|
||||
|
||||
if minetest.get_modpath("farming") ~= nil then
|
||||
minetest.register_decoration(
|
||||
{
|
||||
deco_type = "simple",
|
||||
place_on = "default:dirt_with_grass",
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.008,
|
||||
biomes = {"Wilderness"},
|
||||
decoration = {"farming:wheat_4"},
|
||||
y_min = 0,
|
||||
y_max = 32000,
|
||||
})
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
deco_type = "simple",
|
||||
place_on = "default:dirt_with_grass",
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.006,
|
||||
biomes = {"Grassland", "Savanna"},
|
||||
decoration = {"farming:wheat_4"},
|
||||
y_min = 0,
|
||||
y_max = 32000,
|
||||
})
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
deco_type = "simple",
|
||||
place_on = "default:sand",
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.004,
|
||||
biomes = {"Desert"},
|
||||
decoration = {"farming:cotton_4"},
|
||||
y_min = 0,
|
||||
y_max = 32000,
|
||||
})
|
||||
end
|
||||
|
||||
-- Cactus
|
||||
-- Cactus decorations
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -612,13 +590,13 @@ minetest.register_decoration(
|
||||
fill_ratio = 0.004,
|
||||
biomes = {"Desert"},
|
||||
flags = "place_center_x, place_center_z",
|
||||
schematic = minetest.get_modpath("default").."/schematics/default_cactus.mts",
|
||||
schematic = minetest.get_modpath("default") .. "/schematics/default_cactus.mts",
|
||||
y_min = 10,
|
||||
y_max = 500,
|
||||
rotation = "random",
|
||||
})
|
||||
})
|
||||
|
||||
-- Shrubs
|
||||
-- Shrub decorations
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -629,11 +607,11 @@ minetest.register_decoration(
|
||||
biomes = {"Savanna", "Chaparral"},
|
||||
flags = "place_center_x, place_center_z",
|
||||
replacements = {["default:leaves"] = "default:dry_leaves"},
|
||||
schematic = minetest.get_modpath("default").."/schematics/default_shrub.mts",
|
||||
schematic = minetest.get_modpath("default") .. "/schematics/default_shrub.mts",
|
||||
y_min = 3,
|
||||
y_max = 32000,
|
||||
rotation = "0",
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -644,11 +622,11 @@ minetest.register_decoration(
|
||||
biomes = {"Chaparral"},
|
||||
flags = "place_center_x, place_center_z",
|
||||
replacements = {["default:leaves"] = "default:dry_leaves"},
|
||||
schematic = minetest.get_modpath("default").."/schematics/default_bush.mts",
|
||||
schematic = minetest.get_modpath("default") .. "/schematics/default_bush.mts",
|
||||
y_min = -32000,
|
||||
y_max = 32000,
|
||||
rotation = "0",
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -658,13 +636,13 @@ minetest.register_decoration(
|
||||
fill_ratio = 0.004,
|
||||
biomes = {"Wilderness", "Grove"},
|
||||
flags = "place_center_x, place_center_z",
|
||||
schematic = minetest.get_modpath("default").."/schematics/default_bush.mts",
|
||||
schematic = minetest.get_modpath("default") .. "/schematics/default_bush.mts",
|
||||
y_min = 3,
|
||||
y_max = 32000,
|
||||
rotation = "0",
|
||||
})
|
||||
})
|
||||
|
||||
-- Rocks
|
||||
-- Rock decorations
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -674,11 +652,12 @@ minetest.register_decoration(
|
||||
fill_ratio = 0.006,
|
||||
biomes = {"Wasteland"},
|
||||
flags = "place_center_x, place_center_z",
|
||||
schematic = minetest.get_modpath("default").."/schematics/default_small_rock.mts",
|
||||
schematic = minetest.get_modpath("default")
|
||||
.. "/schematics/default_small_rock.mts",
|
||||
y_min = -32000,
|
||||
y_max = 32000,
|
||||
rotation = "random",
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -688,13 +667,14 @@ minetest.register_decoration(
|
||||
fill_ratio = 0.004,
|
||||
biomes = {"Wasteland"},
|
||||
flags = "place_center_x, place_center_z",
|
||||
schematic = minetest.get_modpath("default").."/schematics/default_large_rock.mts",
|
||||
schematic = minetest.get_modpath("default")
|
||||
.. "/schematics/default_large_rock.mts",
|
||||
y_min = -32000,
|
||||
y_max = 32000,
|
||||
rotation = "random",
|
||||
})
|
||||
})
|
||||
|
||||
-- Clams
|
||||
-- Clam decorations
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
@ -706,14 +686,10 @@ minetest.register_decoration(
|
||||
decoration = {"default:clam"},
|
||||
y_min = 0,
|
||||
y_max = 1,
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
--
|
||||
-- Ore generation
|
||||
--
|
||||
|
||||
-- Coal
|
||||
-- Coal ore
|
||||
|
||||
minetest.register_ore(
|
||||
{
|
||||
@ -725,7 +701,7 @@ minetest.register_ore(
|
||||
clust_size = 4,
|
||||
y_min = -31000,
|
||||
y_max = 32,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_ore(
|
||||
{
|
||||
@ -737,7 +713,7 @@ minetest.register_ore(
|
||||
clust_size = 6,
|
||||
y_min = -31000,
|
||||
y_max = -32,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_ore(
|
||||
{
|
||||
@ -749,9 +725,9 @@ minetest.register_ore(
|
||||
clust_size = 10,
|
||||
y_min = -31000,
|
||||
y_max = -64,
|
||||
})
|
||||
})
|
||||
|
||||
-- Iron
|
||||
-- Iron ore
|
||||
|
||||
minetest.register_ore(
|
||||
{
|
||||
@ -763,7 +739,7 @@ minetest.register_ore(
|
||||
clust_size = 4,
|
||||
y_min = -31000,
|
||||
y_max = 0,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_ore(
|
||||
{
|
||||
@ -775,21 +751,7 @@ minetest.register_ore(
|
||||
clust_size = 10,
|
||||
y_min = -31000,
|
||||
y_max = -32,
|
||||
})
|
||||
|
||||
-- Steel blocks
|
||||
|
||||
minetest.register_ore(
|
||||
{
|
||||
ore_type = "blob",
|
||||
ore = "default:block_steel",
|
||||
wherein = "default:stone",
|
||||
clust_scarcity = 12*12*12,
|
||||
clust_num_ores = 10,
|
||||
clust_size = 10,
|
||||
y_min = -31000,
|
||||
y_max = -128,
|
||||
})
|
||||
})
|
||||
|
||||
-- Water
|
||||
|
||||
@ -799,12 +761,12 @@ minetest.register_ore( -- Springs
|
||||
ore = "default:water_source",
|
||||
wherein = "default:dirt_with_grass",
|
||||
biomes = {"Grassland"},
|
||||
clust_scarcity = 18*18*18,
|
||||
clust_scarcity = 26*26*26,
|
||||
clust_num_ores = 1,
|
||||
clust_size = 1,
|
||||
y_min = 20,
|
||||
y_max = 31000,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_ore( -- Pools
|
||||
{
|
||||
@ -812,12 +774,12 @@ minetest.register_ore( -- Pools
|
||||
ore = "default:water_source",
|
||||
wherein = "default:dirt_with_grass",
|
||||
biomes = {"Wilderness"},
|
||||
clust_scarcity = 30*30*30,
|
||||
clust_scarcity = 32*32*32,
|
||||
clust_num_ores = 20,
|
||||
clust_size = 6,
|
||||
y_min = 10,
|
||||
y_max = 40,
|
||||
})
|
||||
y_max = 30,
|
||||
})
|
||||
|
||||
minetest.register_ore( -- Swamp
|
||||
{
|
||||
@ -825,12 +787,12 @@ minetest.register_ore( -- Swamp
|
||||
ore = "default:swamp_water_source",
|
||||
wherein = {"default:dirt_with_swamp_grass", "default:swamp_dirt"},
|
||||
biomes = {"Swamp"},
|
||||
clust_scarcity = 10*10*10,
|
||||
clust_scarcity = 14*14*14,
|
||||
clust_num_ores = 10,
|
||||
clust_size = 4,
|
||||
y_min = -31000,
|
||||
y_max = 31000,
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_ore( -- Marsh
|
||||
{
|
||||
@ -838,11 +800,11 @@ minetest.register_ore( -- Marsh
|
||||
ore = "default:swamp_water_source",
|
||||
wherein = {"default:dirt_with_grass", "default:dirt"},
|
||||
biomes = {"Marsh"},
|
||||
clust_scarcity = 6*6*6,
|
||||
clust_scarcity = 8*8*8,
|
||||
clust_num_ores = 10,
|
||||
clust_size = 6,
|
||||
y_min = -31000,
|
||||
y_max = 31000,
|
||||
})
|
||||
})
|
||||
|
||||
default.log("mapgen", "loaded")
|
||||
default.log("mapgen", "loaded")
|
||||
|
@ -1,42 +1,16 @@
|
||||
|
||||
--
|
||||
-- Node definitions
|
||||
--wate
|
||||
--
|
||||
|
||||
minetest.register_node(
|
||||
"default:stone",
|
||||
{
|
||||
description = "Stone",
|
||||
tiles ={"default_stone.png"},
|
||||
groups = {cracky=2, stone=1},
|
||||
drop = "default:cobble",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"default:cobble",
|
||||
{
|
||||
description = "Cobble",
|
||||
tiles ={"default_cobbles.png"},
|
||||
stack_max = 240,
|
||||
groups = {cracky=3, stone=1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"default:reinforced_cobble",
|
||||
{
|
||||
description = "Reinforced Cobble",
|
||||
tiles ={"default_reinforced_cobbles.png"},
|
||||
groups = {cracky=1, stone=1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
-- Ores
|
||||
|
||||
minetest.register_node(
|
||||
"default:stone_with_coal",
|
||||
{
|
||||
description = "Stone with Coal",
|
||||
tiles ={"default_stone.png^default_mineral_coal.png"},
|
||||
groups = {cracky = 1, stone = 1, not_in_craftingguide = 1},
|
||||
tiles = {"default_stone.png^default_mineral_coal.png"},
|
||||
groups = {cracky = 2, stone = 1, not_in_craftingguide = 1},
|
||||
drop = "default:lump_coal",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
@ -45,37 +19,99 @@ minetest.register_node(
|
||||
"default:stone_with_iron",
|
||||
{
|
||||
description = "Stone with Iron",
|
||||
tiles ={"default_stone.png^default_mineral_iron.png"},
|
||||
groups = {cracky=1, stone=1, not_in_craftingguide = 1},
|
||||
tiles = {"default_stone.png^default_mineral_iron.png"},
|
||||
groups = {cracky = 2, stone = 1, not_in_craftingguide = 1},
|
||||
drop = "default:lump_iron",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
-- Stonelike
|
||||
|
||||
minetest.register_node(
|
||||
"default:stone",
|
||||
{
|
||||
description = "Stone",
|
||||
tiles = {"default_stone.png"},
|
||||
groups = {cracky = 2, stone = 1},
|
||||
drop = "default:cobble",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"default:cobble",
|
||||
{
|
||||
description = "Cobble",
|
||||
tiles = {"default_cobbles.png"},
|
||||
stack_max = 240,
|
||||
groups = {cracky = 3, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"default:reinforced_cobble",
|
||||
{
|
||||
description = "Reinforced Cobble",
|
||||
tiles = {"default_reinforced_cobbles.png"},
|
||||
groups = {cracky = 1, stone = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
-- Material blocks
|
||||
|
||||
minetest.register_node(
|
||||
"default:block_coal",
|
||||
{
|
||||
description = "Coal Block",
|
||||
tiles = {"default_block_coal.png"},
|
||||
groups = {choppy = 3, oddly_breakable_by_hand = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"default:block_wrought_iron",
|
||||
{
|
||||
description = "Wrought Iron Block",
|
||||
tiles = {"default_block_wrought_iron.png"},
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"default:block_steel",
|
||||
{
|
||||
description = "Steel Block",
|
||||
tiles ={"default_block_steel.png"},
|
||||
groups = {cracky=1},
|
||||
tiles = {"default_block_steel.png"},
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"default:block_coal",
|
||||
"default:block_carbon_steel",
|
||||
{
|
||||
description = "Coal Block",
|
||||
tiles ={"default_block_coal.png"},
|
||||
groups = {choppy=3, oddly_breakable_by_hand = 3},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
description = "Carbon Steel Block",
|
||||
tiles = {"default_block_carbon_steel.png"},
|
||||
groups = {cracky = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"default:block_bronze",
|
||||
{
|
||||
description = "Bronze Block",
|
||||
tiles = {"default_block_bronze.png"},
|
||||
groups = {cracky = 1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
-- Soil
|
||||
|
||||
minetest.register_node(
|
||||
"default:dirt",
|
||||
{
|
||||
description = "Dirt",
|
||||
tiles ={"default_dirt.png"},
|
||||
tiles = {"default_dirt.png"},
|
||||
stack_max = 240,
|
||||
groups = {crumbly=3, soil=1, plantable_soil = 1, fall_damage_add_percent=-5},
|
||||
groups = {crumbly = 3, soil = 1, plantable_soil = 1, fall_damage_add_percent = -5},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
})
|
||||
|
||||
@ -83,9 +119,9 @@ minetest.register_node(
|
||||
"default:dry_dirt",
|
||||
{
|
||||
description = "Dry Dirt",
|
||||
tiles ={"default_dirt.png"},
|
||||
tiles = {"default_dirt.png"},
|
||||
stack_max = 240,
|
||||
groups = {crumbly=3, soil=1, plantable_sandy = 1, fall_damage_add_percent=-10},
|
||||
groups = {crumbly = 3, soil = 1, plantable_sandy = 1, fall_damage_add_percent = -10},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
})
|
||||
|
||||
@ -93,9 +129,9 @@ minetest.register_node(
|
||||
"default:swamp_dirt",
|
||||
{
|
||||
description = "Swamp Dirt",
|
||||
tiles ={"default_swamp_dirt.png"},
|
||||
tiles = {"default_swamp_dirt.png"},
|
||||
stack_max = 240,
|
||||
groups = {crumbly=3, soil=1, plantable_soil = 1, fall_damage_add_percent=-10},
|
||||
groups = {crumbly = 3, soil = 1, plantable_soil = 1, fall_damage_add_percent = -10},
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
})
|
||||
|
||||
@ -103,13 +139,17 @@ minetest.register_node(
|
||||
"default:fertilized_dirt",
|
||||
{
|
||||
description = "Fertilized Dirt",
|
||||
tiles ={"default_dirt.png^default_fertilizer.png", "default_dirt.png", "default_dirt.png"},
|
||||
tiles = {
|
||||
"default_dirt.png^default_fertilizer.png",
|
||||
"default_dirt.png",
|
||||
"default_dirt.png"
|
||||
},
|
||||
groups = {
|
||||
crumbly=3,
|
||||
soil=1,
|
||||
crumbly = 3,
|
||||
soil = 1,
|
||||
plantable_soil = 1,
|
||||
plantable_fertilizer = 1,
|
||||
fall_damage_add_percent=-5,
|
||||
fall_damage_add_percent = -5,
|
||||
not_in_craftingguide = 1,
|
||||
},
|
||||
drop = "default:dirt",
|
||||
@ -120,8 +160,13 @@ minetest.register_node(
|
||||
"default:dirt_with_dry_grass",
|
||||
{
|
||||
description = "Dirt with Dry Grass",
|
||||
tiles ={"default_dry_grass.png", "default_dirt.png", "default_dirt.png^default_dry_grass_side.png"},
|
||||
groups = {crumbly=3, soil=1, plantable_sandy = 1, fall_damage_add_percent=-5, not_in_craftingguide = 1},
|
||||
tiles = {
|
||||
"default_dry_grass.png",
|
||||
"default_dirt.png",
|
||||
"default_dirt.png^default_dry_grass_side.png"
|
||||
},
|
||||
groups = {crumbly = 3, soil = 1, plantable_sandy = 1,
|
||||
fall_damage_add_percent = -5, not_in_craftingguide = 1},
|
||||
drop = {
|
||||
max_items = 3,
|
||||
items = {
|
||||
@ -133,7 +178,7 @@ minetest.register_node(
|
||||
},
|
||||
sounds = default.node_sound_dirt_defaults(
|
||||
{
|
||||
footstep = {name="default_soft_footstep", gain=0.3},
|
||||
footstep = {name = "default_soft_footstep", gain = 0.3},
|
||||
}),
|
||||
})
|
||||
|
||||
@ -141,8 +186,13 @@ minetest.register_node(
|
||||
"default:dirt_with_swamp_grass",
|
||||
{
|
||||
description = "Dirt with Swamp Grass",
|
||||
tiles ={"default_swamp_grass.png", "default_swamp_dirt.png", "default_swamp_dirt.png^default_swamp_grass_side.png"},
|
||||
groups = {crumbly=3, soil=1, plantable_soil = 1, fall_damage_add_percent=-5, not_in_craftingguide = 1},
|
||||
tiles = {
|
||||
"default_swamp_grass.png",
|
||||
"default_swamp_dirt.png",
|
||||
"default_swamp_dirt.png^default_swamp_grass_side.png"
|
||||
},
|
||||
groups = {crumbly = 3, soil = 1, plantable_soil = 1,
|
||||
fall_damage_add_percent = -5, not_in_craftingguide = 1},
|
||||
drop = {
|
||||
max_items = 3,
|
||||
items = {
|
||||
@ -154,7 +204,7 @@ minetest.register_node(
|
||||
},
|
||||
sounds = default.node_sound_dirt_defaults(
|
||||
{
|
||||
footstep = {name="default_soft_footstep", gain=0.5},
|
||||
footstep = {name = "default_soft_footstep", gain = 0.5},
|
||||
}),
|
||||
})
|
||||
|
||||
@ -162,8 +212,13 @@ minetest.register_node(
|
||||
"default:dirt_with_grass",
|
||||
{
|
||||
description = "Dirt with Grass",
|
||||
tiles ={"default_grass.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
|
||||
groups = {crumbly=3, soil=1, plantable_soil = 1, fall_damage_add_percent=-5, not_in_craftingguide = 1},
|
||||
tiles = {
|
||||
"default_grass.png",
|
||||
"default_dirt.png",
|
||||
"default_dirt.png^default_grass_side.png"
|
||||
},
|
||||
groups = {crumbly = 3, soil = 1, plantable_soil = 1,
|
||||
fall_damage_add_percent = -5, not_in_craftingguide = 1},
|
||||
drop = {
|
||||
max_items = 3,
|
||||
items = {
|
||||
@ -176,7 +231,7 @@ minetest.register_node(
|
||||
},
|
||||
sounds = default.node_sound_dirt_defaults(
|
||||
{
|
||||
footstep = {name="default_soft_footstep", gain=0.4},
|
||||
footstep = {name = "default_soft_footstep", gain = 0.4},
|
||||
}),
|
||||
})
|
||||
|
||||
@ -184,8 +239,8 @@ minetest.register_node(
|
||||
"default:dirt_with_grass_footsteps",
|
||||
{
|
||||
description = "Dirt with Grass Footsteps",
|
||||
tiles ={"default_grass_footstep.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
|
||||
groups = {crumbly=3, soil=1, plantable_soil = 1, fall_damage_add_percent=-5, not_in_craftingguide = 1},
|
||||
tiles = {"default_grass_footstep.png", "default_dirt.png", "default_dirt.png^default_grass_side.png"},
|
||||
groups = {crumbly = 3, soil = 1, plantable_soil = 1, fall_damage_add_percent = -5, not_in_craftingguide = 1},
|
||||
drop = {
|
||||
max_items = 3,
|
||||
items = {
|
||||
@ -198,7 +253,7 @@ minetest.register_node(
|
||||
},
|
||||
sounds = default.node_sound_dirt_defaults(
|
||||
{
|
||||
footstep = {name="default_soft_footstep", gain=0.4},
|
||||
footstep = {name = "default_soft_footstep", gain = 0.4},
|
||||
}),
|
||||
})
|
||||
|
||||
@ -212,8 +267,8 @@ minetest.register_node(
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5-2/16, 0.5}
|
||||
},
|
||||
tiles ={"default_dirt.png"},
|
||||
groups = {crumbly=3, fall_damage_add_percent=-10},
|
||||
tiles = {"default_dirt.png"},
|
||||
groups = {crumbly = 3, fall_damage_add_percent = -10},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
})
|
||||
@ -228,8 +283,8 @@ minetest.register_node(
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5 - (2/16), -0.5, 0.5, -2/16, 0.5}
|
||||
},
|
||||
tiles ={"default_dirt.png"},
|
||||
groups = {crumbly=3, fall_damage_add_percent=-10},
|
||||
tiles = {"default_dirt.png"},
|
||||
groups = {crumbly = 3, fall_damage_add_percent = -10},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
})
|
||||
@ -245,8 +300,8 @@ minetest.register_node(
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5-2/16, 0.5}
|
||||
},
|
||||
tiles ={"default_dirt.png"},
|
||||
groups = {crumbly=3, fall_damage_add_percent=-10},
|
||||
tiles = {"default_dirt.png"},
|
||||
groups = {crumbly = 3, fall_damage_add_percent = -10},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_dirt_defaults(),
|
||||
})
|
||||
@ -255,7 +310,7 @@ minetest.register_node(
|
||||
"default:brick",
|
||||
{
|
||||
description = "Brick",
|
||||
tiles ={"default_brick.png"},
|
||||
tiles = {"default_brick.png"},
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 2},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
@ -265,7 +320,7 @@ minetest.register_node(
|
||||
"default:sand",
|
||||
{
|
||||
description = "Sand",
|
||||
tiles ={"default_sand.png"},
|
||||
tiles = {"default_sand.png"},
|
||||
groups = {crumbly = 3, falling_node = 1, sand = 1, plantable_sandy = 1, fall_damage_add_percent = -10},
|
||||
sounds = default.node_sound_sand_defaults(),
|
||||
})
|
||||
@ -293,7 +348,7 @@ minetest.register_node(
|
||||
"default:sandstone",
|
||||
{
|
||||
description = "Sandstone",
|
||||
tiles ={"default_sandstone.png"},
|
||||
tiles = {"default_sandstone.png"},
|
||||
groups = {crumbly = 2, cracky = 3},
|
||||
drop = "default:sand 2",
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
@ -303,7 +358,7 @@ minetest.register_node(
|
||||
"default:compressed_sandstone",
|
||||
{
|
||||
description = "Compressed Sandstone",
|
||||
tiles ={"default_compressed_sandstone_top.png", "default_compressed_sandstone_top.png", "default_compressed_sandstone.png"},
|
||||
tiles = {"default_compressed_sandstone_top.png", "default_compressed_sandstone_top.png", "default_compressed_sandstone.png"},
|
||||
groups = {cracky = 2},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
@ -313,11 +368,11 @@ minetest.register_node(
|
||||
"default:gravel",
|
||||
{
|
||||
description = "Gravel",
|
||||
tiles ={"default_gravel.png"},
|
||||
tiles = {"default_gravel.png"},
|
||||
groups = {crumbly = 2, falling_node = 1},
|
||||
sounds = default.node_sound_dirt_defaults(
|
||||
{
|
||||
footstep = {name="default_crunch_footstep", gain=0.45},
|
||||
footstep = {name = "default_crunch_footstep", gain = 0.45},
|
||||
}),
|
||||
})
|
||||
|
||||
@ -327,7 +382,7 @@ minetest.register_node(
|
||||
description = "Oak Sapling",
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles ={"default_sapling_oak.png"},
|
||||
tiles = {"default_sapling_oak.png"},
|
||||
inventory_image = "default_sapling_oak_inventory.png",
|
||||
wield_image = "default_sapling_oak_inventory.png",
|
||||
paramtype = "light",
|
||||
@ -345,7 +400,7 @@ minetest.register_node(
|
||||
{
|
||||
description = "Oak Tree",
|
||||
tiles = {"default_tree_oak_top.png", "default_tree_oak_top.png", "default_tree_oak.png"},
|
||||
groups = {choppy=1, tree=1, oddly_breakable_by_hand=1},
|
||||
groups = {choppy = 1, tree = 1, oddly_breakable_by_hand = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
@ -355,10 +410,10 @@ minetest.register_node(
|
||||
description = "Oak Leaves",
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.3,
|
||||
tiles ={"default_leaves_oak.png"},
|
||||
tiles = {"default_leaves_oak.png"},
|
||||
paramtype = "light",
|
||||
waving = 1,
|
||||
groups = {snappy=3, leafdecay=4, fall_damage_add_percent=-5, leaves = 1},
|
||||
groups = {snappy = 3, leafdecay = 4, fall_damage_add_percent = -5, leaves = 1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
@ -380,10 +435,10 @@ minetest.register_node( -- looks just like default oak leaves, except they decay
|
||||
description = "Oak Leaves(Huge)",
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.3,
|
||||
tiles ={"default_leaves_oak.png"},
|
||||
tiles = {"default_leaves_oak.png"},
|
||||
paramtype = "light",
|
||||
waving = 1,
|
||||
groups = {snappy=3, leafdecay=10, fall_damage_add_percent=-5, leaves = 1},
|
||||
groups = {snappy = 3, leafdecay = 10, fall_damage_add_percent = -5, leaves = 1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
@ -406,7 +461,7 @@ minetest.register_node(
|
||||
description = "Birch Sapling",
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles ={"default_sapling_birch.png"},
|
||||
tiles = {"default_sapling_birch.png"},
|
||||
inventory_image = "default_sapling_birch_inventory.png",
|
||||
wield_image = "default_sapling_birch_inventory.png",
|
||||
paramtype = "light",
|
||||
@ -415,7 +470,7 @@ minetest.register_node(
|
||||
type = "fixed",
|
||||
fixed = {-0.4, -0.5, -0.4, 0.4, 0.4, 0.4},
|
||||
},
|
||||
groups = {snappy=2, dig_immediate=2, attached_node=1, sapling = 1},
|
||||
groups = {snappy = 2, dig_immediate = 2, attached_node = 1, sapling = 1},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_defaults(),
|
||||
})
|
||||
@ -425,7 +480,7 @@ minetest.register_node(
|
||||
{
|
||||
description = "Birch Tree",
|
||||
tiles = {"default_tree_birch_top.png", "default_tree_birch_top.png", "default_tree_birch.png"},
|
||||
groups = {choppy=2, tree=1, oddly_breakable_by_hand=1},
|
||||
groups = {choppy = 2, tree = 1, oddly_breakable_by_hand = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
@ -435,10 +490,10 @@ minetest.register_node(
|
||||
description = "Birch Leaves",
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.3,
|
||||
tiles ={"default_leaves_birch.png"},
|
||||
tiles = {"default_leaves_birch.png"},
|
||||
paramtype = "light",
|
||||
waving = 1,
|
||||
groups = {snappy=3, leafdecay=6, fall_damage_add_percent=-5, leaves = 1},
|
||||
groups = {snappy = 3, leafdecay = 6, fall_damage_add_percent = -5, leaves = 1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
@ -460,7 +515,7 @@ minetest.register_node(
|
||||
description = "Sapling",
|
||||
drawtype = "plantlike",
|
||||
visual_scale = 1.0,
|
||||
tiles ={"default_sapling.png"},
|
||||
tiles = {"default_sapling.png"},
|
||||
inventory_image = "default_sapling_inventory.png",
|
||||
wield_image = "default_sapling_inventory.png",
|
||||
paramtype = "light",
|
||||
@ -469,7 +524,7 @@ minetest.register_node(
|
||||
type = "fixed",
|
||||
fixed = {-0.4, -0.5, -0.4, 0.4, 0.4, 0.4},
|
||||
},
|
||||
groups = {snappy=2, dig_immediate=2, attached_node=1, sapling = 1},
|
||||
groups = {snappy = 2, dig_immediate = 2, attached_node = 1, sapling = 1},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_defaults(),
|
||||
})
|
||||
@ -479,7 +534,7 @@ minetest.register_node(
|
||||
{
|
||||
description = "Tree",
|
||||
tiles = {"default_tree_top.png", "default_tree_top.png", "default_tree.png"},
|
||||
groups = {choppy=2,tree=1,oddly_breakable_by_hand=1},
|
||||
groups = {choppy = 2,tree = 1,oddly_breakable_by_hand = 1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
@ -489,10 +544,10 @@ minetest.register_node(
|
||||
description = "Leaves",
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.3,
|
||||
tiles ={"default_leaves.png"},
|
||||
tiles = {"default_leaves.png"},
|
||||
paramtype = "light",
|
||||
waving = 1,
|
||||
groups = {snappy=3, leafdecay=3, fall_damage_add_percent=-10, leaves = 1},
|
||||
groups = {snappy = 3, leafdecay = 3, fall_damage_add_percent = -10, leaves = 1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
@ -514,10 +569,10 @@ minetest.register_node(
|
||||
description = "Dry Leaves",
|
||||
drawtype = "allfaces_optional",
|
||||
visual_scale = 1.3,
|
||||
tiles ={"default_dry_leaves.png"},
|
||||
tiles = {"default_dry_leaves.png"},
|
||||
paramtype = "light",
|
||||
waving = 1,
|
||||
groups = {snappy=3, leafdecay=3, fall_damage_add_percent=-20, leaves = 1},
|
||||
groups = {snappy = 3, leafdecay = 3, fall_damage_add_percent = -20, leaves = 1},
|
||||
drop = {
|
||||
max_items = 1,
|
||||
items = {
|
||||
@ -553,9 +608,9 @@ minetest.register_node(
|
||||
{-0.5+(1/8), -0.5, -0.5+(1/8), 0.5-(1/8), 0.5, 0.5-(1/8)},
|
||||
},
|
||||
},
|
||||
tiles ={"default_cactus_top.png", "default_cactus_top.png", "default_cactus_sides.png"},
|
||||
tiles = {"default_cactus_top.png", "default_cactus_top.png", "default_cactus_sides.png"},
|
||||
-- damage_per_second = 1,
|
||||
groups = {snappy=2, choppy=2, fall_damage_add_percent=20},
|
||||
groups = {snappy = 2, choppy = 2, fall_damage_add_percent = 20},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
after_dig_node = function(pos, node, metadata, digger)
|
||||
default.dig_up(pos, node, digger)
|
||||
@ -568,7 +623,7 @@ minetest.register_node(
|
||||
{
|
||||
description = "Rope",
|
||||
drawtype = "nodebox",
|
||||
tiles ={"default_rope.png"},
|
||||
tiles = {"default_rope.png"},
|
||||
inventory_image = "default_rope_inventory.png",
|
||||
wield_image = "default_rope_inventory.png",
|
||||
paramtype = "light",
|
||||
@ -579,7 +634,7 @@ minetest.register_node(
|
||||
type = "fixed",
|
||||
fixed = {-1/16, -0.5, -1/16, 1/16, 0.5, 1/16},
|
||||
},
|
||||
groups = {snappy=3},
|
||||
groups = {snappy = 3},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_dig_node = function(pos, node, metadata, digger)
|
||||
@ -592,7 +647,7 @@ minetest.register_node(
|
||||
{
|
||||
description = "Papyrus",
|
||||
drawtype = "nodebox",
|
||||
tiles ={"default_papyrus.png"},
|
||||
tiles = {"default_papyrus.png"},
|
||||
inventory_image = "default_papyrus_inventory.png",
|
||||
wield_image = "default_papyrus_inventory.png",
|
||||
paramtype = "light",
|
||||
@ -612,7 +667,7 @@ minetest.register_node(
|
||||
{-1/16, -0.5, -1/16, 1/16, 0.5, 1/16},
|
||||
}
|
||||
},
|
||||
groups = {snappy=3},
|
||||
groups = {snappy = 3},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_dig_node = function(pos, node, metadata, digger)
|
||||
default.dig_up(pos, node, digger)
|
||||
@ -624,7 +679,7 @@ minetest.register_node(
|
||||
{
|
||||
description = "Papyrus",
|
||||
drawtype = "nodebox",
|
||||
tiles ={"default_papyrus.png"},
|
||||
tiles = {"default_papyrus.png"},
|
||||
inventory_image = "default_papyrus_inventory.png",
|
||||
wield_image = "default_papyrus_inventory.png",
|
||||
paramtype = "light",
|
||||
@ -644,7 +699,7 @@ minetest.register_node(
|
||||
{-1/16, -0.5, -1/16, 1/16, 0.5, 1/16},
|
||||
}
|
||||
},
|
||||
groups = {snappy=3},
|
||||
groups = {snappy = 3},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
after_dig_node = function(pos, node, metadata, digger)
|
||||
default.dig_up(pos, node, digger)
|
||||
@ -657,7 +712,7 @@ minetest.register_node(
|
||||
description = "Bookshelf",
|
||||
tiles = {"default_wood.png", "default_wood.png", "default_bookshelf.png"},
|
||||
paramtype2 = "facedir",
|
||||
groups = {snappy=2,choppy=3,oddly_breakable_by_hand=2},
|
||||
groups = {snappy = 2,choppy = 3,oddly_breakable_by_hand = 2},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
on_construct = function(pos)
|
||||
@ -688,10 +743,10 @@ minetest.register_node(
|
||||
{
|
||||
description = "Glass",
|
||||
drawtype = "glasslike_framed_optional",
|
||||
tiles ={"default_glass_frame.png", "default_glass.png"},
|
||||
tiles = {"default_glass_frame.png", "default_glass.png"},
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
groups = {snappy=2,cracky=3,oddly_breakable_by_hand=2},
|
||||
groups = {snappy = 2,cracky = 3,oddly_breakable_by_hand = 2},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
@ -701,7 +756,7 @@ minetest.register_node(
|
||||
{
|
||||
description = "Wooden Fence",
|
||||
drawtype = "fencelike",
|
||||
tiles ={"default_wood.png^default_fence_overlay.png"},
|
||||
tiles = {"default_wood.png^default_fence_overlay.png"},
|
||||
inventory_image = "default_fence.png",
|
||||
wield_image = "default_fence.png",
|
||||
paramtype = "light",
|
||||
@ -709,7 +764,7 @@ minetest.register_node(
|
||||
type = "fixed",
|
||||
fixed = {-0.4, -0.5, -0.4, 0.4, 0.75, 0.4},
|
||||
},
|
||||
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2},
|
||||
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2, fence = 1},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
after_dig_node = function(pos, node, metadata, digger)
|
||||
@ -722,7 +777,7 @@ minetest.register_node(
|
||||
{
|
||||
description = "Oak Fence",
|
||||
drawtype = "fencelike",
|
||||
tiles ={"default_wood_oak.png^default_fence_overlay.png"},
|
||||
tiles = {"default_wood_oak.png^default_fence_overlay.png"},
|
||||
inventory_image = "default_fence_oak.png",
|
||||
wield_image = "default_fence_oak.png",
|
||||
paramtype = "light",
|
||||
@ -730,7 +785,7 @@ minetest.register_node(
|
||||
type = "fixed",
|
||||
fixed = {-0.4, -0.5, -0.4, 0.4, 0.75, 0.4},
|
||||
},
|
||||
groups = {snappy = 1, choppy = 1, oddly_breakable_by_hand = 1},
|
||||
groups = {snappy = 1, choppy = 1, oddly_breakable_by_hand = 1, fence = 1},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
after_dig_node = function(pos, node, metadata, digger)
|
||||
@ -743,7 +798,7 @@ minetest.register_node(
|
||||
{
|
||||
description = "Birch Fence",
|
||||
drawtype = "fencelike",
|
||||
tiles ={"default_wood_birch.png^default_fence_overlay.png"},
|
||||
tiles = {"default_wood_birch.png^default_fence_overlay.png"},
|
||||
inventory_image = "default_fence_birch.png",
|
||||
wield_image = "default_fence_birch.png",
|
||||
paramtype = "light",
|
||||
@ -751,7 +806,7 @@ minetest.register_node(
|
||||
type = "fixed",
|
||||
fixed = {-0.4, -0.5, -0.4, 0.4, 0.75, 0.4},
|
||||
},
|
||||
groups = {snappy = 1, choppy = 1, oddly_breakable_by_hand = 1},
|
||||
groups = {snappy = 1, choppy = 1, oddly_breakable_by_hand = 1, fence = 1},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
after_dig_node = function(pos, node, metadata, digger)
|
||||
@ -764,7 +819,7 @@ minetest.register_node(
|
||||
{
|
||||
description = "Ladder",
|
||||
drawtype = "nodebox",
|
||||
tiles ={"default_ladder_sides.png", "default_ladder_sides.png", "default_ladder_sides.png", "default_ladder_sides.png", "default_ladder_sides.png", "default_ladder.png"},
|
||||
tiles = {"default_ladder_sides.png", "default_ladder_sides.png", "default_ladder_sides.png", "default_ladder_sides.png", "default_ladder_sides.png", "default_ladder.png"},
|
||||
inventory_image = "default_ladder_inventory.png",
|
||||
wield_image = "default_ladder_inventory.png",
|
||||
paramtype = "light",
|
||||
@ -795,7 +850,7 @@ minetest.register_node(
|
||||
"default:planks",
|
||||
{
|
||||
description = "Planks",
|
||||
tiles ={"default_wood.png"},
|
||||
tiles = {"default_wood.png"},
|
||||
groups = {planks = 1, snappy = 3, choppy = 3, oddly_breakable_by_hand = 3},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
@ -805,7 +860,7 @@ minetest.register_node(
|
||||
"default:planks_oak",
|
||||
{
|
||||
description = "Oak Planks",
|
||||
tiles ={"default_wood_oak.png"},
|
||||
tiles = {"default_wood_oak.png"},
|
||||
groups = {planks = 1, snappy = 2, choppy = 2, oddly_breakable_by_hand = 3},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
@ -815,7 +870,7 @@ minetest.register_node(
|
||||
"default:planks_birch",
|
||||
{
|
||||
description = "Birch Planks",
|
||||
tiles ={"default_wood_birch.png"},
|
||||
tiles = {"default_wood_birch.png"},
|
||||
groups = {planks = 1, snappy = 2, choppy = 2, oddly_breakable_by_hand = 2},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
@ -825,7 +880,7 @@ minetest.register_node(
|
||||
"default:frame",
|
||||
{
|
||||
description = "Frame",
|
||||
tiles ={"default_frame.png"},
|
||||
tiles = {"default_frame.png"},
|
||||
groups = {wood = 1, choppy = 2, oddly_breakable_by_hand = 1},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
@ -835,7 +890,7 @@ minetest.register_node(
|
||||
"default:reinforced_frame",
|
||||
{
|
||||
description = "Reinforced Frame",
|
||||
tiles ={"default_reinforced_frame.png"},
|
||||
tiles = {"default_reinforced_frame.png"},
|
||||
groups = {wood = 1, choppy = 1},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
@ -846,20 +901,20 @@ minetest.register_node(
|
||||
{
|
||||
description = "Water (flowing)",
|
||||
drawtype = "flowingliquid",
|
||||
tiles ={"default_water.png"},
|
||||
tiles = {"default_water.png"},
|
||||
special_tiles = {
|
||||
{
|
||||
image = "default_water_animated.png",
|
||||
backface_culling=false,
|
||||
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.8}
|
||||
backface_culling = false,
|
||||
animation = {type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.8}
|
||||
},
|
||||
{
|
||||
image = "default_water_animated.png",
|
||||
backface_culling=false,
|
||||
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.8}
|
||||
backface_culling = false,
|
||||
animation = {type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.8}
|
||||
},
|
||||
},
|
||||
drop= "",
|
||||
drop = "",
|
||||
alpha = default.WATER_ALPHA,
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
@ -871,8 +926,8 @@ minetest.register_node(
|
||||
liquid_alternative_flowing = "default:water_flowing",
|
||||
liquid_alternative_source = "default:water_source",
|
||||
liquid_viscosity = default.WATER_VISC,
|
||||
post_effect_color = {a=90, r=40, g=40, b=100},
|
||||
groups = {water=1, flowing_water = 1, liquid=1},
|
||||
post_effect_color = {a = 90, r = 40, g = 40, b = 100},
|
||||
groups = {water = 1, flowing_water = 1, liquid = 1},
|
||||
is_ground_content = false,
|
||||
})
|
||||
|
||||
@ -881,14 +936,14 @@ minetest.register_node(
|
||||
{
|
||||
description = "Water",
|
||||
drawtype = "liquid",
|
||||
tiles ={"default_water.png"},
|
||||
tiles = {"default_water.png"},
|
||||
special_tiles = {
|
||||
{
|
||||
image = "default_water.png",
|
||||
backface_culling=false,
|
||||
backface_culling = false,
|
||||
},
|
||||
},
|
||||
drop= "",
|
||||
drop = "",
|
||||
alpha = default.WATER_ALPHA,
|
||||
paramtype = "light",
|
||||
walkable = false,
|
||||
@ -910,17 +965,17 @@ minetest.register_node(
|
||||
{
|
||||
description = "River Water (flowing)",
|
||||
drawtype = "flowingliquid",
|
||||
tiles ={"default_water.png"},
|
||||
tiles = {"default_water.png"},
|
||||
special_tiles = {
|
||||
{
|
||||
image = "default_water_animated.png",
|
||||
backface_culling=false,
|
||||
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.8}
|
||||
backface_culling = false,
|
||||
animation = {type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.8}
|
||||
},
|
||||
{
|
||||
image = "default_water_animated.png",
|
||||
backface_culling=false,
|
||||
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.8}
|
||||
backface_culling = false,
|
||||
animation = {type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 0.8}
|
||||
},
|
||||
},
|
||||
drop= "",
|
||||
@ -947,11 +1002,11 @@ minetest.register_node(
|
||||
{
|
||||
description = "River Water",
|
||||
drawtype = "liquid",
|
||||
tiles ={"default_water.png"},
|
||||
tiles = {"default_water.png"},
|
||||
special_tiles = {
|
||||
{
|
||||
image = "default_water.png",
|
||||
backface_culling=false,
|
||||
backface_culling = false,
|
||||
},
|
||||
},
|
||||
drop= "",
|
||||
@ -978,17 +1033,17 @@ minetest.register_node(
|
||||
{
|
||||
description = "Swamp Water (flowing)",
|
||||
drawtype = "flowingliquid",
|
||||
tiles ={"default_swamp_water.png"},
|
||||
tiles = {"default_swamp_water.png"},
|
||||
special_tiles = {
|
||||
{
|
||||
image = "default_swamp_water_animated.png",
|
||||
backface_culling=false,
|
||||
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 1.8}
|
||||
backface_culling = false,
|
||||
animation = {type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 1.8}
|
||||
},
|
||||
{
|
||||
image = "default_swamp_water_animated.png",
|
||||
backface_culling=false,
|
||||
animation={type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 1.8}
|
||||
backface_culling = false,
|
||||
animation = {type = "vertical_frames", aspect_w= 16, aspect_h = 16, length = 1.8}
|
||||
},
|
||||
},
|
||||
drop= "",
|
||||
@ -1015,11 +1070,11 @@ minetest.register_node(
|
||||
{
|
||||
description = "Swamp Water",
|
||||
drawtype = "liquid",
|
||||
tiles ={"default_swamp_water.png"},
|
||||
tiles = {"default_swamp_water.png"},
|
||||
special_tiles = {
|
||||
{
|
||||
image = "default_swamp_water.png",
|
||||
backface_culling=false,
|
||||
backface_culling = false,
|
||||
},
|
||||
},
|
||||
drop= "",
|
||||
@ -1046,7 +1101,7 @@ minetest.register_node(
|
||||
{
|
||||
description = "Dead Torch",
|
||||
drawtype = "nodebox",
|
||||
tiles ={
|
||||
tiles = {
|
||||
{
|
||||
name = "default_torch_3d_ends.png",
|
||||
animation = {
|
||||
@ -1087,7 +1142,7 @@ minetest.register_node(
|
||||
wall_bottom = {-2/16, -0.5, -2/16, 2/16, 0, 2/16},
|
||||
wall_side = {-0.5, -8/16, -0.1, -0.5+4/16, 0, 0.1},
|
||||
},
|
||||
groups = {choppy=2, dig_immediate=3, attached_node=1},
|
||||
groups = {choppy = 2, dig_immediate = 3, attached_node = 1},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_defaults(),
|
||||
})
|
||||
@ -1097,7 +1152,7 @@ minetest.register_node(
|
||||
{
|
||||
description = "Weak Torch",
|
||||
drawtype = "nodebox",
|
||||
tiles ={
|
||||
tiles = {
|
||||
{
|
||||
name = "default_torch_3d_ends_animated.png",
|
||||
animation = {
|
||||
@ -1139,7 +1194,7 @@ minetest.register_node(
|
||||
wall_bottom = {-2/16, -0.5, -2/16, 2/16, 0, 2/16},
|
||||
wall_side = {-0.5, -8/16, -0.1, -0.5+4/16, 0, 0.1},
|
||||
},
|
||||
groups = {choppy=2, dig_immediate=3, attached_node=1},
|
||||
groups = {choppy = 2, dig_immediate = 3, attached_node = 1},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_defaults(),
|
||||
})
|
||||
@ -1149,7 +1204,7 @@ minetest.register_node(
|
||||
{
|
||||
description = "Torch",
|
||||
drawtype = "nodebox",
|
||||
tiles ={
|
||||
tiles = {
|
||||
{
|
||||
name = "default_torch_3d_ends_animated.png",
|
||||
animation = {
|
||||
@ -1191,7 +1246,7 @@ minetest.register_node(
|
||||
wall_bottom = {-2/16, -0.5, -2/16, 2/16, 0, 2/16},
|
||||
wall_side = {-0.5, -8/16, -0.1, -0.5+4/16, 0, 0.1},
|
||||
},
|
||||
groups = {choppy=2, dig_immediate=3, attached_node=1},
|
||||
groups = {choppy = 2, dig_immediate = 3, attached_node = 1},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_defaults(),
|
||||
})
|
||||
@ -1214,7 +1269,7 @@ minetest.register_node(
|
||||
wall_bottom = {-0.5+(1/16), -0.5, -0.5+(4/16), 0.5-(1/16), -0.5+(1/16), 0.5-(4/16)},
|
||||
wall_side = {-0.5, -0.5+(4/16), -0.5+(1/16), -0.5+(1/16), 0.5-(4/16), 0.5-(1/16)},
|
||||
},
|
||||
groups = {choppy=2,dig_immediate=2,attached_node=1},
|
||||
groups = {choppy = 2,dig_immediate = 2,attached_node = 1},
|
||||
is_ground_content = false,
|
||||
sounds = default.node_sound_defaults(),
|
||||
on_construct = function(pos)
|
||||
@ -1251,7 +1306,7 @@ minetest.register_node(
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
|
||||
},
|
||||
visual_scale = 1.15,
|
||||
tiles ={"default_fern.png"},
|
||||
tiles = {"default_fern.png"},
|
||||
inventory_image = "default_fern_inventory.png",
|
||||
wield_image = "default_fern_inventory.png",
|
||||
paramtype = "light",
|
||||
@ -1292,7 +1347,7 @@ minetest.register_node(
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
|
||||
},
|
||||
visual_scale = 1.15,
|
||||
tiles ={"default_swamp_grass_clump.png"},
|
||||
tiles = {"default_swamp_grass_clump.png"},
|
||||
inventory_image = "default_swamp_grass_clump_inventory.png",
|
||||
wield_image = "default_swamp_grass_clump_inventory.png",
|
||||
paramtype = "light",
|
||||
@ -1313,7 +1368,7 @@ minetest.register_node(
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
|
||||
},
|
||||
visual_scale = 1.15,
|
||||
tiles ={"default_dry_grass_clump.png"},
|
||||
tiles = {"default_dry_grass_clump.png"},
|
||||
inventory_image = "default_dry_grass_clump_inventory.png",
|
||||
wield_image = "default_dry_grass_clump_inventory.png",
|
||||
paramtype = "light",
|
||||
@ -1334,7 +1389,7 @@ minetest.register_node(
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, 0, 0.5}
|
||||
},
|
||||
visual_scale = 1.15,
|
||||
tiles ={"default_grass_clump.png"},
|
||||
tiles = {"default_grass_clump.png"},
|
||||
inventory_image = "default_grass_clump_inventory.png",
|
||||
wield_image = "default_grass_clump_inventory.png",
|
||||
paramtype = "light",
|
||||
@ -1355,7 +1410,7 @@ minetest.register_node(
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}
|
||||
},
|
||||
visual_scale = 1.15,
|
||||
tiles ={"default_grass_clump_tall.png"},
|
||||
tiles = {"default_grass_clump_tall.png"},
|
||||
inventory_image = "default_grass_clump_inventory.png",
|
||||
wield_image = "default_grass_clump_inventory.png",
|
||||
drop = "default:grass",
|
||||
@ -1376,7 +1431,7 @@ minetest.register_node(
|
||||
type = "fixed",
|
||||
fixed = {-6/16, -0.5, -6/16, 6/16, 0.5, 6/16}
|
||||
},
|
||||
tiles ={"default_thistle.png"},
|
||||
tiles = {"default_thistle.png"},
|
||||
inventory_image = "default_thistle_inventory.png",
|
||||
wield_image = "default_thistle_inventory.png",
|
||||
paramtype = "light",
|
||||
@ -1395,7 +1450,7 @@ minetest.register_node(
|
||||
description = "Apple",
|
||||
drawtype = "nodebox",
|
||||
visual_scale = 1.0,
|
||||
tiles ={"default_apple_top.png", "default_apple_bottom.png", "default_apple_side.png"},
|
||||
tiles = {"default_apple_top.png", "default_apple_bottom.png", "default_apple_side.png"},
|
||||
inventory_image = "default_apple.png",
|
||||
wield_image = "default_apple.png",
|
||||
paramtype = "light",
|
||||
@ -1418,7 +1473,7 @@ minetest.register_node(
|
||||
{
|
||||
description = "Clam",
|
||||
drawtype = "nodebox",
|
||||
tiles ={"default_clam.png"},
|
||||
tiles = {"default_clam.png"},
|
||||
inventory_image = "default_clam_inventory.png",
|
||||
wield_image = "default_clam_inventory.png",
|
||||
paramtype = "light",
|
||||
@ -1447,7 +1502,7 @@ minetest.register_node(
|
||||
"default:chest",
|
||||
{
|
||||
description = "Chest",
|
||||
tiles ={"default_chest_top.png", "default_chest_top.png", "default_chest_sides.png",
|
||||
tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_sides.png",
|
||||
"default_chest_sides.png", "default_chest_sides.png", "default_chest_front.png"},
|
||||
paramtype2 = "facedir",
|
||||
groups = {snappy = 2,choppy = 2,oddly_breakable_by_hand = 2},
|
||||
|
BIN
mods/default/textures/default_axe_bronze.png
Normal file
After Width: | Height: | Size: 476 B |
BIN
mods/default/textures/default_axe_bronze.xcf
Normal file
Before Width: | Height: | Size: 472 B After Width: | Height: | Size: 472 B |
BIN
mods/default/textures/default_axe_wrought_iron.png
Normal file
After Width: | Height: | Size: 459 B |
BIN
mods/default/textures/default_axe_wrought_iron.xcf
Normal file
BIN
mods/default/textures/default_block_bronze.png
Normal file
After Width: | Height: | Size: 289 B |
BIN
mods/default/textures/default_block_carbon_steel.png
Normal file
After Width: | Height: | Size: 285 B |
BIN
mods/default/textures/default_block_carbon_steel.xcf
Normal file
Before Width: | Height: | Size: 209 B After Width: | Height: | Size: 265 B |
BIN
mods/default/textures/default_block_wrought_iron.png
Normal file
After Width: | Height: | Size: 266 B |
BIN
mods/default/textures/default_block_wrought_iron.xcf
Normal file
Before Width: | Height: | Size: 452 B After Width: | Height: | Size: 465 B |
Before Width: | Height: | Size: 428 B |
BIN
mods/default/textures/default_ingot_bronze.png
Normal file
After Width: | Height: | Size: 469 B |
BIN
mods/default/textures/default_ingot_bronze.xcf
Normal file
Before Width: | Height: | Size: 459 B After Width: | Height: | Size: 459 B |
BIN
mods/default/textures/default_ingot_wrought_iron.png
Normal file
After Width: | Height: | Size: 451 B |
BIN
mods/default/textures/default_ingot_wrought_iron.xcf
Normal file
BIN
mods/default/textures/default_lump_bronze.png
Normal file
After Width: | Height: | Size: 498 B |
BIN
mods/default/textures/default_lump_copper.png
Normal file
After Width: | Height: | Size: 496 B |
BIN
mods/default/textures/default_lump_copper.xcf
Normal file
BIN
mods/default/textures/default_lump_graphite.png
Normal file
After Width: | Height: | Size: 480 B |
BIN
mods/default/textures/default_lump_graphite.xcf
Normal file
Before Width: | Height: | Size: 480 B |
BIN
mods/default/textures/default_lump_sulfur.png
Normal file
After Width: | Height: | Size: 482 B |
BIN
mods/default/textures/default_lump_sulfur.xcf
Normal file
BIN
mods/default/textures/default_lump_tin.png
Normal file
After Width: | Height: | Size: 484 B |
BIN
mods/default/textures/default_lump_tin.xcf
Normal file
BIN
mods/default/textures/default_pick_bronze.png
Normal file
After Width: | Height: | Size: 499 B |
BIN
mods/default/textures/default_pick_bronze.xcf
Normal file
Before Width: | Height: | Size: 500 B After Width: | Height: | Size: 500 B |
BIN
mods/default/textures/default_pick_wrought_iron.png
Normal file
After Width: | Height: | Size: 489 B |
BIN
mods/default/textures/default_pick_wrought_iron.xcf
Normal file
Before Width: | Height: | Size: 461 B After Width: | Height: | Size: 455 B |
BIN
mods/default/textures/default_shovel_bronze.png
Normal file
After Width: | Height: | Size: 505 B |
BIN
mods/default/textures/default_shovel_bronze.xcf
Normal file
Before Width: | Height: | Size: 498 B After Width: | Height: | Size: 498 B |
BIN
mods/default/textures/default_shovel_wrought_iron.png
Normal file
After Width: | Height: | Size: 489 B |
BIN
mods/default/textures/default_shovel_wrought_iron.xcf
Normal file
BIN
mods/default/textures/default_spear_bronze.png
Normal file
After Width: | Height: | Size: 511 B |
BIN
mods/default/textures/default_spear_bronze.xcf
Normal file
Before Width: | Height: | Size: 507 B After Width: | Height: | Size: 507 B |
BIN
mods/default/textures/default_spear_wrought_iron.png
Normal file
After Width: | Height: | Size: 501 B |
BIN
mods/default/textures/default_spear_wrought_iron.xcf
Normal file
@ -1,5 +1,6 @@
|
||||
|
||||
--
|
||||
-- Tool definition
|
||||
-- Tool definitions
|
||||
--
|
||||
|
||||
local creative_digtime=0.5
|
||||
@ -53,6 +54,28 @@ if minetest.setting_getbool("creative_mode") == true then
|
||||
[1] = creative_digtime,
|
||||
},
|
||||
},
|
||||
wrought_iron = {
|
||||
crumbly = {
|
||||
[3] = creative_digtime,
|
||||
[2] = creative_digtime,
|
||||
[1] = creative_digtime,
|
||||
},
|
||||
choppy = {
|
||||
[3] = creative_digtime,
|
||||
[2] = creative_digtime,
|
||||
[1] = creative_digtime,
|
||||
},
|
||||
cracky = {
|
||||
[3] = creative_digtime,
|
||||
[2] = creative_digtime,
|
||||
[1] = creative_digtime,
|
||||
},
|
||||
snappy = {
|
||||
[3] = creative_digtime,
|
||||
[2] = creative_digtime,
|
||||
[1] = creative_digtime,
|
||||
},
|
||||
},
|
||||
steel = {
|
||||
crumbly = {
|
||||
[3] = creative_digtime,
|
||||
@ -75,7 +98,29 @@ if minetest.setting_getbool("creative_mode") == true then
|
||||
[1] = creative_digtime,
|
||||
},
|
||||
},
|
||||
carbonsteel = {
|
||||
carbon_steel = {
|
||||
crumbly = {
|
||||
[3] = creative_digtime,
|
||||
[2] = creative_digtime,
|
||||
[1] = creative_digtime,
|
||||
},
|
||||
choppy = {
|
||||
[3] = creative_digtime,
|
||||
[2] = creative_digtime,
|
||||
[1] = creative_digtime,
|
||||
},
|
||||
cracky = {
|
||||
[3] = creative_digtime,
|
||||
[2] = creative_digtime,
|
||||
[1] = creative_digtime,
|
||||
},
|
||||
snappy = {
|
||||
[3] = creative_digtime,
|
||||
[2] = creative_digtime,
|
||||
[1] = creative_digtime,
|
||||
},
|
||||
},
|
||||
bronze = {
|
||||
crumbly = {
|
||||
[3] = creative_digtime,
|
||||
[2] = creative_digtime,
|
||||
@ -119,7 +164,7 @@ if minetest.setting_getbool("creative_mode") == true then
|
||||
range = 3.8,
|
||||
damage_groups = {fleshy = 1}
|
||||
}
|
||||
})
|
||||
})
|
||||
else
|
||||
tool_levels = {
|
||||
wood = {
|
||||
@ -158,7 +203,7 @@ else
|
||||
[2] = 0.9,
|
||||
},
|
||||
},
|
||||
steel = {
|
||||
wrought_iron = {
|
||||
crumbly = {
|
||||
[3] = 1.0,
|
||||
[2] = 1.4,
|
||||
@ -180,7 +225,51 @@ else
|
||||
[1] = 1.3,
|
||||
},
|
||||
},
|
||||
carbonsteel = {
|
||||
steel = {
|
||||
crumbly = {
|
||||
[3] = 0.7,
|
||||
[2] = 2.1,
|
||||
[1] = 3.5,
|
||||
},
|
||||
choppy = {
|
||||
[3] = 1.7,
|
||||
[2] = 2.1,
|
||||
[1] = 3.6,
|
||||
},
|
||||
cracky = {
|
||||
[3] = 2.3,
|
||||
[2] = 2.7,
|
||||
[1] = 3.8,
|
||||
},
|
||||
snappy = {
|
||||
[3] = 0.2,
|
||||
[2] = 0.7,
|
||||
[1] = 1.2,
|
||||
},
|
||||
},
|
||||
carbon_steel = {
|
||||
crumbly = {
|
||||
[3] = 1.0,
|
||||
[2] = 1.4,
|
||||
[1] = 2.5,
|
||||
},
|
||||
choppy = {
|
||||
[3] = 2.0,
|
||||
[2] = 2.4,
|
||||
[1] = 3.9,
|
||||
},
|
||||
cracky = {
|
||||
[3] = 2.8,
|
||||
[2] = 3.2,
|
||||
[1] = 4.5,
|
||||
},
|
||||
snappy = {
|
||||
[3] = 0.3,
|
||||
[2] = 0.8,
|
||||
[1] = 1.3,
|
||||
},
|
||||
},
|
||||
bronze = {
|
||||
crumbly = {
|
||||
[3] = 0.7,
|
||||
[2] = 2.1,
|
||||
@ -224,7 +313,7 @@ else
|
||||
range = 3.8,
|
||||
damage_groups = {fleshy = 1}
|
||||
}
|
||||
})
|
||||
})
|
||||
end
|
||||
|
||||
-- "Creative" Tool
|
||||
@ -247,8 +336,7 @@ minetest.register_tool(
|
||||
range = 20.8,
|
||||
damage_groups = {fleshy = 1}
|
||||
}
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
-- Pickaxes
|
||||
|
||||
@ -264,7 +352,7 @@ minetest.register_tool(
|
||||
},
|
||||
damage_groups = {fleshy = 2}
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:pick_stone",
|
||||
@ -272,13 +360,27 @@ minetest.register_tool(
|
||||
description = "Stone Pickaxe",
|
||||
inventory_image = "default_pick_stone.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=0,
|
||||
groupcaps={
|
||||
cracky={times=tool_levels.stone.cracky, uses=20, maxlevel=1}
|
||||
max_drop_level = 0,
|
||||
groupcaps = {
|
||||
cracky = {times = tool_levels.stone.cracky, uses = 20, maxlevel = 1}
|
||||
},
|
||||
damage_groups = {fleshy = 3}
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:pick_wrought_iron",
|
||||
{
|
||||
description = "Wrought Iron Pickaxe",
|
||||
inventory_image = "default_pick_wrought_iron.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
cracky={times=tool_levels.wrought_iron.cracky, uses=25, maxlevel=2}
|
||||
},
|
||||
damage_groups = {fleshy = 4}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:pick_steel",
|
||||
@ -288,25 +390,39 @@ minetest.register_tool(
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
cracky={times=tool_levels.steel.cracky, uses=25, maxlevel=2}
|
||||
},
|
||||
damage_groups = {fleshy = 4}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:pick_carbonsteel",
|
||||
{
|
||||
description = "Carbon Steel Pickaxe",
|
||||
inventory_image = "default_pick_carbonsteel.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
cracky={times=tool_levels.carbonsteel.cracky, uses=35, maxlevel=2}
|
||||
cracky={times=tool_levels.steel.cracky, uses=35, maxlevel=2}
|
||||
},
|
||||
damage_groups = {fleshy = 6}
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:pick_carbon_steel",
|
||||
{
|
||||
description = "Carbon Steel Pickaxe",
|
||||
inventory_image = "default_pick_carbon_steel.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
cracky={times=tool_levels.carbon_steel.cracky, uses=35, maxlevel=2}
|
||||
},
|
||||
damage_groups = {fleshy = 6}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:pick_bronze",
|
||||
{
|
||||
description = "Bronze Pickaxe",
|
||||
inventory_image = "default_pick_bronze.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
cracky={times=tool_levels.bronze.cracky, uses=35, maxlevel=2}
|
||||
},
|
||||
damage_groups = {fleshy = 6}
|
||||
},
|
||||
})
|
||||
|
||||
-- Shovels
|
||||
|
||||
@ -322,7 +438,7 @@ minetest.register_tool(
|
||||
},
|
||||
damage_groups = {fleshy = 2}
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:shovel_stone",
|
||||
@ -336,7 +452,21 @@ minetest.register_tool(
|
||||
},
|
||||
damage_groups = {fleshy = 3}
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:shovel_wrought_iron",
|
||||
{
|
||||
description = "Wrought Iron Shovel",
|
||||
inventory_image = "default_shovel_wrought_iron.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
crumbly={times=tool_levels.wrought_iron.crumbly, uses=25, maxlevel=2}
|
||||
},
|
||||
damage_groups = {fleshy = 4}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:shovel_steel",
|
||||
@ -346,25 +476,39 @@ minetest.register_tool(
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
crumbly={times=tool_levels.steel.crumbly, uses=25, maxlevel=2}
|
||||
},
|
||||
damage_groups = {fleshy = 4}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:shovel_carbonsteel",
|
||||
{
|
||||
description = "Carbon Steel Shovel",
|
||||
inventory_image = "default_shovel_carbonsteel.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
crumbly={times=tool_levels.carbonsteel.crumbly, uses=35, maxlevel=2}
|
||||
crumbly={times=tool_levels.steel.crumbly, uses=35, maxlevel=2}
|
||||
},
|
||||
damage_groups = {fleshy = 6}
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:shovel_carbon_steel",
|
||||
{
|
||||
description = "Carbon Steel Shovel",
|
||||
inventory_image = "default_shovel_carbon_steel.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
crumbly={times=tool_levels.carbon_steel.crumbly, uses=35, maxlevel=2}
|
||||
},
|
||||
damage_groups = {fleshy = 6}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:shovel_bronze",
|
||||
{
|
||||
description = "Bronze Shovel",
|
||||
inventory_image = "default_shovel_bronze.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
crumbly={times=tool_levels.bronze.crumbly, uses=35, maxlevel=2}
|
||||
},
|
||||
damage_groups = {fleshy = 6}
|
||||
},
|
||||
})
|
||||
|
||||
-- Axes
|
||||
|
||||
@ -381,7 +525,7 @@ minetest.register_tool(
|
||||
},
|
||||
damage_groups = {fleshy = 3}
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:axe_stone",
|
||||
@ -396,7 +540,22 @@ minetest.register_tool(
|
||||
},
|
||||
damage_groups = {fleshy = 4}
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:axe_wrought_iron",
|
||||
{
|
||||
description = "Wrought Iron Axe",
|
||||
inventory_image = "default_axe_wrought_iron.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
choppy={times=tool_levels.wrought_iron.choppy, uses=25, maxlevel=2},
|
||||
fleshy={times={[2]=1.00, [3]=0.20}, uses=40, maxlevel=1}
|
||||
},
|
||||
damage_groups = {fleshy = 5}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:axe_steel",
|
||||
@ -406,27 +565,42 @@ minetest.register_tool(
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
choppy={times=tool_levels.steel.choppy, uses=25, maxlevel=2},
|
||||
fleshy={times={[2]=1.00, [3]=0.20}, uses=40, maxlevel=1}
|
||||
},
|
||||
damage_groups = {fleshy = 5}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:axe_carbonsteel",
|
||||
{
|
||||
description = "Carbon Steel Axe",
|
||||
inventory_image = "default_axe_carbonsteel.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
choppy={times=tool_levels.carbonsteel.choppy, uses=35, maxlevel=2},
|
||||
choppy={times=tool_levels.steel.choppy, uses=35, maxlevel=2},
|
||||
fleshy={times={[2]=1.00, [3]=0.20}, uses=40, maxlevel=1}
|
||||
},
|
||||
damage_groups = {fleshy = 7}
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:axe_carbon_steel",
|
||||
{
|
||||
description = "Carbon Steel Axe",
|
||||
inventory_image = "default_axe_carbon_steel.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
choppy={times=tool_levels.carbon_steel.choppy, uses=45, maxlevel=2},
|
||||
fleshy={times={[2]=1.00, [3]=0.20}, uses=40, maxlevel=1}
|
||||
},
|
||||
damage_groups = {fleshy = 7}
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:axe_bronze",
|
||||
{
|
||||
description = "Bronze Axe",
|
||||
inventory_image = "default_axe_bronze.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
choppy={times=tool_levels.bronze.choppy, uses=25, maxlevel=2},
|
||||
fleshy={times={[2]=1.00, [3]=0.20}, uses=40, maxlevel=1}
|
||||
},
|
||||
damage_groups = {fleshy = 7}
|
||||
},
|
||||
})
|
||||
|
||||
-- Spears
|
||||
|
||||
@ -444,7 +618,7 @@ minetest.register_tool(
|
||||
},
|
||||
damage_groups = {fleshy = 4}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:spear_stone",
|
||||
@ -460,7 +634,23 @@ minetest.register_tool(
|
||||
},
|
||||
damage_groups = {fleshy = 5}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:spear_wrought_iron",
|
||||
{
|
||||
description = "Wrought Iron Spear",
|
||||
inventory_image = "default_spear_wrought_iron.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1.0,
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
fleshy={times={[1]=2.00, [2]=0.80, [3]=0.40}, uses=10, maxlevel=2},
|
||||
snappy={times=tool_levels.wrought_iron.snappy, uses=40, maxlevel=1},
|
||||
},
|
||||
damage_groups = {fleshy = 6}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:spear_steel",
|
||||
@ -471,28 +661,44 @@ minetest.register_tool(
|
||||
full_punch_interval = 1.0,
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
fleshy={times={[1]=2.00, [2]=0.80, [3]=0.40}, uses=10, maxlevel=2},
|
||||
snappy={times=tool_levels.steel.snappy, uses=40, maxlevel=1},
|
||||
fleshy={times={[1]=2.00, [2]=0.80, [3]=0.40}, uses=25, maxlevel=2},
|
||||
snappy={times=tool_levels.steel.snappy, uses=55, maxlevel=1},
|
||||
},
|
||||
damage_groups = {fleshy = 6}
|
||||
damage_groups = {fleshy = 10}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:spear_carbonsteel",
|
||||
"default:spear_carbon_steel",
|
||||
{
|
||||
description = "Carbon Steel Spear",
|
||||
inventory_image = "default_spear_carbonsteel.png",
|
||||
inventory_image = "default_spear_carbon_steel.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1.0,
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
fleshy={times={[1]=2.00, [2]=0.80, [3]=0.40}, uses=25, maxlevel=2},
|
||||
snappy={times=tool_levels.carbonsteel.snappy, uses=55, maxlevel=1},
|
||||
snappy={times=tool_levels.carbon_steel.snappy, uses=55, maxlevel=1},
|
||||
},
|
||||
damage_groups = {fleshy = 10}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:spear_bronze",
|
||||
{
|
||||
description = "Wrought Iron Spear",
|
||||
inventory_image = "default_spear_bronze.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1.0,
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
fleshy={times={[1]=2.00, [2]=0.80, [3]=0.40}, uses=25, maxlevel=2},
|
||||
snappy={times=tool_levels.bronze.snappy, uses=55, maxlevel=1},
|
||||
},
|
||||
damage_groups = {fleshy = 10}
|
||||
}
|
||||
})
|
||||
|
||||
-- Broadsword
|
||||
|
||||
@ -507,16 +713,16 @@ minetest.register_tool(
|
||||
full_punch_interval = 4.0,
|
||||
damage_groups = {fleshy = 12}
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
-- Other
|
||||
|
||||
minetest.register_tool(
|
||||
"default:shears",
|
||||
{
|
||||
description = "Steel Shears (Right-click to shear animals)",
|
||||
description = "Wrought Iron Shears",
|
||||
inventory_image = "default_shears.png",
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_tool(
|
||||
"default:flint_and_steel",
|
||||
@ -524,30 +730,44 @@ minetest.register_tool(
|
||||
description = "Flint and Steel",
|
||||
inventory_image = "default_flint_and_steel.png",
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
if pointed_thing == nil then return end
|
||||
if pointed_thing.type ~= "node" then return end
|
||||
if pointed_thing == nil then return end
|
||||
if pointed_thing.type ~= "node" then return end
|
||||
|
||||
local pos = pointed_thing.under
|
||||
local node = minetest.get_node(pos)
|
||||
local nodename = node.name
|
||||
local pos = pointed_thing.under
|
||||
local node = minetest.get_node(pos)
|
||||
local nodename = node.name
|
||||
|
||||
if nodename == "default:torch_weak" then
|
||||
minetest.set_node(pos, {name = "default:torch", param = node.param, param2 = node.param2})
|
||||
itemstack:add_wear(800)
|
||||
elseif nodename == "default:torch_dead" then
|
||||
minetest.set_node(pos, {name = "default:torch_weak", param = node.param, param2 = node.param2})
|
||||
itemstack:add_wear(800)
|
||||
elseif nodename == "tnt:tnt" then
|
||||
local y = minetest.registered_nodes["tnt:tnt"]
|
||||
if y ~= nil then
|
||||
y.on_punch(pos, node, user)
|
||||
if nodename == "default:torch_weak" then
|
||||
minetest.set_node(
|
||||
pos,
|
||||
{
|
||||
name = "default:torch",
|
||||
param = node.param,
|
||||
param2 = node.param2
|
||||
})
|
||||
|
||||
itemstack:add_wear(800)
|
||||
end
|
||||
end
|
||||
itemstack:add_wear(800)
|
||||
elseif nodename == "default:torch_dead" then
|
||||
minetest.set_node(
|
||||
pos,
|
||||
{
|
||||
name = "default:torch_weak",
|
||||
param = node.param,
|
||||
param2 = node.param2
|
||||
})
|
||||
|
||||
return itemstack
|
||||
end,
|
||||
})
|
||||
itemstack:add_wear(800)
|
||||
elseif nodename == "tnt:tnt" then
|
||||
local y = minetest.registered_nodes["tnt:tnt"]
|
||||
if y ~= nil then
|
||||
y.on_punch(pos, node, user)
|
||||
|
||||
itemstack:add_wear(800)
|
||||
end
|
||||
end
|
||||
|
||||
return itemstack
|
||||
end,
|
||||
})
|
||||
|
||||
default.log("tools", "loaded")
|
||||
|
42
mods/farming/achievements.lua
Normal file
@ -0,0 +1,42 @@
|
||||
|
||||
--
|
||||
-- Achievements
|
||||
--
|
||||
|
||||
achievements.register_achievement(
|
||||
"farmer",
|
||||
{
|
||||
title = "Farmer",
|
||||
description = "Plant 20 wheat seeds",
|
||||
times = 20,
|
||||
placenode = "farming:wheat_1",
|
||||
})
|
||||
|
||||
achievements.register_achievement(
|
||||
"master_farmer",
|
||||
{
|
||||
title = "Master Farmer",
|
||||
description = "Plant 200 wheat seeds",
|
||||
times = 200,
|
||||
placenode = "farming:wheat_1",
|
||||
})
|
||||
|
||||
achievements.register_achievement(
|
||||
"cotton_farmer",
|
||||
{
|
||||
title = "Cotton Farmer",
|
||||
description = "Plant 10 cotton seeds",
|
||||
times = 10,
|
||||
placenode = "farming:cotton_1",
|
||||
})
|
||||
|
||||
achievements.register_achievement(
|
||||
"master_cotton_farmer",
|
||||
{
|
||||
title = "Master Cotton Farmer",
|
||||
description = "Plant 100 cotton seeds",
|
||||
times = 100,
|
||||
placenode = "farming:cotton_1",
|
||||
})
|
||||
|
||||
default.log("achievements", "loaded")
|
@ -69,5 +69,6 @@ end
|
||||
dofile(minetest.get_modpath("farming").."/nodes.lua")
|
||||
dofile(minetest.get_modpath("farming").."/plants.lua")
|
||||
dofile(minetest.get_modpath("farming").."/craft.lua")
|
||||
dofile(minetest.get_modpath("farming").."/achievements.lua")
|
||||
|
||||
default.log("mod:farming", "loaded")
|
||||
|
42
mods/farming/mapgen.lua
Normal file
@ -0,0 +1,42 @@
|
||||
|
||||
--
|
||||
-- Mapgen
|
||||
--
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
deco_type = "simple",
|
||||
place_on = "default:dirt_with_grass",
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.008,
|
||||
biomes = {"Wilderness"},
|
||||
decoration = {"farming:wheat_4"},
|
||||
y_min = 0,
|
||||
y_max = 32000,
|
||||
})
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
deco_type = "simple",
|
||||
place_on = "default:dirt_with_grass",
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.006,
|
||||
biomes = {"Grassland", "Savanna"},
|
||||
decoration = {"farming:wheat_4"},
|
||||
y_min = 0,
|
||||
y_max = 32000,
|
||||
})
|
||||
|
||||
minetest.register_decoration(
|
||||
{
|
||||
deco_type = "simple",
|
||||
place_on = "default:sand",
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.004,
|
||||
biomes = {"Desert"},
|
||||
decoration = {"farming:cotton_4"},
|
||||
y_min = 0,
|
||||
y_max = 32000,
|
||||
})
|
||||
|
||||
default.log("mapgen", "loaded")
|
@ -1,3 +1,8 @@
|
||||
|
||||
--
|
||||
-- Nodes
|
||||
--
|
||||
|
||||
minetest.register_node(
|
||||
"farming:wheat_1",
|
||||
{
|
||||
@ -22,7 +27,7 @@ minetest.register_node(
|
||||
},
|
||||
groups = {dig_immediate=2},
|
||||
sounds=default.node_sound_leaves_defaults()
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"farming:wheat_2",
|
||||
@ -46,7 +51,7 @@ minetest.register_node(
|
||||
},
|
||||
groups = {dig_immediate=2, not_in_craftingguide = 1},
|
||||
sounds=default.node_sound_leaves_defaults()
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"farming:wheat_3",
|
||||
@ -70,7 +75,7 @@ minetest.register_node(
|
||||
},
|
||||
groups = {dig_immediate=2, not_in_craftingguide = 1},
|
||||
sounds=default.node_sound_leaves_defaults()
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"farming:wheat_4",
|
||||
@ -97,7 +102,7 @@ minetest.register_node(
|
||||
},
|
||||
groups = {dig_immediate=2, not_in_craftingguide = 1},
|
||||
sounds=default.node_sound_leaves_defaults()
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"farming:cotton_1",
|
||||
@ -123,7 +128,7 @@ minetest.register_node(
|
||||
},
|
||||
groups = {dig_immediate=2},
|
||||
sounds=default.node_sound_leaves_defaults()
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"farming:cotton_2",
|
||||
@ -147,7 +152,7 @@ minetest.register_node(
|
||||
},
|
||||
groups = {dig_immediate=2, not_in_craftingguide = 1},
|
||||
sounds=default.node_sound_leaves_defaults()
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"farming:cotton_3",
|
||||
@ -171,7 +176,7 @@ minetest.register_node(
|
||||
},
|
||||
groups = {dig_immediate=2, not_in_craftingguide = 1},
|
||||
sounds=default.node_sound_leaves_defaults()
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"farming:cotton_4",
|
||||
@ -196,47 +201,51 @@ minetest.register_node(
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -0.5, -0.5, 0.5, -0.5+(4/16), 0.5}
|
||||
},
|
||||
on_punch = function(pos, node, player)
|
||||
local name = player:get_wielded_item():get_name()
|
||||
|
||||
if name == "default:shears" then
|
||||
minetest.set_node(pos, {name = "farming:cotton_3"})
|
||||
|
||||
for i = 1, 2 do
|
||||
if math.random(1, 2) == 1 then
|
||||
break
|
||||
end
|
||||
|
||||
local item = "farming:cotton"
|
||||
if math.random(1, 4) == 1 then
|
||||
item = item .. " 2"
|
||||
end
|
||||
|
||||
local rpos = {
|
||||
x = pos.x + math.random(-0.3, 0.3),
|
||||
y = pos.y,
|
||||
z = pos.z + math.random(-0.3, 0.3)
|
||||
}
|
||||
|
||||
local drop = minetest.add_item(rpos, item)
|
||||
|
||||
if drop ~= nil then
|
||||
local x = math.random(1, 5)
|
||||
if math.random(1, 2) == 1 then
|
||||
x = -x
|
||||
end
|
||||
local z = math.random(1, 5)
|
||||
if math.random(1, 2) == 1 then
|
||||
z = -z
|
||||
end
|
||||
drop:setvelocity({x = 1 / x, y = drop:getvelocity().y, z = 1 / z})
|
||||
end
|
||||
end
|
||||
end
|
||||
end,
|
||||
groups = {dig_immediate=2, not_in_craftingguide = 1},
|
||||
sounds=default.node_sound_leaves_defaults()
|
||||
})
|
||||
sounds=default.node_sound_leaves_defaults(),
|
||||
on_punch = function(pos, node, player)
|
||||
local name = player:get_wielded_item():get_name()
|
||||
|
||||
if name == "default:shears" then
|
||||
minetest.set_node(pos, {name = "farming:cotton_3"})
|
||||
|
||||
for i = 1, 2 do
|
||||
if math.random(1, 2) == 1 then
|
||||
break
|
||||
end
|
||||
|
||||
local item = "farming:cotton"
|
||||
if math.random(1, 4) == 1 then
|
||||
item = item .. " 2"
|
||||
end
|
||||
|
||||
local rpos = {
|
||||
x = pos.x + math.random(-0.3, 0.3),
|
||||
y = pos.y,
|
||||
z = pos.z + math.random(-0.3, 0.3)
|
||||
}
|
||||
|
||||
local drop = minetest.add_item(rpos, item)
|
||||
|
||||
if drop ~= nil then
|
||||
local x = math.random(1, 5)
|
||||
|
||||
if math.random(1, 2) == 1 then
|
||||
x = -x
|
||||
end
|
||||
|
||||
local z = math.random(1, 5)
|
||||
|
||||
if math.random(1, 2) == 1 then
|
||||
z = -z
|
||||
end
|
||||
|
||||
drop:setvelocity({x = 1 / x, y = drop:getvelocity().y, z = 1 / z})
|
||||
end
|
||||
end
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"farming:cotton_bale",
|
||||
@ -244,11 +253,12 @@ minetest.register_node(
|
||||
description = "Cotton Bale",
|
||||
tiles ={"farming_cotton_bale.png"},
|
||||
is_ground_content = false,
|
||||
groups = {snappy=2, oddly_breakable_by_hand=3, fall_damage_add_percent=-15, fuzzy = 1},
|
||||
groups = {snappy = 2, oddly_breakable_by_hand = 3,
|
||||
fall_damage_add_percent = -15, fuzzy = 1},
|
||||
sounds = default.node_sound_leaves_defaults(),
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_alias("farming:cotton_seed", "farming:cotton_1")
|
||||
minetest.register_alias("farming:wheat_seed", "farming:wheat_1")
|
||||
|
||||
default.log("nodes", "loaded")
|
||||
default.log("nodes", "loaded")
|
||||
|
@ -1,3 +1,8 @@
|
||||
|
||||
--
|
||||
-- Plants
|
||||
--
|
||||
|
||||
farming.register_plant(
|
||||
"wheat",
|
||||
{
|
||||
@ -20,42 +25,4 @@ farming.register_plant(
|
||||
light_max = 15,
|
||||
})
|
||||
|
||||
-- Achievements
|
||||
|
||||
achievements.register_achievement(
|
||||
"farmer",
|
||||
{
|
||||
title = "Farmer",
|
||||
description = "Plant 20 wheat seeds",
|
||||
times = 20,
|
||||
placenode = "farming:wheat_1",
|
||||
})
|
||||
|
||||
achievements.register_achievement(
|
||||
"master_farmer",
|
||||
{
|
||||
title = "Master Farmer",
|
||||
description = "Plant 200 wheat seeds",
|
||||
times = 200,
|
||||
placenode = "farming:wheat_1",
|
||||
})
|
||||
|
||||
achievements.register_achievement(
|
||||
"cotton_farmer",
|
||||
{
|
||||
title = "Cotton Farmer",
|
||||
description = "Plant 10 cotton seeds",
|
||||
times = 10,
|
||||
placenode = "farming:cotton_1",
|
||||
})
|
||||
|
||||
achievements.register_achievement(
|
||||
"master_cotton_farmer",
|
||||
{
|
||||
title = "Master Cotton Farmer",
|
||||
description = "Plant 100 cotton seeds",
|
||||
times = 100,
|
||||
placenode = "farming:cotton_1",
|
||||
})
|
||||
|
||||
default.log("plants", "loaded")
|
||||
default.log("plants", "loaded")
|
||||
|
@ -13,104 +13,104 @@ gold.trade_names = {}
|
||||
if minetest.get_modpath("mobs") ~= nil then
|
||||
gold.trades["farmer"] = {
|
||||
-- plants
|
||||
{"gold:gold", "", "farming:wheat_1 6"},
|
||||
{"gold:gold 3", "", "farming:cotton_1 4"},
|
||||
{"gold:gold 5", "", "farming:cotton_1 8"},
|
||||
{"gold:gold", "", "default:papyrus 4"},
|
||||
{"gold:gold 4", "", "default:cactus 2"},
|
||||
{"gold:ingot_gold", "", "farming:wheat_1 6"},
|
||||
{"gold:ingot_gold 3", "", "farming:cotton_1 4"},
|
||||
{"gold:ingot_gold 5", "", "farming:cotton_1 8"},
|
||||
{"gold:ingot_gold", "", "default:papyrus 4"},
|
||||
{"gold:ingot_gold 4", "", "default:cactus 2"},
|
||||
|
||||
-- crafts
|
||||
{"gold:gold 7", "", "farming:cotton_bale 3"},
|
||||
{"gold:ingot_gold 7", "", "farming:cotton_bale 3"},
|
||||
|
||||
-- materials
|
||||
{"default:planks 3", "farming:cotton_bale 3", "bed:bed"},
|
||||
|
||||
-- tool repair
|
||||
{"gold:gold 6", "default:shovel_stone", "default:shovel_stone"},
|
||||
{"gold:gold 8", "default:shovel_steel", "default:shovel_steel"},
|
||||
{"gold:gold 10", "default:shovel_carbonsteel", "default:shovel_carbonsteel"},
|
||||
{"gold:ingot_gold 6", "default:shovel_stone", "default:shovel_stone"},
|
||||
{"gold:ingot_gold 8", "default:shovel_steel", "default:shovel_steel"},
|
||||
{"gold:ingot_gold 10", "default:shovel_carbonsteel", "default:shovel_carbonsteel"},
|
||||
}
|
||||
gold.trades["tavernkeeper"] = {
|
||||
-- materials
|
||||
{"gold:gold 2", "", "default:planks 12"},
|
||||
{"gold:gold 2", "", "default:planks_birch 8"},
|
||||
{"gold:ingot_gold 2", "", "default:planks 12"},
|
||||
{"gold:ingot_gold 2", "", "default:planks_birch 8"},
|
||||
|
||||
-- useables
|
||||
{"gold:gold 9", "", "bed:bed"},
|
||||
{"gold:gold 5", "", "default:chest"},
|
||||
{"gold:ingot_gold 9", "", "bed:bed"},
|
||||
{"gold:ingot_gold 5", "", "default:chest"},
|
||||
{"default:planks_birch 3", "mobs:wool 3", "bed:bed"},
|
||||
|
||||
-- filling buckets
|
||||
{"gold:gold", "default:bucket", "default:bucket_water"},
|
||||
{"gold:ingot_gold", "default:bucket", "default:bucket_water"},
|
||||
}
|
||||
gold.trades["blacksmith"] = {
|
||||
-- smeltables
|
||||
{"gold:gold", "", "default:lump_coal"},
|
||||
{"gold:gold 3", "", "default:lump_iron"},
|
||||
{"gold:gold 5", "", "default:dust_carbonsteel"},
|
||||
{"gold:ingot_gold", "", "default:lump_coal"},
|
||||
{"gold:ingot_gold 3", "", "default:lump_iron"},
|
||||
{"gold:ingot_gold 5", "", "default:dust_carbonsteel"},
|
||||
|
||||
-- materials
|
||||
{"gold:gold 2", "", "default:cobble 10"},
|
||||
{"gold:gold 3", "", "default:stone 10"},
|
||||
{"gold:gold 5", "", "default:reinforced_cobble 10"},
|
||||
{"gold:gold 25", "", "default:block_steel"},
|
||||
{"gold:gold 6", "", "default:glass 5"},
|
||||
{"gold:ingot_gold 2", "", "default:cobble 10"},
|
||||
{"gold:ingot_gold 3", "", "default:stone 10"},
|
||||
{"gold:ingot_gold 5", "", "default:reinforced_cobble 10"},
|
||||
{"gold:ingot_gold 25", "", "default:block_steel"},
|
||||
{"gold:ingot_gold 6", "", "default:glass 5"},
|
||||
|
||||
-- usebles
|
||||
{"gold:gold 7", "", "default:furnace"},
|
||||
{"gold:ingot_gold 7", "", "default:furnace"},
|
||||
|
||||
-- ingots
|
||||
{"gold:gold 5", "", "default:ingot_steel"},
|
||||
{"gold:gold 8", "", "default:ingot_carbonsteel"},
|
||||
{"gold:ingot_gold 5", "", "default:ingot_steel"},
|
||||
{"gold:ingot_gold 8", "", "default:ingot_carbonsteel"},
|
||||
|
||||
-- auto smelting
|
||||
{"gold:gold 2", "default:lump_iron", "default:ingot_steel"},
|
||||
{"gold:gold 4", "default:dust_carbonsteel", "default:ingot_carbonsteel"},
|
||||
{"gold:ingot_gold 2", "default:lump_iron", "default:ingot_steel"},
|
||||
{"gold:ingot_gold 4", "default:dust_carbonsteel", "default:ingot_carbonsteel"},
|
||||
|
||||
-- tool repair
|
||||
{"gold:gold 8", "default:pick_stone", "default:pick_stone"},
|
||||
{"gold:gold 12", "default:pick_steel", "default:pick_steel"},
|
||||
{"gold:gold 16", "default:pick_carbonsteel", "default:pick_carbonsteel"},
|
||||
{"gold:ingot_gold 8", "default:pick_stone", "default:pick_stone"},
|
||||
{"gold:ingot_gold 12", "default:pick_steel", "default:pick_steel"},
|
||||
{"gold:ingot_gold 16", "default:pick_carbonsteel", "default:pick_carbonsteel"},
|
||||
}
|
||||
gold.trades["butcher"] = {
|
||||
-- materials
|
||||
{"gold:gold 3", "", "default:planks_oak 10"},
|
||||
{"gold:ingot_gold 3", "", "default:planks_oak 10"},
|
||||
|
||||
-- cooked edibles
|
||||
{"gold:gold 2", "", "mobs:meat"},
|
||||
{"gold:gold 3", "", "mobs:pork"},
|
||||
{"gold:ingot_gold 2", "", "mobs:meat"},
|
||||
{"gold:ingot_gold 3", "", "mobs:pork"},
|
||||
|
||||
-- raw edibles
|
||||
{"gold:gold 2", "", "mobs:meat_raw 2"},
|
||||
{"gold:gold 3", "", "mobs:pork_raw 2"},
|
||||
{"gold:ingot_gold 2", "", "mobs:meat_raw 2"},
|
||||
{"gold:ingot_gold 3", "", "mobs:pork_raw 2"},
|
||||
|
||||
-- cooking edibles
|
||||
{"gold:gold 1", "mobs:meat_raw", "mobs:meat"},
|
||||
{"gold:gold 2", "mobs:pork_raw", "mobs:pork"},
|
||||
{"gold:ingot_gold 1", "mobs:meat_raw", "mobs:meat"},
|
||||
{"gold:ingot_gold 2", "mobs:pork_raw", "mobs:pork"},
|
||||
|
||||
-- tool repair
|
||||
{"gold:gold 5", "default:spear_stone", "default:spear_stone"},
|
||||
{"gold:gold 7", "default:spear_steel", "default:spear_steel"},
|
||||
{"gold:gold 11", "default:spear_carbonsteel", "default:spear_carbonsteel"},
|
||||
{"gold:ingot_gold 5", "default:spear_stone", "default:spear_stone"},
|
||||
{"gold:ingot_gold 7", "default:spear_steel", "default:spear_steel"},
|
||||
{"gold:ingot_gold 11", "default:spear_carbonsteel", "default:spear_carbonsteel"},
|
||||
|
||||
}
|
||||
-- trading currency
|
||||
if minetest.get_modpath("jewels") ~= nil then -- jewels/gold
|
||||
--farmer
|
||||
table.insert(gold.trades["farmer"], {"gold:gold 16", "", "jewels:jewel"})
|
||||
table.insert(gold.trades["farmer"], {"gold:gold 22", "", "jewels:jewel 2"})
|
||||
table.insert(gold.trades["farmer"], {"gold:gold 34", "", "jewels:jewel 4"})
|
||||
table.insert(gold.trades["farmer"], {"gold:ingot_gold 16", "", "jewels:jewel"})
|
||||
table.insert(gold.trades["farmer"], {"gold:ingot_gold 22", "", "jewels:jewel 2"})
|
||||
table.insert(gold.trades["farmer"], {"gold:ingot_gold 34", "", "jewels:jewel 4"})
|
||||
|
||||
table.insert(gold.trades["farmer"], {"jewels:jewel", "", "gold:gold 14"})
|
||||
table.insert(gold.trades["farmer"], {"jewels:jewel 2", "", "gold:gold 20"})
|
||||
table.insert(gold.trades["farmer"], {"jewels:jewel 4", "", "gold:gold 32"})
|
||||
table.insert(gold.trades["farmer"], {"jewels:jewel", "", "gold:ingot_gold 14"})
|
||||
table.insert(gold.trades["farmer"], {"jewels:jewel 2", "", "gold:ingot_gold 20"})
|
||||
table.insert(gold.trades["farmer"], {"jewels:jewel 4", "", "gold:ingot_gold 32"})
|
||||
|
||||
table.insert(gold.trades["farmer"], {"default:planks 6", "", "gold:gold"})
|
||||
table.insert(gold.trades["farmer"], {"default:planks 6", "", "gold:ingot_gold"})
|
||||
|
||||
-- tavern keeper
|
||||
table.insert(gold.trades["tavernkeeper"], {"gold:gold 14", "", "jewels:jewel"})
|
||||
table.insert(gold.trades["tavernkeeper"], {"gold:gold 20", "", "jewels:jewel 2"})
|
||||
table.insert(gold.trades["tavernkeeper"], {"gold:gold 32", "", "jewels:jewel 4"})
|
||||
table.insert(gold.trades["tavernkeeper"], {"gold:ingot_gold 14", "", "jewels:jewel"})
|
||||
table.insert(gold.trades["tavernkeeper"], {"gold:ingot_gold 20", "", "jewels:jewel 2"})
|
||||
table.insert(gold.trades["tavernkeeper"], {"gold:ingot_gold 32", "", "jewels:jewel 4"})
|
||||
|
||||
-- blacksmith
|
||||
table.insert(gold.trades["blacksmith"], {"default:ingot_steel 14", "", "jewels:jewel"})
|
||||
@ -119,9 +119,9 @@ if minetest.get_modpath("mobs") ~= nil then
|
||||
end
|
||||
|
||||
-- butcher(no mod check)
|
||||
table.insert(gold.trades["butcher"], {"mobs:meat_raw 3", "", "gold:gold"})
|
||||
table.insert(gold.trades["butcher"], {"mobs:meat_raw 4", "", "gold:gold 2"})
|
||||
table.insert(gold.trades["butcher"], {"mobs:meat_raw 5", "", "gold:gold 4"})
|
||||
table.insert(gold.trades["butcher"], {"mobs:meat_raw 3", "", "gold:ingot_gold"})
|
||||
table.insert(gold.trades["butcher"], {"mobs:meat_raw 4", "", "gold:ingot_gold 2"})
|
||||
table.insert(gold.trades["butcher"], {"mobs:meat_raw 5", "", "gold:ingot_gold 4"})
|
||||
|
||||
gold.trade_names["farmer"] = "Farmer"
|
||||
gold.trade_names["tavernkeeper"] = "Tavern Keeper"
|
||||
@ -223,7 +223,7 @@ minetest.register_on_player_receive_fields(
|
||||
|
||||
local meta = minetest.deserialize(item:get_metadata())
|
||||
|
||||
local trade = {"gold:gold", "gold:gold", "default:stick"}
|
||||
local trade = {"gold:ingot_gold", "gold:ingot_gold", "default:stick"}
|
||||
local trade_type = ""
|
||||
|
||||
if meta then
|
||||
@ -241,6 +241,8 @@ minetest.register_on_player_receive_fields(
|
||||
end
|
||||
end)
|
||||
|
||||
-- Items
|
||||
|
||||
minetest.register_craftitem(
|
||||
"gold:trading_book",
|
||||
{
|
||||
@ -250,33 +252,53 @@ minetest.register_craftitem(
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"gold:gold",
|
||||
"gold:lump_gold",
|
||||
{
|
||||
description = "Gold",
|
||||
inventory_image = "gold_gold.png",
|
||||
stack_max = 120
|
||||
description = "Gold Lump",
|
||||
inventory_image = "gold_lump_gold.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem(
|
||||
"gold:ingot_gold",
|
||||
{
|
||||
description = "Gold Ingot",
|
||||
inventory_image = "gold_ingot_gold.png",
|
||||
})
|
||||
|
||||
-- Crafting
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "gold:trading_book",
|
||||
items = {
|
||||
"default:book",
|
||||
"gold:gold",
|
||||
"gold:ingot_gold",
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft(
|
||||
{
|
||||
type = "cooking",
|
||||
output = "gold:ingot_gold",
|
||||
recipe = "gold:lump_gold",
|
||||
cooktime = 6,
|
||||
})
|
||||
|
||||
-- Nodes
|
||||
|
||||
minetest.register_node(
|
||||
"gold:ore",
|
||||
{
|
||||
description = "Gold Ore",
|
||||
tiles ={"default_stone.png^gold_mineral.png"},
|
||||
groups = {cracky=1, stone=1},
|
||||
drop = "gold:gold",
|
||||
drop = "gold:lump_gold",
|
||||
is_ground_content = true,
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
-- Ore
|
||||
|
||||
minetest.register_ore(
|
||||
{
|
||||
ore_type = "scatter",
|
||||
|
Before Width: | Height: | Size: 467 B After Width: | Height: | Size: 467 B |
BIN
mods/gold/textures/gold_lump_gold.png
Normal file
After Width: | Height: | Size: 486 B |
BIN
mods/gold/textures/gold_lump_gold.xcf
Normal file
@ -62,9 +62,9 @@ if minetest.get_modpath("village") ~= nil then
|
||||
goodies.types["forge"]["jewels:jewel"] = 30
|
||||
end
|
||||
if minetest.get_modpath("gold") ~= nil then
|
||||
goodies.types["house"]["gold:gold"] = 12
|
||||
goodies.types["tavern"]["gold:gold"] = 10
|
||||
goodies.types["forge"]["gold:gold"] = 8
|
||||
goodies.types["house"]["gold:ingot_gold"] = 12
|
||||
goodies.types["tavern"]["gold:ingot_gold"] = 10
|
||||
goodies.types["forge"]["gold:ingot_gold"] = 8
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -59,7 +59,16 @@ function jewels.register_jewel(toolname, new_toolname, def)
|
||||
|
||||
table.insert(jewels.registered_jewels[toolname], data)
|
||||
|
||||
local tooldef = minetest.deserialize(minetest.serialize(minetest.registered_tools[toolname]))
|
||||
local tooldef = minetest.deserialize(
|
||||
minetest.serialize(minetest.registered_tools[toolname]))
|
||||
|
||||
if not tooldef then
|
||||
minetest.log("warning",
|
||||
"Trying to register jewel " .. new_toolname
|
||||
.. " that has an unknown output item " .. toolname)
|
||||
|
||||
return
|
||||
end
|
||||
|
||||
local new_tool_invimage = ""
|
||||
if tooldef.inventory_image then
|
||||
@ -90,7 +99,8 @@ function jewels.register_jewel(toolname, new_toolname, def)
|
||||
|
||||
if new_tooldef.tool_capabilities then
|
||||
if data.stats.maxdrop and new_tooldef.tool_capabilities.max_drop_level then
|
||||
new_tooldef.tool_capabilities.max_drop_level = new_tooldef.tool_capabilities.max_drop_level + data.stats.maxdrop
|
||||
new_tooldef.tool_capabilities.max_drop_level =
|
||||
new_tooldef.tool_capabilities.max_drop_level + data.stats.maxdrop
|
||||
desc = desc .. "\nDrop level: " .. plus_power(data.stats.maxdrop)
|
||||
end
|
||||
|
||||
@ -119,8 +129,10 @@ function jewels.register_jewel(toolname, new_toolname, def)
|
||||
desc = desc .. "\nDig level: " .. plus_power(data.stats.maxlevel)
|
||||
end
|
||||
|
||||
if data.stats.fleshy and new_tooldef.tool_capabilities.damage_groups and new_tooldef.tool_capabilities.damage_groups.fleshy then
|
||||
new_tooldef.tool_capabilities.damage_groups.fleshy = new_tooldef.tool_capabilities.damage_groups.fleshy + data.stats.fleshy
|
||||
if data.stats.fleshy and new_tooldef.tool_capabilities.damage_groups
|
||||
and new_tooldef.tool_capabilities.damage_groups.fleshy then
|
||||
new_tooldef.tool_capabilities.damage_groups.fleshy =
|
||||
new_tooldef.tool_capabilities.damage_groups.fleshy + data.stats.fleshy
|
||||
desc = desc .. "\nDamage: " .. plus_power(data.stats.fleshy)
|
||||
end
|
||||
end
|
||||
@ -130,16 +142,6 @@ function jewels.register_jewel(toolname, new_toolname, def)
|
||||
minetest.register_tool(new_toolname, new_tooldef)
|
||||
end
|
||||
|
||||
function jewels.can_jewel(toolname)
|
||||
for name, _ in pairs(jewels.registered_jewels) do
|
||||
if name == toolname then
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
return false
|
||||
end
|
||||
|
||||
function jewels.get_jeweled(toolname)
|
||||
for name, jables in pairs(jewels.registered_jewels) do
|
||||
if name == toolname then
|
||||
@ -148,6 +150,8 @@ function jewels.get_jeweled(toolname)
|
||||
end
|
||||
end
|
||||
|
||||
-- Items
|
||||
|
||||
minetest.register_craftitem(
|
||||
"jewels:jewel",
|
||||
{
|
||||
@ -156,6 +160,8 @@ minetest.register_craftitem(
|
||||
stack_max = 10
|
||||
})
|
||||
|
||||
-- Nodes
|
||||
|
||||
minetest.register_node(
|
||||
"jewels:bench",
|
||||
{
|
||||
@ -203,27 +209,22 @@ minetest.register_node(
|
||||
end,
|
||||
})
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "jewels:bench",
|
||||
items = {
|
||||
"group:planks 5",
|
||||
"default:ingot_carbonsteel 2",
|
||||
"jewels:jewel",
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_node(
|
||||
"jewels:jewel_ore",
|
||||
{
|
||||
description = "Jewel Ore",
|
||||
groups = {cracky = 1, stone = 1, not_in_craftingguide = 1},
|
||||
tiles = {"default_tree_birch_top.png", "default_tree_birch_top.png", "default_tree_birch.png^jewels_ore.png"},
|
||||
tiles = {
|
||||
"default_tree_birch_top.png",
|
||||
"default_tree_birch_top.png",
|
||||
"default_tree_birch.png^jewels_ore.png"
|
||||
},
|
||||
drop = "jewels:jewel",
|
||||
groups = {snappy=1, choppy=1, tree=1},
|
||||
sounds = default.node_sound_wood_defaults(),
|
||||
})
|
||||
|
||||
-- Ore
|
||||
|
||||
minetest.register_ore(
|
||||
{
|
||||
ore_type = "scatter",
|
||||
@ -236,6 +237,16 @@ minetest.register_ore(
|
||||
y_max = 31000,
|
||||
})
|
||||
|
||||
crafting.register_craft(
|
||||
{
|
||||
output = "jewels:bench",
|
||||
items = {
|
||||
"group:planks 5",
|
||||
"default:ingot_carbon_steel 2",
|
||||
"jewels:jewel",
|
||||
}
|
||||
})
|
||||
|
||||
-- Achievements
|
||||
|
||||
achievements.register_achievement(
|
||||
|
@ -23,8 +23,8 @@ jewels.register_jewel(
|
||||
})
|
||||
|
||||
jewels.register_jewel(
|
||||
"default:pick_carbonsteel",
|
||||
"jewels:pick_carbonsteel_digspeed",
|
||||
"default:pick_carbon_steel",
|
||||
"jewels:pick_carbon_steel_digspeed",
|
||||
{
|
||||
stats = {
|
||||
digspeed = -0.16,
|
||||
@ -50,8 +50,8 @@ jewels.register_jewel(
|
||||
})
|
||||
|
||||
jewels.register_jewel(
|
||||
"default:pick_carbonsteel",
|
||||
"jewels:pick_carbonsteel_damage",
|
||||
"default:pick_carbon_steel",
|
||||
"jewels:pick_carbon_steel_damage",
|
||||
{
|
||||
stats = {
|
||||
fleshy = 3,
|
||||
@ -77,8 +77,8 @@ jewels.register_jewel(
|
||||
})
|
||||
|
||||
jewels.register_jewel(
|
||||
"default:pick_carbonsteel",
|
||||
"jewels:pick_carbonsteel_uses",
|
||||
"default:pick_carbon_steel",
|
||||
"jewels:pick_carbon_steel_uses",
|
||||
{
|
||||
stats = {
|
||||
uses = 7,
|
||||
@ -106,8 +106,8 @@ jewels.register_jewel(
|
||||
})
|
||||
|
||||
jewels.register_jewel(
|
||||
"default:shovel_carbonsteel",
|
||||
"jewels:shovel_carbonsteel_digspeed",
|
||||
"default:shovel_carbon_steel",
|
||||
"jewels:shovel_carbon_steel_digspeed",
|
||||
{
|
||||
stats = {
|
||||
digspeed = -0.17,
|
||||
@ -133,8 +133,8 @@ jewels.register_jewel(
|
||||
})
|
||||
|
||||
jewels.register_jewel(
|
||||
"default:shovel_carbonsteel",
|
||||
"jewels:shovel_carbonsteel_damage",
|
||||
"default:shovel_carbon_steel",
|
||||
"jewels:shovel_carbon_steel_damage",
|
||||
{
|
||||
stats = {
|
||||
fleshy = 3,
|
||||
@ -160,8 +160,8 @@ jewels.register_jewel(
|
||||
})
|
||||
|
||||
jewels.register_jewel(
|
||||
"default:shovel_carbonsteel",
|
||||
"jewels:shovel_carbonsteel_uses",
|
||||
"default:shovel_carbon_steel",
|
||||
"jewels:shovel_carbon_steel_uses",
|
||||
{
|
||||
stats = {
|
||||
uses = 7,
|
||||
@ -189,8 +189,8 @@ jewels.register_jewel(
|
||||
})
|
||||
|
||||
jewels.register_jewel(
|
||||
"default:axe_carbonsteel",
|
||||
"jewels:axe_carbonsteel_digspeed",
|
||||
"default:axe_carbon_steel",
|
||||
"jewels:axe_carbon_steel_digspeed",
|
||||
{
|
||||
stats = {
|
||||
digspeed = -0.16,
|
||||
@ -216,8 +216,8 @@ jewels.register_jewel(
|
||||
})
|
||||
|
||||
jewels.register_jewel(
|
||||
"default:axe_carbonsteel",
|
||||
"jewels:axe_carbonsteel_damage",
|
||||
"default:axe_carbon_steel",
|
||||
"jewels:axe_carbon_steel_damage",
|
||||
{
|
||||
stats = {
|
||||
fleshy = 4,
|
||||
@ -243,8 +243,8 @@ jewels.register_jewel(
|
||||
})
|
||||
|
||||
jewels.register_jewel(
|
||||
"default:axe_carbonsteel",
|
||||
"jewels:axe_carbonsteel_uses",
|
||||
"default:axe_carbon_steel",
|
||||
"jewels:axe_carbon_steel_uses",
|
||||
{
|
||||
stats = {
|
||||
uses = 7,
|
||||
@ -272,8 +272,8 @@ jewels.register_jewel(
|
||||
})
|
||||
|
||||
jewels.register_jewel(
|
||||
"default:spear_carbonsteel",
|
||||
"jewels:spear_carbonsteel_digspeed",
|
||||
"default:spear_carbon_steel",
|
||||
"jewels:spear_carbon_steel_digspeed",
|
||||
{
|
||||
stats = {
|
||||
digspeed = -0.16,
|
||||
@ -299,8 +299,8 @@ jewels.register_jewel(
|
||||
})
|
||||
|
||||
jewels.register_jewel(
|
||||
"default:spear_carbonsteel",
|
||||
"jewels:spear_carbonsteel_damage",
|
||||
"default:spear_carbon_steel",
|
||||
"jewels:spear_carbon_steel_damage",
|
||||
{
|
||||
stats = {
|
||||
fleshy = 7,
|
||||
@ -326,8 +326,8 @@ jewels.register_jewel(
|
||||
})
|
||||
|
||||
jewels.register_jewel(
|
||||
"default:spear_carbonsteel",
|
||||
"jewels:spear_carbonsteel_uses",
|
||||
"default:spear_carbon_steel",
|
||||
"jewels:spear_carbon_steel_uses",
|
||||
{
|
||||
stats = {
|
||||
uses = 7,
|
||||
|
@ -92,8 +92,14 @@ minetest.register_node(
|
||||
"locks:chest",
|
||||
{
|
||||
description = "Locked Chest",
|
||||
tiles ={"default_chest_top.png", "default_chest_top.png", "default_chest_sides.png",
|
||||
"default_chest_sides.png", "default_chest_sides.png", "locks_chest_front.png"},
|
||||
tiles ={
|
||||
"default_chest_top.png",
|
||||
"default_chest_top.png",
|
||||
"default_chest_sides.png",
|
||||
"default_chest_sides.png",
|
||||
"default_chest_sides.png",
|
||||
"locks_chest_front.png"
|
||||
},
|
||||
paramtype2 = "facedir",
|
||||
groups = {snappy = 2, choppy = 2, oddly_breakable_by_hand = 2},
|
||||
is_ground_content = false,
|
||||
@ -168,10 +174,12 @@ minetest.register_node(
|
||||
write_name = function(pos, text)
|
||||
local meta = minetest.get_meta(pos)
|
||||
|
||||
if text ~= "" then
|
||||
meta:set_string("infotext", text .. " (Owned by " .. meta:get_string("lock_owner") .. ")")
|
||||
if text == "" then
|
||||
meta:set_string("infotext", "Locked Chest (Owned by "
|
||||
.. meta:get_string("lock_owner") .. ")")
|
||||
else
|
||||
meta:set_string("infotext", "Locked Chest (Owned by " .. meta:get_string("lock_owner") .. ")")
|
||||
meta:set_string("infotext", text .. " (Owned by "
|
||||
.. meta:get_string("lock_owner") .. ")")
|
||||
end
|
||||
end,
|
||||
on_blast = function() end,
|
||||
@ -183,7 +191,7 @@ crafting.register_craft(
|
||||
{
|
||||
output = "locks:pick",
|
||||
items = {
|
||||
"default:ingot_carbonsteel 2",
|
||||
"default:ingot_steel 2",
|
||||
"default:stick 3",
|
||||
},
|
||||
})
|
||||
|
@ -47,7 +47,7 @@ for _, npc_type in pairs(npc_types) do
|
||||
water_damage = 0,
|
||||
lava_damage = 2,
|
||||
light_damage = 0,
|
||||
follow = "gold:gold",
|
||||
follow = "gold:ingot_gold",
|
||||
view_range = 15,
|
||||
owner = "",
|
||||
order = "stand",
|
||||
|