Initial commit (version 0.1-test)
78
mods/main/craftitems.lua
Normal file
@@ -0,0 +1,78 @@
|
||||
---------------
|
||||
---------------
|
||||
--Craft Items--
|
||||
---------------
|
||||
---------------
|
||||
|
||||
--Stick
|
||||
minetest.register_craftitem("main:stick",
|
||||
{
|
||||
description = "Stick",
|
||||
inventory_image = "main_stick.png",
|
||||
})
|
||||
|
||||
--Twig
|
||||
minetest.register_craftitem("main:twig_item",
|
||||
{
|
||||
description = "Twig",
|
||||
inventory_image = "main_twig.png",
|
||||
})
|
||||
|
||||
|
||||
----------
|
||||
--Minerals
|
||||
----------
|
||||
|
||||
--Salt Crystals
|
||||
minetest.register_craftitem("main:salt_crystals", {
|
||||
description = "Salt Crystals",
|
||||
inventory_image = "main_salt_crystals.png",
|
||||
})
|
||||
|
||||
--Sulfur Lump
|
||||
minetest.register_craftitem("main:lump_sulfur", {
|
||||
description = "Sulfur Lump",
|
||||
inventory_image = "main_lump_sulfur.png",
|
||||
})
|
||||
|
||||
--Coal
|
||||
minetest.register_craftitem("main:coal", {
|
||||
description = "Coal",
|
||||
inventory_image = "main_lump_coal.png",
|
||||
})
|
||||
|
||||
--Iron Lump
|
||||
minetest.register_craftitem("main:lump_iron", {
|
||||
description = "Iron Lump",
|
||||
inventory_image = "main_lump_iron.png",
|
||||
})
|
||||
|
||||
--Copper Lump
|
||||
minetest.register_craftitem("main:lump_copper", {
|
||||
description = "Copper Lump",
|
||||
inventory_image = "main_lump_copper.png",
|
||||
})
|
||||
|
||||
--Raw Diamond
|
||||
minetest.register_craftitem("main:diamond_raw", {
|
||||
description = "Raw Diamond",
|
||||
inventory_image = "main_dirt.png", -- Dummy/placeholder texture, will be changed in the future
|
||||
--inventory_image = "main_diamond_raw.png",
|
||||
})
|
||||
|
||||
--Polished Diamond
|
||||
minetest.register_craftitem("main:diamond_polished", {
|
||||
description = "Polished Diamond",
|
||||
inventory_image = "main_dirt.png", -- Dummy/placeholder, will be changed in the future
|
||||
--inventory_image = "main_diamond_polished.png",
|
||||
})
|
||||
---------
|
||||
--Edibles
|
||||
---------
|
||||
|
||||
--Strawberry
|
||||
minetest.register_craftitem("main:berry_straw", {
|
||||
description = "Strawberry",
|
||||
tiles = {"main_berry_straw.png"},
|
||||
on_use = minetest.item_eat(1),
|
||||
})
|
||||
38
mods/main/init.lua
Normal file
@@ -0,0 +1,38 @@
|
||||
local modpath = minetest.get_modpath("main")
|
||||
local formspec =
|
||||
{
|
||||
"formspec_version[4]",
|
||||
"size[12,9]",
|
||||
"bgcolor[#1155FF]",
|
||||
"position[0.5,0.5]",
|
||||
"label[0.375,0.5;Welcome to Adsurv v0.6! Here's how to start: find a rock and a stick on the ground, pick them ",
|
||||
"up and open your inventory to craft a primitive knife, then use the knife to chop down a tree!!!",
|
||||
"",
|
||||
"Be sure to check out my Web site!!!",
|
||||
"",
|
||||
"",
|
||||
"",
|
||||
"Thanks for playing Adsurv!!! ",
|
||||
"Join the official server @ mcl.cubesoftware.xyz!!!",
|
||||
"Have a nice day!]",
|
||||
"",
|
||||
"",
|
||||
"button_exit[0.1,6.7;11.85,2;continue;CLICK HERE TO CONTINUE!!!]"
|
||||
}
|
||||
|
||||
|
||||
dofile(modpath.."/nodes.lua")
|
||||
dofile(modpath.."/craftitems.lua")
|
||||
dofile(modpath.."/recipes.lua")
|
||||
dofile(modpath.."/mapgen.lua")
|
||||
dofile(modpath.."/tools.lua")
|
||||
|
||||
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
player:hud_set_hotbar_image("gui_hotbar.png")
|
||||
player:hud_set_hotbar_selected_image("gui_hotbar_selected.png")
|
||||
player:set_lighting({
|
||||
shadows = {intensity = 0.5}
|
||||
})
|
||||
--minetest.show_formspec(player:get_player_name(), "formspec", table.concat(formspec, "\n"))
|
||||
end)
|
||||
7
mods/main/license.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
Copyright 2019-2021 MCL
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
406
mods/main/mapgen.lua
Normal file
@@ -0,0 +1,406 @@
|
||||
minetest.register_alias("mapgen_stone", "main:stone")
|
||||
minetest.register_alias("mapgen_dirt", "main:dirt")
|
||||
minetest.register_alias("mapgen_dirt_with_grass", "main:dirt_with_grass")
|
||||
minetest.register_alias("mapgen_sand", "main:sand")
|
||||
minetest.register_alias("mapgen_water_source", "main:water_source")
|
||||
minetest.register_alias("mapgen_river_water_source", "main:muddywater_source")
|
||||
minetest.register_alias("mapgen_lava_source", "main:lava_source")
|
||||
|
||||
--------
|
||||
--Biomes
|
||||
--------
|
||||
|
||||
--Grasslands
|
||||
minetest.register_biome(
|
||||
{
|
||||
name = "Grasslands",
|
||||
|
||||
node_top = "main:dirt_with_grass",
|
||||
node_filler = "main:dirt",
|
||||
|
||||
depth_top = 1,
|
||||
depth_filler = 1,
|
||||
|
||||
y_min = 4,
|
||||
y_max = 14,
|
||||
|
||||
heat_point = 60,
|
||||
humidity_point = 30,
|
||||
})
|
||||
|
||||
--Beach
|
||||
minetest.register_biome(
|
||||
{
|
||||
name = "Beach",
|
||||
|
||||
node_top = "main:sand",
|
||||
node_filler = "main:stone",
|
||||
|
||||
depth_top = 1,
|
||||
depth_filler = 3,
|
||||
|
||||
y_min = 1,
|
||||
y_max = 4,
|
||||
|
||||
heat_point = 70,
|
||||
humidity_point = 55,
|
||||
})
|
||||
|
||||
--Swamp
|
||||
minetest.register_biome(
|
||||
{
|
||||
name = "Swamp",
|
||||
|
||||
node_top = "main:dirt_with_swamp_grass",
|
||||
node_filler = "main:dirt",
|
||||
|
||||
depth_top = 1,
|
||||
depth_filler = 3,
|
||||
|
||||
y_min = 1,
|
||||
y_max = 4,
|
||||
|
||||
heat_point = 60,
|
||||
humidity_point = 30,
|
||||
})
|
||||
|
||||
--Sulfur Deposit
|
||||
minetest.register_biome(
|
||||
{
|
||||
name = "Sulfur Deposit",
|
||||
|
||||
node_top = "main:stone",
|
||||
node_filler = "main:gravel",
|
||||
|
||||
depth_top = 1,
|
||||
depth_filler = 7,
|
||||
|
||||
y_min = 7,
|
||||
y_max = 15,
|
||||
|
||||
heat_point = 80,
|
||||
humidity_point = 90,
|
||||
})
|
||||
|
||||
--Desert
|
||||
minetest.register_biome(
|
||||
{
|
||||
name = "Desert",
|
||||
|
||||
node_top = "main:sand",
|
||||
node_filler = "main:sand",
|
||||
|
||||
depth_top = 4,
|
||||
depth_filler = 3,
|
||||
|
||||
y_min = 3,
|
||||
y_max = 50,
|
||||
|
||||
heat_point = 100,
|
||||
humidity_point = 8,
|
||||
})
|
||||
|
||||
--Mountains
|
||||
minetest.register_biome(
|
||||
{
|
||||
name = "Mountains",
|
||||
|
||||
node_top = "main:cobble",
|
||||
node_filler = "main:stone",
|
||||
|
||||
depth_top = 1,
|
||||
depth_filler = 1,
|
||||
|
||||
y_min = 15,
|
||||
y_max = 150,
|
||||
|
||||
heat_point = 60,
|
||||
humidity_point = 30,
|
||||
})
|
||||
|
||||
--Mountain Peak (with snow)
|
||||
minetest.register_biome(
|
||||
{
|
||||
name = "Mountain Peak",
|
||||
|
||||
node_top = "main:snow",
|
||||
node_filler = "main:snow",
|
||||
|
||||
depth_top = 1,
|
||||
depth_filler = 1,
|
||||
|
||||
y_min = 150,
|
||||
y_max = upper_limit,
|
||||
|
||||
heat_point = 10,
|
||||
humidity_point = 20,
|
||||
})
|
||||
|
||||
--Wasteland
|
||||
minetest.register_biome(
|
||||
{
|
||||
name = "Wasteland",
|
||||
|
||||
node_top = "main:dirt",
|
||||
depth_top = 2,
|
||||
|
||||
node_water = "main:toxicwater_source",
|
||||
|
||||
y_min = 1,
|
||||
y_max = 170,
|
||||
|
||||
heat_point = 80,
|
||||
humidity_point = 10,
|
||||
})
|
||||
|
||||
--Wasteland Ocean
|
||||
minetest.register_biome(
|
||||
{
|
||||
name = "Wasteland Ocean",
|
||||
|
||||
node_top = "main:dirt",
|
||||
depth_top = 3,
|
||||
|
||||
node_water = "main:toxicwater_source",
|
||||
|
||||
y_min = -31000,
|
||||
y_max = 0,
|
||||
|
||||
heat_point = 80,
|
||||
humidity_point = 30,
|
||||
})
|
||||
|
||||
--Snow Plains
|
||||
minetest.register_biome(
|
||||
{
|
||||
name = "Snow Plains",
|
||||
|
||||
node_top = "main:snow",
|
||||
depth_top = 6,
|
||||
|
||||
node_filler = "main:dirt_frozen",
|
||||
depth_filler = 8,
|
||||
|
||||
node_water = "main:ice_thick",
|
||||
node_river_water = "main:ice_thin",
|
||||
|
||||
y_min = 1,
|
||||
y_max = 50,
|
||||
|
||||
heat_point = 0,
|
||||
humidity_point = 10,
|
||||
})
|
||||
|
||||
--------------
|
||||
--Scatter ores
|
||||
--------------
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "main:sulfur_ore",
|
||||
wherein = "main:stone", "main:cobble",
|
||||
biomes = {"Sulfur Deposit"},
|
||||
clust_scarcity = 16 * 16 * 16,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
y_min = 7,
|
||||
y_max = 15,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "main:iron_ore",
|
||||
wherein = "main:stone", "main:cobble",
|
||||
clust_scarcity = 8 * 8 * 8,
|
||||
clust_num_ores = 6,
|
||||
clust_size = 4,
|
||||
y_min = -30000,
|
||||
y_max = -90,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "main:iron_ore",
|
||||
wherein = "main:stone", "main:cobble",
|
||||
clust_scarcity = 15 * 15 * 15,
|
||||
clust_num_ores = 2,
|
||||
clust_size = 2,
|
||||
y_min = 40,
|
||||
y_max = upper_limit,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "main:coal_ore",
|
||||
wherein = "main:stone", "main:cobble",
|
||||
clust_scarcity = 7 * 7 * 7,
|
||||
clust_num_ores = 5,
|
||||
clust_size = 3,
|
||||
y_min = -30000,
|
||||
y_max = 0,
|
||||
})
|
||||
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "main:coal_ore",
|
||||
wherein = "main:stone", "main:cobble",
|
||||
clust_scarcity = 20 * 20 * 20,
|
||||
clust_num_ores = 4,
|
||||
clust_size = 3,
|
||||
y_min = -250,
|
||||
y_max = upper_limit,
|
||||
})
|
||||
--Cinnabar
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "main:cinnabar_ore",
|
||||
wherein = "main:stone", "main:cobble",
|
||||
clust_scarcity = 18 * 18 * 18,
|
||||
clust_num_ores = 6,
|
||||
clust_size = 4,
|
||||
y_min = -30000,
|
||||
y_max = -100,
|
||||
})
|
||||
|
||||
--Salt
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "main:salt_ore",
|
||||
wherein = "main:stone", "main:cobble",
|
||||
clust_scarcity = 10 * 10 * 10,
|
||||
clust_num_ores = 2,
|
||||
clust_size = 2,
|
||||
y_min = -30000,
|
||||
y_max = 30,
|
||||
})
|
||||
|
||||
--Low Density Diamond
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "main:diamond_ore_lowdens",
|
||||
wherein = "main:stone",
|
||||
clust_scarcity = 10 * 10 * 10,
|
||||
clust_num_ores = 4,
|
||||
clust_size = 6,
|
||||
y_min = -30000,
|
||||
y_max = -1000,
|
||||
})
|
||||
|
||||
--Low Density Diamond
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "main:diamond_ore_hidens",
|
||||
wherein = "main:stone",
|
||||
clust_scarcity = 16 * 16 * 16,
|
||||
clust_num_ores = 8,
|
||||
clust_size = 6,
|
||||
y_min = -30000,
|
||||
y_max = -1200,
|
||||
})
|
||||
|
||||
-------------
|
||||
--Decorations
|
||||
-------------
|
||||
|
||||
-- Rock
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"main:stone", "main:dirt_with_grass", "main:dirt_with_swamp_grass", "main:dirt", "main:sand", "main:snow"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.004,
|
||||
--biomes = {"grassy_plains"},
|
||||
y_max = 200,
|
||||
y_min = 1,
|
||||
decoration = "main:rock",
|
||||
})
|
||||
|
||||
-- Twig
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"main:stone", "main:dirt_with_grass", "main:dirt_with_swamp_grass", "main:dirt", "main:sand", "main:snow"},
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.004,
|
||||
--biomes = {"grassy_plains"},
|
||||
y_max = 200,
|
||||
y_min = 1,
|
||||
decoration = "main:twig",
|
||||
})
|
||||
|
||||
--Small Boulder
|
||||
minetest.register_decoration({
|
||||
deco_type = "schematic",
|
||||
place_on = {"main:dirt_with_grass", "main:dirt", "main:sand", "main:dirt_with_swamp_grass"},
|
||||
rotation = "random",
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.004,
|
||||
biomes = {"Grasslands", "Swamp", "Desert", "Wasteland"},
|
||||
flags = "place_center_x, place_center_z",
|
||||
schematic = minetest.get_modpath("main") .. "/schematics/main_rock_cobble_small.mts",
|
||||
y_min = -32000,
|
||||
y_max = 32000,
|
||||
})
|
||||
|
||||
--Oak Tree
|
||||
minetest.register_decoration({
|
||||
deco_type = "schematic",
|
||||
place_on = {"main:dirt_with_grass"},
|
||||
rotation = "random",
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.004,
|
||||
biomes = {"Grasslands"},
|
||||
flags = "place_center_x, place_center_z",
|
||||
schematic = minetest.get_modpath("main") .. "/schematics/main_tree_oak.mts",
|
||||
y_min = -32000,
|
||||
y_max = 32000,
|
||||
})
|
||||
|
||||
--Tall Oak Tree
|
||||
minetest.register_decoration({
|
||||
deco_type = "schematic",
|
||||
place_on = {"main:dirt_with_grass"},
|
||||
rotation = "random",
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.004,
|
||||
biomes = {"Grasslands", "Swamp"},
|
||||
flags = "place_center_x, place_center_z",
|
||||
schematic = minetest.get_modpath("main") .. "/schematics/main_tree_oak_tall.mts",
|
||||
y_min = -32000,
|
||||
y_max = 32000,
|
||||
})
|
||||
|
||||
--Dead Tall Oak Tree
|
||||
minetest.register_decoration({
|
||||
deco_type = "schematic",
|
||||
place_on = {"main:dirt", "main:stone", "main:sand"},
|
||||
rotation = "random",
|
||||
sidelen = 16,
|
||||
biomes = {"Wasteland", "Sulfur Deposit", "Desert"},
|
||||
flags = "place_center_x, place_center_z",
|
||||
schematic = minetest.get_modpath("main") .. "/schematics/main_tree_oak_tall_dead.mts",
|
||||
y_min = -32000,
|
||||
y_max = 32000,
|
||||
|
||||
noise_params =
|
||||
{
|
||||
offset = -0.0003,
|
||||
scale = 0.0009,
|
||||
spread = {x = 200, y = 200, z = 200},
|
||||
seed = 230,
|
||||
octaves = 3,
|
||||
persist = 0.6
|
||||
},
|
||||
})
|
||||
|
||||
--Apple Tree
|
||||
minetest.register_decoration({
|
||||
deco_type = "schematic",
|
||||
place_on = {"main:dirt_with_grass"},
|
||||
rotation = "random",
|
||||
sidelen = 16,
|
||||
fill_ratio = 0.004,
|
||||
biomes = {"Grasslands"},
|
||||
flags = "place_center_x, place_center_z",
|
||||
schematic = minetest.get_modpath("main") .. "/schematics/main_tree_apple.mts",
|
||||
y_min = -32000,
|
||||
y_max = 32000,
|
||||
})
|
||||
431
mods/main/nodes.lua
Normal file
@@ -0,0 +1,431 @@
|
||||
--Naturally generating nodes
|
||||
minetest.register_node("main:stone",
|
||||
{
|
||||
description = "Stone",
|
||||
tiles = {"main_stone.png"},
|
||||
groups = {cracky = 1, stone = 1},
|
||||
drop = 'main:cobble',
|
||||
legacy_mineral = true,
|
||||
})
|
||||
|
||||
minetest.register_node("main:cobble",
|
||||
{
|
||||
description = "Cobble",
|
||||
tiles = {"main_cobble.png"},
|
||||
groups = {cracky = 2, stone = 1},
|
||||
drop = 'main:cobble',
|
||||
legacy_mineral = true,
|
||||
})
|
||||
|
||||
minetest.register_node("main:rock",
|
||||
{
|
||||
description = "Rock",
|
||||
tiles = {"main_cobble.png"},
|
||||
groups = {cracky = 3, stone = 1, oddly_breakable_by_hand = 3},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
node_box =
|
||||
{
|
||||
type = "fixed",
|
||||
fixed =
|
||||
{
|
||||
{-0.25, -0.5, -0.25, 0.25, 0, 0.25},
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_node("main:dirt",
|
||||
{
|
||||
description = "Dirt",
|
||||
tiles = {"main_dirt.png"},
|
||||
groups = {crumbly = 3, soil = 1},
|
||||
})
|
||||
|
||||
minetest.register_node("main:dirt_frozen", {
|
||||
description = "Frozen Dirt",
|
||||
tiles = {"main_dirt_frozen.png"},
|
||||
groups = {cracky = 1},
|
||||
})
|
||||
|
||||
minetest.register_node("main:snow", {
|
||||
description = "Snow",
|
||||
tiles = {"main_snow.png"},
|
||||
groups = {crumbly = 3},
|
||||
})
|
||||
|
||||
minetest.register_node("main:ice_thin", {
|
||||
drawtype = "allfaces",
|
||||
paramtype = "light",
|
||||
light_propagates = true,
|
||||
sunlight_propagates = true,
|
||||
alpha = 6,
|
||||
description = "Thin Ice",
|
||||
tiles = {"main_ice_thin.png"},
|
||||
groups = {cracky = 3, slippery = 3},
|
||||
})
|
||||
|
||||
minetest.register_node("main:ice_thick", {
|
||||
description = "Thick Ice",
|
||||
tiles = {"main_ice_thick.png"},
|
||||
groups = {cracky = 1},
|
||||
})
|
||||
|
||||
minetest.register_node("main:dirt_with_grass",
|
||||
{
|
||||
description = "Dirt with Grass",
|
||||
tiles = {"main_grass.png", "main_dirt.png",
|
||||
{name = "main_dirt.png^main_grass_side.png",
|
||||
tileable_vertical = false}},
|
||||
groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1},
|
||||
drop = 'main:dirt',
|
||||
})
|
||||
|
||||
minetest.register_node("main:dirt_with_swamp_grass",
|
||||
{
|
||||
description = "Dirt with Swamp Grass",
|
||||
tiles = {"main_swamp_grass.png", "main_dirt.png",
|
||||
{name = "main_dirt.png^main_swamp_grass_side.png",
|
||||
tileable_vertical = false}},
|
||||
groups = {crumbly = 3, soil = 1, spreading_dirt_type = 1},
|
||||
drop = 'main:dirt',
|
||||
})
|
||||
|
||||
minetest.register_node("main:sand",
|
||||
{
|
||||
description = "Sand",
|
||||
tiles = {"main_sand.png"},
|
||||
groups = {crumbly = 3, falling_node = 1, sand = 1},
|
||||
})
|
||||
|
||||
minetest.register_node("main:twig",
|
||||
{
|
||||
description = "Twig",
|
||||
tiles = {"main_log_maple.png"},
|
||||
groups = {choppy = 3, stone = 1, oddly_breakable_by_hand = 3},
|
||||
drawtype = "nodebox",
|
||||
paramtype = "light",
|
||||
drop = "main:stick",
|
||||
node_box =
|
||||
{
|
||||
type = "fixed",
|
||||
fixed =
|
||||
{
|
||||
{-0.125, -0.5, 0, 0.125, -0.3125, 0.1875}, -- NodeBox1
|
||||
{-0.4375, -0.5, 0.0625, -0.125, -0.3125, 0.25}, -- NodeBox3
|
||||
{0.125, -0.5, -0.0625, 0.5, -0.3125, 0.125}, -- NodeBox4
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
--Player made nodes
|
||||
minetest.register_node("main:torch",
|
||||
{
|
||||
description = "Torch",
|
||||
tiles = {"main_lump_coal.png"},
|
||||
light_source = 14,
|
||||
groups = {choppy = 3, oddly_breakable_by_hand = 3},
|
||||
})
|
||||
|
||||
minetest.register_node("main:bricks_red",
|
||||
{
|
||||
description = "Red Bricks",
|
||||
tiles = {"main_bricks_red.png"},
|
||||
groups = {cracky = 2},
|
||||
})
|
||||
|
||||
minetest.register_node("main:bricks_stone",
|
||||
{
|
||||
description = "Stone Bricks",
|
||||
tiles = {"main_bricks_stone.png"},
|
||||
groups = {cracky = 2},
|
||||
})
|
||||
|
||||
minetest.register_node("main:bricks_cobble",
|
||||
{
|
||||
description = "Cobble Bricks",
|
||||
tiles = {"main_bricks_cobble.png"},
|
||||
groups = {cracky = 2},
|
||||
})
|
||||
|
||||
minetest.register_node("main:glass",
|
||||
{
|
||||
description = "Glass",
|
||||
drawtype = "glasslike_framed_optional",
|
||||
tiles = {"main_glass_frame.png", "main_glass.png"},
|
||||
inventory_image = minetest.inventorycube("main_glass_frame.png"),
|
||||
paramtype = "light",
|
||||
sunlight_propagates = true,
|
||||
is_ground_content = false,
|
||||
groups = {cracky = 1, oddly_breakable_by_hand = 1},
|
||||
})
|
||||
|
||||
--Ores
|
||||
minetest.register_node("main:coal_ore",
|
||||
{
|
||||
description = "Coal Ore",
|
||||
tiles = {"main_stone.png^main_coal_ore.png"},
|
||||
groups = {cracky = 1},
|
||||
})
|
||||
|
||||
minetest.register_node("main:iron_ore",
|
||||
{
|
||||
description = "Iron Ore",
|
||||
tiles = {"main_stone.png^main_iron_ore.png"},
|
||||
groups = {cracky = 3},
|
||||
})
|
||||
|
||||
minetest.register_node("main:sulfur_ore",
|
||||
{
|
||||
description = "Sulfur Ore",
|
||||
tiles = {"main_stone.png^main_sulfur_ore.png"},
|
||||
groups = {cracky = 2},
|
||||
})
|
||||
|
||||
minetest.register_node("main:salt_ore",
|
||||
{
|
||||
description = "Salt Ore",
|
||||
tiles = {"main_stone.png^main_salt_ore.png"},
|
||||
groups = {cracky = 3},
|
||||
drop = 'main:salt_crystals',
|
||||
})
|
||||
|
||||
minetest.register_node("main:cinnabar_ore",
|
||||
{
|
||||
description = "Cinnabar",
|
||||
tiles = {"main_stone.png^main_cinnabar_ore.png"},
|
||||
groups = {cracky = 3},
|
||||
})
|
||||
|
||||
--Diamond Ores
|
||||
minetest.register_node("main:diamond_ore_lowdens", {
|
||||
description = "Low Density Diamond ore",
|
||||
tiles = {"main_stone.png^main_diamond_ore_lowdensity.png"},
|
||||
groups = {cracky = 3},
|
||||
})
|
||||
|
||||
minetest.register_node("main:diamond_ore_hidens", {
|
||||
description = "High Density Diamond Ore",
|
||||
tiles = {"main_stone.png^main_diamond_ore.png"},
|
||||
groups = {cracky = 3},
|
||||
})
|
||||
|
||||
--Iron Block
|
||||
minetest.register_node("main:block_iron", {
|
||||
description = "Block Of Iron",
|
||||
tiles = {"main_block_iron.png"},
|
||||
groups = {cracky = 3},
|
||||
drop = 'main:block_iron',
|
||||
})
|
||||
|
||||
--Copper Block
|
||||
minetest.register_node("main:block_copper", {
|
||||
description = "Block Of Copper",
|
||||
tiles = {"main_block_copper.png"},
|
||||
groups = {cracky = 3},
|
||||
})
|
||||
|
||||
--Brass Block
|
||||
minetest.register_node("main:block_brass", {
|
||||
description = "Block Of Brass",
|
||||
tiles = {"main_block_brass.png"},
|
||||
groups = {cracky = 3},
|
||||
})
|
||||
|
||||
--Gold Block
|
||||
minetest.register_node("main:block_gold", {
|
||||
description = "Block Of Gold",
|
||||
tiles = {"main_block_gold.png"},
|
||||
groups = {cracky = 3},
|
||||
})
|
||||
|
||||
--Planks
|
||||
minetest.register_node("main:planks_oak", {
|
||||
description = "Planks",
|
||||
tiles = {"main_planks_oak.png"},
|
||||
groups = {choppy = 3},
|
||||
})
|
||||
|
||||
|
||||
--
|
||||
-- Plants and Other Living Organisms
|
||||
--
|
||||
|
||||
--Red Apple
|
||||
minetest.register_node("main:apple_red", {
|
||||
description = "Red Apple",
|
||||
tiles = {"main_apple_red.png"},
|
||||
groups = {fleshy = 3, oddly_breakable_by_hand = 3},
|
||||
on_use = minetest.item_eat(5),
|
||||
})
|
||||
|
||||
--Orange
|
||||
minetest.register_node("main:orange", {
|
||||
description = "Orange",
|
||||
tiles = {"main_orange.png"},
|
||||
groups = {fleshy = 3, oddly_breakable_by_hand = 3},
|
||||
on_use = minetest.item_eat(4),
|
||||
})
|
||||
|
||||
|
||||
|
||||
--Oak Log
|
||||
minetest.register_node("main:log_oak", {
|
||||
description = "Oak Log",
|
||||
tiles = {"main_log_oak.png"},
|
||||
groups = {choppy = 2, logs = 1},
|
||||
})
|
||||
|
||||
--Oak Leaves
|
||||
minetest.register_node("main:leaves_oak", {
|
||||
paramtype = "light",
|
||||
light_propagates = true,
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
is_ground_content = false,
|
||||
description = "Oak Leaves",
|
||||
tiles = {"main_leaves_oak.png"},
|
||||
groups = {snappy = 3},
|
||||
waving = 1,
|
||||
})
|
||||
|
||||
--Apple Tree Log
|
||||
minetest.register_node("main:log_apple", {
|
||||
description = "Apple Tree Log",
|
||||
tiles = {"main_log_apple.png"},
|
||||
groups = {choppy = 3, logs = 1},
|
||||
waving = 1,
|
||||
})
|
||||
|
||||
--Apple Tree Leaves
|
||||
minetest.register_node("main:leaves_apple", {
|
||||
paramtype = "light",
|
||||
light_propagates = true,
|
||||
sunlight_propagates = true,
|
||||
walkable = false,
|
||||
climbable = true,
|
||||
is_ground_content = false,
|
||||
description = "Apple Tree Leaves",
|
||||
tiles = {"main_leaves_apple.png"},
|
||||
groups = {snappy = 3},
|
||||
waving = 1,
|
||||
})
|
||||
|
||||
--
|
||||
-- Liquids
|
||||
--
|
||||
|
||||
--Fresh water
|
||||
minetest.register_node("main:water_source", {
|
||||
description = "Fresh Water Source",
|
||||
drawtype = "liquid",
|
||||
paramtype = "light",
|
||||
|
||||
tiles = {
|
||||
{
|
||||
name = "main_water_source_animated.png",
|
||||
animation = {
|
||||
type = "vertical_frames",
|
||||
aspect_w = 16,
|
||||
aspect_h = 16,
|
||||
length = 2.0,
|
||||
},
|
||||
},
|
||||
},
|
||||
alpha = 180,
|
||||
post_effect_color = {a = 50, r = 0, g = 50, b = 200},
|
||||
|
||||
--Behavior
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
buildable_to = true,
|
||||
diggable = false,
|
||||
is_ground_content = false,
|
||||
|
||||
--Properties
|
||||
liquid_range = 14,
|
||||
liquid_viscosity = 0.1,
|
||||
drowning = 1,
|
||||
waving = 1,
|
||||
liquidtype = "source",
|
||||
liquid_alternative_flowing = "main:water_flowing",
|
||||
liquid_alternative_source = "main:water_source",
|
||||
groups = {liquid = 3, water = 1},
|
||||
})
|
||||
|
||||
minetest.register_node("main:water_flowing", {
|
||||
description = "Flowing Water",
|
||||
drawtype = "flowingliquid",
|
||||
paramtype = "light",
|
||||
|
||||
tiles = {
|
||||
{
|
||||
name = "main_water_flowing_animated.png",
|
||||
animation = {
|
||||
type = "vertical_frames",
|
||||
aspect_w = 16,
|
||||
aspect_h = 16,
|
||||
length = 2.0,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
special_tiles = {
|
||||
{
|
||||
name = "main_water_flowing_animated.png",
|
||||
animation = {type = "vertical_frames", aspect_w = 16,
|
||||
aspect_h = 16, length = 2.0},
|
||||
backface_culling = true,
|
||||
},
|
||||
|
||||
{
|
||||
name = "main_water_flowing_animated.png",
|
||||
animation = {type = "vertical_frames", aspect_w = 16,
|
||||
aspect_h = 16, length = 2.0},
|
||||
backface_culling = false,
|
||||
}
|
||||
},
|
||||
|
||||
alpha = 180,
|
||||
post_effect_color = {a = 50, r = 0, g = 50, b = 200},
|
||||
|
||||
--Behavior
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
buildable_to = true,
|
||||
diggable = false,
|
||||
is_ground_content = false,
|
||||
|
||||
--Properties
|
||||
liquid_range = 14,
|
||||
liquid_viscosity = 0.1,
|
||||
drowning = 1,
|
||||
waving = 1,
|
||||
liquidtype = "flowing",
|
||||
liquid_alternative_flowing = "main:water_flowing",
|
||||
liquid_alternative_source = "main:water_source",
|
||||
groups = {liquid = 3, water = 1},
|
||||
})
|
||||
|
||||
|
||||
stairs.register_stair_and_slab(
|
||||
"planks_oak",
|
||||
"main:planks_oak",
|
||||
{choppy = 2},
|
||||
{"main_planks_oak.png"},
|
||||
"Oak Plank Stair",
|
||||
"Oak Plank Slab",
|
||||
default.node_sound_wood_defaults(),
|
||||
true
|
||||
)
|
||||
|
||||
stairs.register_stair_and_slab(
|
||||
"log_oak",
|
||||
"main:log_oak",
|
||||
{choppy = 2},
|
||||
{"main_log_oak.png"},
|
||||
"Oak Log Stair",
|
||||
"Oak Log Slab",
|
||||
default.node_sound_wood_defaults(),
|
||||
true
|
||||
)
|
||||
133
mods/main/recipes.lua
Normal file
@@ -0,0 +1,133 @@
|
||||
-----------------------
|
||||
-----------------------
|
||||
---- RECIPES ----
|
||||
-----------------------
|
||||
-----------------------
|
||||
|
||||
|
||||
|
||||
--------------------------
|
||||
-- Sticks, Planks, etc. --
|
||||
--------------------------
|
||||
|
||||
minetest.register_craft({
|
||||
output = "main:planks_oak 4",
|
||||
recipe =
|
||||
{
|
||||
{"", "", ""},
|
||||
{"", "group:logs", ""},
|
||||
{"", "", ""}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "main:stick 12",
|
||||
recipe = {
|
||||
{"", "", ""},
|
||||
{"", "main:planks_oak", ""},
|
||||
{"", "", ""}
|
||||
}
|
||||
})
|
||||
|
||||
------------
|
||||
-- Bricks --
|
||||
------------
|
||||
minetest.register_craft({
|
||||
output = "main:bricks_stone 4",
|
||||
recipe =
|
||||
{
|
||||
{"", "", ""},
|
||||
{"", "main:stone", "main:stone"},
|
||||
{"", "main:stone", "main:stone"}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "main:bricks_cobble 4",
|
||||
recipe =
|
||||
{
|
||||
{"", "", ""},
|
||||
{"", "main:cobble", "main:cobble"},
|
||||
{"", "main:cobble", "main:cobble"}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
------------------------
|
||||
-- Simple Stone Tools --
|
||||
------------------------
|
||||
minetest.register_craft({
|
||||
output = "main:pickaxe_stone_simple",
|
||||
recipe = {
|
||||
{"main:rock", "main:rock", "main:rock"},
|
||||
{"main:rock", "main:stick", "main:rock"},
|
||||
{"", "main:stick", ""}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "main:axe_stone_simple",
|
||||
recipe = {
|
||||
{"main:rock", "main:rock", "main:rock"},
|
||||
{"main:rock", "main:stick", ""},
|
||||
{"", "main:stick", ""}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "main:knife_stone_simple",
|
||||
recipe = {
|
||||
{"", "", ""},
|
||||
{"", "main:rock", ""},
|
||||
{"", "main:stick", ""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
-------------------------
|
||||
-- Refined Stone Tools --
|
||||
-------------------------
|
||||
|
||||
minetest.register_craft({
|
||||
output = "main:pickaxe_stone_refined",
|
||||
recipe = {
|
||||
{"", "", ""},
|
||||
{"", "main:pickaxe_stone_refined", ""},
|
||||
{"", "main:rope", ""}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
|
||||
-----------------
|
||||
-- Steel Tools --
|
||||
-----------------
|
||||
|
||||
minetest.register_craft({
|
||||
output = "main:pickaxe_steel",
|
||||
recipe = {
|
||||
{"main:steel_ingot", "main:steel_ingot", "main:steel_ingot"},
|
||||
{"main:steel_ingot", "main:stick", "main:steel_ingot"},
|
||||
{"", "main:stick", ""}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "main:axe_steel",
|
||||
recipe = {
|
||||
{"main:steel_ingot", "main:steel_ingot", "main:steel_ingot"},
|
||||
{"main:steel_ingot", "main:stick", ""},
|
||||
{"", "main:stick", ""}
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "main:knife_steel",
|
||||
recipe = {
|
||||
{"", "", ""},
|
||||
{"", "main:steel_ingot", ""},
|
||||
{"", "main:stick", ""}
|
||||
}
|
||||
})
|
||||
|
||||
--TO DO: Add Tier 2 / High Tier tools such as chainsaws, pneumatic drills, etc.
|
||||
BIN
mods/main/schematics/main_rock_cobble_small.mts
Normal file
BIN
mods/main/schematics/main_rock_small.mts
Normal file
BIN
mods/main/schematics/main_tree_apple.mts
Normal file
BIN
mods/main/schematics/main_tree_oak.mts
Normal file
BIN
mods/main/schematics/main_tree_oak_tall.mts
Normal file
BIN
mods/main/schematics/main_tree_oak_tall_dead.mts
Normal file
BIN
mods/main/textures/bubble.png
Normal file
|
After Width: | Height: | Size: 267 B |
BIN
mods/main/textures/character.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
mods/main/textures/character_female.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
mods/main/textures/crack_anylength.png
Normal file
|
After Width: | Height: | Size: 326 B |
BIN
mods/main/textures/gui_hotbar.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
mods/main/textures/gui_hotbar_selected.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
mods/main/textures/hand.png
Normal file
|
After Width: | Height: | Size: 155 B |
BIN
mods/main/textures/heart.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
mods/main/textures/leaves_grey.png
Normal file
|
After Width: | Height: | Size: 242 B |
BIN
mods/main/textures/main_apple_red.png
Normal file
|
After Width: | Height: | Size: 425 B |
BIN
mods/main/textures/main_berry_straw.png
Normal file
|
After Width: | Height: | Size: 465 B |
BIN
mods/main/textures/main_block_brass.png
Normal file
|
After Width: | Height: | Size: 272 B |
BIN
mods/main/textures/main_block_copper.png
Normal file
|
After Width: | Height: | Size: 268 B |
BIN
mods/main/textures/main_block_gold.png
Normal file
|
After Width: | Height: | Size: 401 B |
BIN
mods/main/textures/main_block_iron.png
Normal file
|
After Width: | Height: | Size: 289 B |
BIN
mods/main/textures/main_bricks_cobble.png
Normal file
|
After Width: | Height: | Size: 709 B |
BIN
mods/main/textures/main_bricks_red.png
Normal file
|
After Width: | Height: | Size: 629 B |
BIN
mods/main/textures/main_bricks_stone.png
Normal file
|
After Width: | Height: | Size: 545 B |
BIN
mods/main/textures/main_cinnabar_ore.png
Normal file
|
After Width: | Height: | Size: 890 B |
BIN
mods/main/textures/main_coal_ore.png
Normal file
|
After Width: | Height: | Size: 313 B |
BIN
mods/main/textures/main_cobble.png
Normal file
|
After Width: | Height: | Size: 225 B |
BIN
mods/main/textures/main_copper_ore.png
Normal file
|
After Width: | Height: | Size: 654 B |
BIN
mods/main/textures/main_diamond_ore.png
Normal file
|
After Width: | Height: | Size: 451 B |
BIN
mods/main/textures/main_diamond_ore_lowdensity.png
Normal file
|
After Width: | Height: | Size: 509 B |
BIN
mods/main/textures/main_dirt.png
Normal file
|
After Width: | Height: | Size: 884 B |
BIN
mods/main/textures/main_dirt_frozen.png
Normal file
|
After Width: | Height: | Size: 752 B |
BIN
mods/main/textures/main_glass.png
Normal file
|
After Width: | Height: | Size: 186 B |
BIN
mods/main/textures/main_glass_frame.png
Normal file
|
After Width: | Height: | Size: 193 B |
BIN
mods/main/textures/main_grass.png
Normal file
|
After Width: | Height: | Size: 426 B |
BIN
mods/main/textures/main_grass_side.png
Normal file
|
After Width: | Height: | Size: 857 B |
BIN
mods/main/textures/main_ice_thick.png
Normal file
|
After Width: | Height: | Size: 541 B |
BIN
mods/main/textures/main_ice_thin.png
Normal file
|
After Width: | Height: | Size: 285 B |
BIN
mods/main/textures/main_iron_ore.png
Normal file
|
After Width: | Height: | Size: 438 B |
BIN
mods/main/textures/main_knife_stone_simple.png
Normal file
|
After Width: | Height: | Size: 825 B |
BIN
mods/main/textures/main_leaves_apple.png
Normal file
|
After Width: | Height: | Size: 283 B |
BIN
mods/main/textures/main_leaves_oak.png
Normal file
|
After Width: | Height: | Size: 242 B |
BIN
mods/main/textures/main_log_apple.png
Normal file
|
After Width: | Height: | Size: 231 B |
BIN
mods/main/textures/main_log_birch.png
Normal file
|
After Width: | Height: | Size: 832 B |
BIN
mods/main/textures/main_log_maple.png
Normal file
|
After Width: | Height: | Size: 991 B |
BIN
mods/main/textures/main_log_oak.png
Normal file
|
After Width: | Height: | Size: 744 B |
BIN
mods/main/textures/main_lump_coal.png
Normal file
|
After Width: | Height: | Size: 505 B |
BIN
mods/main/textures/main_lump_copper.png
Normal file
|
After Width: | Height: | Size: 534 B |
BIN
mods/main/textures/main_lump_iron.png
Normal file
|
After Width: | Height: | Size: 268 B |
BIN
mods/main/textures/main_lump_sulfur.png
Normal file
|
After Width: | Height: | Size: 591 B |
BIN
mods/main/textures/main_muddywater.png
Normal file
|
After Width: | Height: | Size: 331 B |
BIN
mods/main/textures/main_orange.png
Normal file
|
After Width: | Height: | Size: 397 B |
BIN
mods/main/textures/main_pickaxe_steel.png
Normal file
|
After Width: | Height: | Size: 710 B |
BIN
mods/main/textures/main_pickaxe_stone.png
Normal file
|
After Width: | Height: | Size: 713 B |
BIN
mods/main/textures/main_planks_oak.png
Normal file
|
After Width: | Height: | Size: 377 B |
BIN
mods/main/textures/main_rope.png
Normal file
|
After Width: | Height: | Size: 745 B |
BIN
mods/main/textures/main_salt_crystals.png
Normal file
|
After Width: | Height: | Size: 345 B |
BIN
mods/main/textures/main_salt_ore.png
Normal file
|
After Width: | Height: | Size: 469 B |
BIN
mods/main/textures/main_sand.png
Normal file
|
After Width: | Height: | Size: 911 B |
BIN
mods/main/textures/main_sandstone.png
Normal file
|
After Width: | Height: | Size: 667 B |
BIN
mods/main/textures/main_shelf_empty.png
Normal file
|
After Width: | Height: | Size: 412 B |
BIN
mods/main/textures/main_snow.png
Normal file
|
After Width: | Height: | Size: 553 B |
BIN
mods/main/textures/main_stick.png
Normal file
|
After Width: | Height: | Size: 724 B |
BIN
mods/main/textures/main_stone.png
Normal file
|
After Width: | Height: | Size: 487 B |
BIN
mods/main/textures/main_sulfur_ore.png
Normal file
|
After Width: | Height: | Size: 359 B |
BIN
mods/main/textures/main_swamp_grass.png
Normal file
|
After Width: | Height: | Size: 489 B |
BIN
mods/main/textures/main_swamp_grass_side.png
Normal file
|
After Width: | Height: | Size: 698 B |
BIN
mods/main/textures/main_toxicwater.png
Normal file
|
After Width: | Height: | Size: 327 B |
BIN
mods/main/textures/main_toxicwater_animated.png
Normal file
|
After Width: | Height: | Size: 931 B |
BIN
mods/main/textures/main_twig.png
Normal file
|
After Width: | Height: | Size: 687 B |
BIN
mods/main/textures/main_water.png
Normal file
|
After Width: | Height: | Size: 412 B |
BIN
mods/main/textures/main_water_flowing_animated.png
Normal file
|
After Width: | Height: | Size: 356 B |
BIN
mods/main/textures/main_water_source_animated.png
Normal file
|
After Width: | Height: | Size: 356 B |
BIN
mods/main/textures/player.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
mods/main/textures/player_back.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
69
mods/main/tools.lua
Normal file
@@ -0,0 +1,69 @@
|
||||
minetest.register_item(":", {
|
||||
type = "none",
|
||||
wield_image = "hand.png",
|
||||
wield_scale = {x=1.5,y=2,z=4.5},
|
||||
tool_capabilities = {
|
||||
max_drop_level = 0,
|
||||
full_punch_interval = 0.4,
|
||||
|
||||
groupcaps =
|
||||
{
|
||||
oddly_breakable_by_hand = {times={[1]=3.50,[2]=2.00,[3]=0.70}, uses=0},
|
||||
snappy = {times={[3]=1.00}, uses=0, maxlevel=1},
|
||||
crumbly = {times={[2]=4.50, [3]=1.80}, uses=0, maxlevel=1},
|
||||
},
|
||||
damage_groups = {fleshy = 3, snappy = 2},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_item("main:pickaxe_steel", {
|
||||
type = "none",
|
||||
wield_image = "main_pickaxe_steel.png",
|
||||
inventory_image = "main_pickaxe_steel.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level = 1,
|
||||
full_punch_interval = 0.8,
|
||||
|
||||
groupcaps =
|
||||
{
|
||||
choppy = {times={[1]=0, [2]=0,[3]=0}, uses=0, maxlevel=8},
|
||||
cracky = {times={[1]=0, [2]=0,[3]=0}, uses=0, maxlevel=8},
|
||||
crumbly = {times={[1]=0, [2]=0, [3]=0}, uses=0, maxlevel=8},
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_item("main:pickaxe_stone", {
|
||||
type = "none",
|
||||
wield_image = "main_pickaxe_stone.png",
|
||||
inventory_image = "main_pickaxe_stone.png",
|
||||
tool_capabilities = {
|
||||
max_drop_level = 1,
|
||||
full_punch_interval = 0.8,
|
||||
|
||||
groupcaps =
|
||||
{
|
||||
cracky = {times={[1]=3.80, [2]=2.00,[3]=1.50}, uses=0, maxlevel=1},
|
||||
crumbly = {times={[2]=3.50, [3]=1.80}, uses=0, maxlevel=1},
|
||||
},
|
||||
damage_groups = {fleshy = 4, cracky = 5},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_item("main:knife_stone_simple", {
|
||||
type = "none",
|
||||
wield_image = "main_knife_stone_simple.png",
|
||||
inventory_image = "main_knife_stone_simple.png",
|
||||
tool_capabilities =
|
||||
{
|
||||
max_drop_level = 1,
|
||||
full_punch_interval = 0.8,
|
||||
|
||||
groupcaps =
|
||||
{
|
||||
choppy = {times={[2]=2.00,[3]=1.50}, uses=0, maxlevel=1},
|
||||
crumbly = {times={[2]=3.50, [3]=1.80}, uses=0, maxlevel=1},
|
||||
},
|
||||
damage_groups = {fleshy = 7, choppy = 5},
|
||||
}
|
||||
})
|
||||