Fuck you too, github.

master
GloopMaster 2013-08-08 00:00:17 -04:00
commit 44a07f2673
128 changed files with 1907 additions and 0 deletions

22
.gitattributes vendored Normal file
View File

@ -0,0 +1,22 @@
# Auto detect text files and perform LF normalization
* text=auto
# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union
# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain

5
LICENSE.txt Normal file
View File

@ -0,0 +1,5 @@
Released under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
Legal code available for viewing here: http://creativecommons.org/licenses/by-sa/3.0/legalcode
Basic license overview available for viewing here: http://creativecommons.org/licenses/by-sa/3.0/

21
README.txt Normal file
View File

@ -0,0 +1,21 @@
=-=-=-=-=-=-=
GloopTest :D *insert witty comment here*
=-=-=-=-=-=-=
Adds a collection of things into minetest. As it stands, this adds three different modules.
More (or possibly (most likely) less) imformation can be found here: http://minetest.net/forum/viewtopic.php?id=4345
--==--==--
Ore Module: Adds a variety of ores into minetest, for use here and possibly in other mods.
OtherGen Module: Adds generation aside from ores.
Parts Module: Adds some bits and bobs for machinery and some minor blocks.
Table Module: Adds tables. Yay?
Tools Module: Adds extra kinds of tools.
Compat Module: Puts into place a number of aliases for cross-mod-compatibility.

View File

@ -0,0 +1,68 @@
glooptest.biome_module = {}
glooptest.debug("MESSAGE","Loading Biome Module Now!")
<<<<<<< HEAD
=======
local stone_sounds = default.node_sound_stone_defaults()
minetest.register_node("glooptest:slate", {
description = "Slate",
tiles = {"glooptest_slate.png"},
is_ground_content = true,
groups = {cracky=3, stone=1},
sounds = stone_sounds,
})
>>>>>>> *boop*
minetest.register_biome({
name = "glooptest_flatlands",
height_min = 1,
height_max = 3,
heat_point = 40.0,
humidity_point = 40.0,
})
minetest.register_biome({
name = "glooptest_wetlands",
height_min = -4,
height_max = 5,
heat_point = 40.0,
humidity_point = 70.0,
})
minetest.register_biome({
name = "glooptest_wasteland",
height_min = 3,
height_max = 20,
node_top = "default:sand",
depth_top = 1,
node_filler = "default:desert_sand",
depth_filler = 1,
heat_point = 40.0,
humidity_point = 10.0,
})
minetest.register_biome({
<<<<<<< HEAD
name = "glooptest_mountains",
height_min = 1,
height_max = 200,
node_top = "default:stone",
depth_top = 1,
node_filler = "default:stone",
depth_filler = 1,
heat_point = 30.0,
humidity_point = 40.0,
})
=======
name = "glooptest_plateau",
height_min = 190,
height_max = 200,
node_top = "glooptest:slate",
depth_top = 100,
node_filler = "glooptest:slate",
depth_filler = 100,
heat_point = 30.0,
humidity_point = 40.0,
})
>>>>>>> *boop*

View File

@ -0,0 +1,5 @@
-- GloopTest compat module configurations file.
-- Controls what mods to bother being compatible with.
-- Support GloopOres (obsolete mod)
GLOOPORES_SUPPORT = true

View File

@ -0,0 +1,35 @@
glooptest.compat_module = {}
glooptest.debug("MESSAGE","Loading Compat Module Now!")
dofile(minetest.get_modpath("glooptest").."/compat_module/config.cfg")
if GLOOPORES_SUPPORT == true then
minetest.register_alias("gloopores:mineral_alatro", "glooptest:mineral_alatro")
minetest.register_alias("gloopores:alatro_lump", "glooptest:alatro_lump")
minetest.register_alias("gloopores:alatro_ingot", "glooptest:alatro_ingot")
minetest.register_alias("gloopores:alatro_block", "glooptest:alatroblock")
minetest.register_alias("gloopores:pick_alatro", "glooptest:pick_alatro")
minetest.register_alias("gloopores:axe_alatro", "glooptest:axe_alatro")
minetest.register_alias("gloopores:shovel_alatro", "glooptest:shovel_alatro")
minetest.register_alias("gloopores:sword_alatro", "glooptest:sword_alatro")
minetest.register_alias("gloopores:mineral_arol", "glooptest:mineral_arol")
minetest.register_alias("gloopores:arol_lump", "glooptest:arol_lump")
minetest.register_alias("gloopores:arol_ingot", "glooptest:arol_ingot")
minetest.register_alias("gloopores:pick_arol", "glooptest:pick_arol")
minetest.register_alias("gloopores:axe_arol", "glooptest:axe_arol")
minetest.register_alias("gloopores:shovel_arol", "glooptest:shovel_arol")
minetest.register_alias("gloopores:sword_arol", "glooptest:sword_arol")
minetest.register_alias("gloopores:mineral_akalin", "glooptest:mineral_akalin")
minetest.register_alias("gloopores:akalin_lump", "glooptest:akalin_lump")
minetest.register_alias("gloopores:akalin_ingot", "glooptest:akalin_ingot")
minetest.register_alias("gloopores:akalin_block", "glooptest:akalinblock")
minetest.register_alias("gloopores:mineral_talinite", "glooptest:mineral_talinite")
minetest.register_alias("gloopores:talinite_lump", "glooptest:talinite_lump")
minetest.register_alias("gloopores:talinite_ingot", "glooptest:talinite_ingot")
minetest.register_alias("gloopores:talinite_block", "glooptest:taliniteblock")
minetest.register_alias("gloopores:mineral_kalite", "glooptest:mineral_kalite")
minetest.register_alias("gloopores:kalite_lump", "glooptest:kalite_lump")
minetest.register_alias("gloopores:kalite_torch", "glooptest:kalite_torch")
minetest.register_alias("gloopores:mineral_desert_coal", "glooptest:mineral_desert_coal")
minetest.register_alias("gloopores:mineral_desert_iron", "glooptest:mineral_desert_iron")
end

1
glooptest/depends.txt Normal file
View File

@ -0,0 +1 @@
default

5
glooptest/general.cfg Normal file
View File

@ -0,0 +1,5 @@
-- GloopTest general configurations file.
-- Please note that this file only contains configs which apply to the entire modpack; the modules themselves have much more detailed configuration files
-- which pertain more to that module.
-- Nothing here!

71
glooptest/init.lua Normal file
View File

@ -0,0 +1,71 @@
-- GloopTest general initiation file.
-- To edit what modules will load, please edit module.cfg which can be found in the same folder as this file.
--
-- GloopTest random data:
-- Version : 0.0.4a
-- Current module amount : 6
-- Current compatible minetest version : 0.4.7
-- License : CC-BY-SA
-- Totals: lol I don't know
-- End random data.
-- Open configuration files.
dofile(minetest.get_modpath("glooptest").."/general.cfg")
dofile(minetest.get_modpath("glooptest").."/module.cfg")
-- Set up some variables and crap.
local modules_loaded = 0
glooptest = {}
-- Set up some general functions for random crap.
function glooptest.debug(level,message)
print("["..level.."][GloopTest v0.0.4a] "..message)
end
if LOAD_ORE_MODULE == true then
dofile(minetest.get_modpath("glooptest").."/ore_module/init.lua")
local modulecount = modules_loaded
modules_loaded = modulecount+1
end
if LOAD_TOOLS_MODULE == true then
dofile(minetest.get_modpath("glooptest").."/tools_module/init.lua")
local modulecount = modules_loaded
modules_loaded = modulecount+1
end
if LOAD_PARTS_MODULE == true then
dofile(minetest.get_modpath("glooptest").."/parts_module/init.lua")
local modulecount = modules_loaded
modules_loaded = modulecount+1
end
if LOAD_TABLE_MODULE == true then
dofile(minetest.get_modpath("glooptest").."/table_module/init.lua")
local modulecount = modules_loaded
modules_loaded = modulecount+1
end
if LOAD_OTHERGEN_MODULE == true then
dofile(minetest.get_modpath("glooptest").."/othergen_module/init.lua")
local modulecount = modules_loaded
modules_loaded = modulecount+1
end
if LOAD_BIOME_MODULE == true then
dofile(minetest.get_modpath("glooptest").."/biome_module/init.lua")
local modulecount = modules_loaded
modules_loaded = modulecount+1
end
if LOAD_COMPAT_MODULE == true then
dofile(minetest.get_modpath("glooptest").."/compat_module/init.lua")
local modulecount = modules_loaded
modules_loaded = modulecount+1
end
if modules_loaded == 0 then
glooptest.debug("ERROR","It helps if you activate some of the modules.")
else
glooptest.debug("MESSAGE",modules_loaded.." modules were successfully loaded!")
end

5
glooptest/license.txt Normal file
View File

@ -0,0 +1,5 @@
Released under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
Legal code available for viewing here: http://creativecommons.org/licenses/by-sa/3.0/legalcode
Basic license overview available for viewing here: http://creativecommons.org/licenses/by-sa/3.0/

31
glooptest/module.cfg Normal file
View File

@ -0,0 +1,31 @@
-- GloopTest module loading configuration file.
-- This file controls which modules load when GloopTest initiates. This does not control any other aspects of GloopTest.
-- Allow compatibility module to load. (Recommended with: Ore Module)
-- Diabling this means NO internal mod compatibility! (Other mods may add support for glooptest though)
LOAD_COMPAT_MODULE = true
-- Allow ore module to load.
LOAD_ORE_MODULE = true
-- Allow tools module to load. (Recommended with: Ore Module)
LOAD_TOOLS_MODULE = true
-- Allow parts module to load. (Recommended with: Ore Module)
LOAD_PARTS_MODULE = true
-- Allow table module to load. (Recommended with: Ore Module)
LOAD_TABLE_MODULE = true
-- Allow biome module to load. (Requires: Mapgen v7)
-- Disabled by default until mapgen v7 is standard
LOAD_BIOME_MODULE = true
-- Allow othergen module to load. (Recommended with: Ore Module and Tools Module)
LOAD_OTHERGEN_MODULE = true
<<<<<<< HEAD
-- Allow biome module to load. (Requires: Mapgen v7) (Disabled by default until mapgen v7 is standard)
LOAD_BIOME_MODULE = false
=======
>>>>>>> *boop*

View File

@ -0,0 +1,152 @@
function glooptest.ore_module.set_tool_recipe(modname,type,material,name)
if type == "sword" then
minetest.register_craft({
recipe = {{material},{material},{"default:stick"}},
output = modname..":sword_"..name,
})
end
if type == "axe" then
minetest.register_craft({
recipe = {{material, material}, {material, "default:stick"}, {"","default:stick"}},
output = modname..":axe_"..name,
})
minetest.register_craft({
recipe = {{material, material}, {"default:stick", material}, {"default:stick", ""}},
output = modname..":axe_"..name,
})
end
if type == "pick" or type == "pickaxe" then
minetest.register_craft({
recipe = {{material, material, material}, {"","default:stick",""}, {"","default:stick",""}},
output = modname..":pick_"..name,
})
end
if type == "shovel" then
minetest.register_craft({
recipe = {{material},{"default:stick"},{"default:stick"}},
output = modname..":shovel_"..name,
})
end
if type == "handsaw" then
minetest.register_craft({
recipe = {{material, "default:stick"},{material, "default:stick"},{"", "default:stick"}},
output = modname..":handsaw_"..name,
})
minetest.register_craft({
recipe = {{"default:stick", material},{"default:stick", material},{"default:stick", ""}},
output = modname..":handsaw_"..name,
})
end
if type == "hammer" then
minetest.register_craft({
recipe = {{material, "default:stick", material}, {material, "default:stick", material}, {"", "default:stick", ""}},
output = modname..":hammer_"..name,
})
end
end
generation_ores = {}
function glooptest.ore_module.register_ore(modname, name, desc, uses)
if uses.block ~= nil and uses.block.makes ~= false then
minetest.register_node(modname..":"..name.."block", {
description = desc.." Block",
tiles = {uses.block.texture},
is_ground_content = true,
light_source = uses.block.light or 0,
groups = uses.block.groups,
sounds = uses.block.sounds
})
if uses.block.fromingots == true and uses.ingot ~= nil then
minetest.register_craft({
output = modname..":"..name.."block",
recipe = {
{modname..":"..name.."_ingot", modname..":"..name.."_ingot", modname..":"..name.."_ingot"},
{modname..":"..name.."_ingot", modname..":"..name.."_ingot", modname..":"..name.."_ingot"},
{modname..":"..name.."_ingot", modname..":"..name.."_ingot", modname..":"..name.."_ingot"}
}
})
minetest.register_craft({
output = modname..":"..name.."_ingot 9",
recipe = {
{modname..":"..name.."block"}
}
})
end
end
if uses.ore ~= nil and uses.ore.makes ~= false then
minetest.register_node(modname..":mineral_"..name, {
description = desc.." Ore",
tiles = {uses.ore.texture.base.."^"..uses.ore.texture.overlay},
is_ground_content = true,
drop = uses.ore.drop,
light_source = uses.ore.light or 0,
groups = uses.ore.groups,
sounds = uses.ore.sounds
})
minetest.register_ore({
ore_type = "scatter",
ore = modname..":mineral_"..name,
wherein = uses.ore.generate.generate_inside_of,
clust_scarcity = uses.ore.generate.chunks_per_mapblock,
clust_num_ores = uses.ore.generate.max_blocks_per_chunk,
clust_size = uses.ore.generate.chunk_size,
height_min = uses.ore.generate.miny,
height_max = uses.ore.generate.maxy,
})
end
if uses.lump ~= nil and uses.lump.makes ~= false then
minetest.register_craftitem(modname..":"..name.."_"..uses.lump.name, {
description = desc.." "..uses.lump.desc,
inventory_image = uses.lump.texture,
})
end
if uses.ingot ~= nil and uses.ingot.makes ~= false then
minetest.register_craftitem(modname..":"..name.."_ingot", {
description = desc.." Ingot",
inventory_image = uses.ingot.texture,
})
if uses.ingot.smeltrecipe == true and uses.lump ~= nil then
minetest.register_craft({
type = "cooking",
output = modname..":"..name.."_ingot",
recipe = modname..":"..name.."_"..uses.lump.name,
})
end
end
if uses.tools ~= nil and uses.tools.make ~= nil then
if uses.tools.make.sword == true then
minetest.register_tool(modname..":sword_"..name, {
description = desc.." Sword",
inventory_image = uses.tools.texture.sword,
tool_capabilities = uses.tools.caps.sword,
})
glooptest.ore_module.set_tool_recipe(modname,"sword",modname..":"..name.."_ingot",name)
end
if uses.tools.make.axe == true then
minetest.register_tool(modname..":axe_"..name, {
description = desc.." Axe",
inventory_image = uses.tools.texture.axe,
tool_capabilities = uses.tools.caps.axe,
})
glooptest.ore_module.set_tool_recipe(modname,"axe",modname..":"..name.."_ingot",name)
end
if uses.tools.make.pick == true then
minetest.register_tool(modname..":pick_"..name, {
description = desc.." Pickaxe",
inventory_image = uses.tools.texture.pick,
tool_capabilities = uses.tools.caps.pick,
})
glooptest.ore_module.set_tool_recipe(modname,"pick",modname..":"..name.."_ingot",name)
end
if uses.tools.make.shovel == true then
minetest.register_tool(modname..":shovel_"..name, {
description = desc.." Shovel",
inventory_image = uses.tools.texture.shovel,
wield_image = uses.tools.texture.shovel.."^[transformR90",
tool_capabilities = uses.tools.caps.shovel,
})
glooptest.ore_module.set_tool_recipe(modname,"shovel",modname..":"..name.."_ingot",name)
end
end
end

View File

@ -0,0 +1,524 @@
glooptest.ore_module = {}
glooptest.debug("MESSAGE","Loading Ore Module Now!")
local stone_sounds = default.node_sound_stone_defaults()
dofile(minetest.get_modpath("glooptest").."/ore_module/api.lua")
-- HUGE NOTE HERE:
-- I did not make the textures. celeron55/erlehmann made the textures which were licensed under CC-BY-SA, and then edited by me.
-- Suck it, minetest community.
glooptest.ore_module.register_ore("glooptest", "kalite", "Kalite", {
ore = {
makes = true,
drop = {
max_items = 4,
items = {
{
items = {'glooptest:kalite_lump'},
rarity = 5,
},
{
items = {'glooptest:kalite_lump'},
rarity = 2,
},
{
items = {'glooptest:kalite_lump 2'},
},
}
},
texture = {
base = "default_stone.png",
overlay = "gloopores_mineral_kalite.png",
},
groups = {cracky=3},
sounds = stone_sounds,
generate = {
generate_inside_of = "default:stone",
chunks_per_mapblock = 9*9*9,
chunk_size = 6,
max_blocks_per_chunk = 7,
miny = -31000,
maxy = 10
},
},
})
minetest.register_craftitem("glooptest:kalite_lump", {
description = "Kalite Lump",
inventory_image = "gloopores_kalite_lump.png",
on_use = minetest.item_eat(1),
})
minetest.register_node("glooptest:kalite_torch", {
description = "Kalite Torch",
drawtype = "torchlike",
tiles = {
{name="gloopores_kalite_torch_on_floor_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}},
{name="gloopores_kalite_torch_on_ceiling_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}},
{name="gloopores_kalite_torch_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}}
},
inventory_image = "gloopores_kalite_torch_on_floor.png",
wield_image = "gloopores_kalite_torch_on_floor.png",
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
walkable = false,
light_source = LIGHT_MAX-1,
selection_box = {
type = "wallmounted",
wall_top = {-0.1, 0.5-0.6, -0.1, 0.1, 0.5, 0.1},
wall_bottom = {-0.1, -0.5, -0.1, 0.1, -0.5+0.6, 0.1},
wall_side = {-0.5, -0.3, -0.1, -0.5+0.3, 0.3, 0.1},
},
groups = {choppy=2,dig_immediate=3},
legacy_wallmounted = true,
sounds = default.node_sound_defaults(),
})
minetest.register_craft({
output = "glooptest:kalite_torch 4",
recipe = {
{"glooptest:kalite_lump"},
{"default:stick"},
}
})
minetest.register_craft({
type = "fuel",
recipe = "gloopores:kalite_lump",
burntime = 30,
})
glooptest.ore_module.register_ore("glooptest", "alatro", "Alatro", {
ore = {
makes = true,
drop = "glooptest:alatro_lump",
texture = {
base = "default_stone.png",
overlay = "gloopores_mineral_alatro.png",
},
groups = {cracky=2},
sounds = stone_sounds,
generate = {
generate_inside_of = "default:stone",
chunks_per_mapblock = 9*9*9,
chunk_size = 2,
max_blocks_per_chunk = 6,
miny = 0,
maxy = 256
},
},
lump = {
makes = true,
name = "lump",
desc = "Lump",
texture = "gloopores_alatro_lump.png"
},
ingot = {
makes = true,
texture = "gloopores_alatro_ingot.png",
smeltrecipe = true
},
block = {
makes = true,
texture = "gloopores_alatro_block.png",
groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2},
sounds = stone_sounds,
fromingots = true
},
tools = {
make = {
sword = true,
axe = true,
pick = true,
shovel = true
},
texture = {
sword = "gloopores_tool_alatrosword.png",
axe = "gloopores_tool_alatroaxe.png",
pick = "gloopores_tool_alatropick.png",
shovel = "gloopores_tool_alatroshovel.png"
},
caps = {
sword = {
full_punch_interval = 1.0,
max_drop_level = 0,
groupcaps={
fleshy={times={[2]=0.80, [3]=0.60}, uses=40, maxlevel=1},
snappy={times={[2]=0.80, [3]=0.60}, uses=40, maxlevel=1},
choppy={times={[3]=0.80}, uses=40, maxlevel=0}
},
damage_groups = {fleshy=5},
},
axe = {
full_punch_interval = 1.0,
max_drop_level = 0,
groupcaps = {
choppy = {times={[2]=0.65, [3]=0.40}, uses=40, maxlevel=1},
fleshy = {times={[2]=0.65, [3]=0.40}, uses=40, maxlevel=1}
},
damage_groups = {fleshy=3},
},
pick = {
full_punch_interval = 1.0,
max_drop_level = 0,
groupcaps = {
cracky = {times={[2]=0.65, [3]=0.40}, uses=40, maxlevel=1}
},
damage_groups = {fleshy=3},
},
shovel = {
full_punch_interval = 1.0,
max_drop_level = 0,
groupcaps = {
crumbly = {times={[2]=0.60, [3]=0.35}, uses=40, maxlevel=1}
},
damage_groups = {fleshy=3},
},
}
}
})
glooptest.ore_module.register_ore("glooptest", "talinite", "Talinite", {
ore = {
makes = true,
drop = "glooptest:talinite_lump",
texture = {
base = "default_stone.png",
overlay = "gloopores_mineral_talinite.png"
},
groups = {cracky=1},
sounds = stone_sounds,
light = 6,
generate = {
generate_inside_of = "default:stone",
chunks_per_mapblock = 12*12*12,
chunk_size = 2,
max_blocks_per_chunk = 4,
miny = -31000,
maxy = -250
}
},
lump = {
makes = true,
name = "lump",
desc = "Lump",
texture = "gloopores_talinite_lump.png"
},
ingot = {
makes = true,
texture = "gloopores_talinite_ingot.png",
smeltrecipe = true
},
block = {
makes = true,
texture = "gloopores_talinite_block.png",
groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2},
sounds = stone_sounds,
light = 14,
fromingots = true
}
})
glooptest.ore_module.register_ore("glooptest", "akalin", "Akalin", {
ore = {
makes = true,
drop = "glooptest:akalin_lump",
texture = {
base = "default_desert_stone.png",
overlay = "gloopores_mineral_akalin.png"
},
groups = {cracky=3},
sounds = stone_sounds,
generate = {
generate_inside_of = "default:desert_stone",
chunks_per_mapblock = 7*7*7,
chunk_size = 3,
max_blocks_per_chunk = 9,
miny = 0,
maxy = 256
}
},
lump = {
makes = true,
name = "lump",
desc = "Lump",
texture = "gloopores_akalin_lump.png"
},
ingot = {
makes = true,
texture = "gloopores_akalin_ingot.png",
smeltrecipe = true
},
block = {
makes = true,
texture = "gloopores_akalin_block.png",
groups = {snappy=1,bendy=2,cracky=1,melty=2,level=2},
sounds = stone_sounds,
fromingots = true
}
})
glooptest.ore_module.register_ore("glooptest", "arol", "Arol", {
ore = {
makes = true,
drop = "glooptest:arol_lump",
texture = {
base = "default_stone.png",
overlay = "gloopores_mineral_arol.png"
},
groups = {cracky=1},
sounds = stone_sounds,
generate = {
generate_inside_of = "default:stone",
chunks_per_mapblock = 10*10*10,
chunk_size = 2,
max_blocks_per_chunk = 2,
miny = -31000,
maxy = -20
}
},
lump = {
makes = true,
name = "lump",
desc = "Lump",
texture = "gloopores_arol_lump.png"
},
ingot = {
makes = true,
texture = "gloopores_arol_ingot.png",
smeltrecipe = true
},
tools = {
make = {
sword = true,
axe = true,
pick = true,
shovel = true
},
texture = {
sword = "gloopores_tool_arolsword.png",
axe = "gloopores_tool_arolaxe.png",
pick = "gloopores_tool_arolpick.png",
shovel = "gloopores_tool_arolshovel.png"
},
caps = {
sword = {
full_punch_interval = 0.5,
max_drop_level = 0,
groupcaps = {
fleshy = {times={[2]=1.00, [3]=0.80}, uses=300, maxlevel=1},
snappy = {times={[2]=1.00, [3]=0.80}, uses=300, maxlevel=1},
choppy = {times={[3]=1.20}, uses=300, maxlevel=0}
},
damage_groups = {fleshy=6},
},
axe = {
full_punch_interval = 0.5,
max_drop_level = 0,
groupcaps = {
choppy = {times={[1]=3.00, [2]=1.00, [3]=0.70}, uses=300, maxlevel=1},
fleshy = {times={[2]=1.30, [3]=0.70}, uses=300, maxlevel=1}
},
damage_groups = {fleshy=3},
},
pick = {
full_punch_interval = 0.5,
max_drop_level = 0,
groupcaps = {
cracky = {times={[1]=3.00, [2]=1.20, [3]=0.80}, uses=300, maxlevel=1}
},
damage_groups = {fleshy=3},
},
shovel = {
full_punch_interval = 0.5,
max_drop_level = 0,
groupcaps = {
crumbly = {times={[1]=1.50, [2]=0.75, [3]=0.45}, uses=300, maxlevel=1}
},
damage_groups = {fleshy=3},
}
}
}
})
glooptest.ore_module.register_ore("glooptest", "desert_iron", "Desert Iron", {
ore = {
makes = true,
drop = "default:iron_lump",
texture = {
base = "default_desert_stone.png",
overlay = "default_mineral_iron.png",
},
groups = {cracky=3},
sounds = stone_sounds,
generate = {
generate_inside_of = "default:desert_stone",
chunks_per_mapblock = 7*7*7,
chunk_size = 2,
max_blocks_per_chunk = 3,
miny = 0,
maxy = 10
},
},
})
glooptest.ore_module.register_ore("glooptest", "desert_coal", "Desert Coal", {
ore = {
makes = true,
drop = "default:coal_lump",
texture = {
base = "default_desert_stone.png",
overlay = "default_mineral_coal.png",
},
groups = {cracky=3},
sounds = stone_sounds,
generate = {
generate_inside_of = "default:desert_stone",
chunks_per_mapblock = 6*6*6,
chunk_size = 3,
max_blocks_per_chunk = 8,
miny = 0,
maxy = 30
},
},
})
-- gems
glooptest.ore_module.register_ore("glooptest", "ruby", "Ruby", {
ore = {
makes = true,
drop = "glooptest:ruby_gem",
texture = {
base = "default_stone.png",
overlay = "glooptest_mineral_ruby.png",
},
groups = {cracky=1},
sounds = stone_sounds,
generate = {
generate_inside_of = "default:stone",
chunks_per_mapblock = 15*15*15,
chunk_size = 5,
max_blocks_per_chunk = 5,
miny = -110,
maxy = -30
},
},
})
minetest.register_craftitem("glooptest:ruby_gem", {
description = "Ruby",
inventory_image = "glooptest_gem_ruby.png",
groups = {glooptest_gem=1},
})
glooptest.ore_module.register_ore("glooptest", "sapphire", "Sapphire", {
ore = {
makes = true,
drop = "glooptest:sapphire_gem",
texture = {
base = "default_stone.png",
overlay = "glooptest_mineral_sapphire.png",
},
groups = {cracky=1},
sounds = stone_sounds,
generate = {
generate_inside_of = "default:stone",
chunks_per_mapblock = 15*15*15,
chunk_size = 5,
max_blocks_per_chunk = 5,
miny = -138,
maxy = -30
},
},
})
minetest.register_craftitem("glooptest:sapphire_gem", {
description = "Sapphire",
inventory_image = "glooptest_gem_sapphire.png",
groups = {glooptest_gem=1},
})
glooptest.ore_module.register_ore("glooptest", "emerald", "Emerald", {
ore = {
makes = true,
drop = "glooptest:emerald_gem",
texture = {
base = "default_stone.png",
overlay = "glooptest_mineral_emerald.png",
},
groups = {cracky=1},
sounds = stone_sounds,
generate = {
generate_inside_of = "default:stone",
chunks_per_mapblock = 15*15*15,
chunk_size = 4,
max_blocks_per_chunk = 4,
miny = -200,
maxy = -70
},
},
})
minetest.register_craftitem("glooptest:emerald_gem", {
description = "Emerald",
inventory_image = "glooptest_gem_emerald.png",
groups = {glooptest_gem=1},
})
glooptest.ore_module.register_ore("glooptest", "topaz", "Topaz", {
ore = {
makes = true,
drop = "glooptest:topaz_gem",
texture = {
base = "default_stone.png",
overlay = "glooptest_mineral_topaz.png",
},
groups = {cracky=1},
sounds = stone_sounds,
generate = {
generate_inside_of = "default:stone",
chunks_per_mapblock = 15*15*15,
chunk_size = 4,
max_blocks_per_chunk = 4,
miny = -250,
maxy = -70
},
},
})
minetest.register_craftitem("glooptest:topaz_gem", {
description = "Topaz",
inventory_image = "glooptest_gem_topaz.png",
groups = {glooptest_gem=1},
})
glooptest.ore_module.register_ore("glooptest", "amethyst", "Amethyst", {
ore = {
makes = true,
drop = "glooptest:amethyst_gem",
texture = {
base = "default_stone.png",
overlay = "glooptest_mineral_amethyst.png",
},
groups = {cracky=1},
sounds = stone_sounds,
generate = {
generate_inside_of = "default:stone",
chunks_per_mapblock = 15*15*15,
chunk_size = 3,
max_blocks_per_chunk = 3,
miny = -31000,
maxy = -128
},
},
})
minetest.register_craftitem("glooptest:amethyst_gem", {
description = "Amethyst",
inventory_image = "glooptest_gem_amethyst.png",
groups = {glooptest_gem=1},
})

View File

@ -0,0 +1,374 @@
glooptest.extragen_module = {}
glooptest.extragen_module.treasure={}
glooptest.debug("MESSAGE","Loading Extragen Module Now!")
-- {item name, max stack size, item rarity}
glooptest.extragen_module.treasure[1] = {
{"default:stick", 30, 1},
{"default:wood", 10, 1},
{"default:tree", 5, 2},
{"default:jungletree", 3, 6},
{"default:cobble", 10, 2},
{"default:pick_wood", 1, 12},
{"default:shovel_wood", 1, 12},
{"default:sword_wood", 1, 12},
{"default:axe_wood", 1, 12},
{"default:pick_stone", 1, 24},
{"default:shovel_stone", 1, 24},
{"default:sword_stone", 1, 24},
{"default:axe_stone", 1, 24},
{"default:furnace", 1, 8},
}
glooptest.extragen_module.treasure[2] = {
{"default:stick", 40, 1},
{"default:cobble", 30, 1},
{"default:glass", 20, 4},
{"default:stone", 15, 2},
{"default:desert_stone", 15, 5},
{"default:coal_lump", 15, 6},
{"default:steel_ingot", 2, 8},
{"default:obsidian_shard", 1, 10},
{"default:pick_stone", 1, 12},
{"default:shovel_stone", 1, 12},
{"default:sword_stone", 1, 12},
{"default:axe_stone", 1, 12},
}
glooptest.extragen_module.treasure[3] = {
{"default:cobble", 40, 1},
{"default:stick", 20, 3},
{"default:torch", 15, 3},
{"default:coal_lump", 20, 4},
{"default:iron_lump", 10, 7},
{"default:copper_lump", 10, 7},
{"default:obsidian_shard", 5, 24},
{"default:mese_crystal_fragment", 3, 24},
{"default:pick_bronze", 1, 12},
{"default:shovel_bronze", 1, 12},
{"default:sword_bronze", 1, 12},
{"default:axe_bronze", 1, 12},
}
glooptest.extragen_module.treasure[4] = {
{"default:torch", 50, 3},
{"default:coal_lump", 30, 3},
{"default:iron_lump", 20, 5},
{"default:gold_lump", 5, 16},
{"default:mese_crystal_fragment", 5, 10},
{"default:mese_crystal", 1, 25},
{"default:diamond", 1, 100},
{"default:pick_mese", 1, 18},
{"default:shovel_mese", 1, 18},
{"default:sword_mese", 1, 18},
{"default:axe_mese", 1, 18},
}
glooptest.extragen_module.treasure[5] = {
{"default:torch", 70, 3},
{"default:iron_lump", 30, 3},
{"default:gold_lump", 8, 15},
{"default:mese_crystal_fragment", 15, 10},
{"default:mese_crystal", 1, 17},
{"default:diamond", 1, 24},
{"default:pick_mese", 1, 12},
{"default:shovel_mese", 1, 12},
{"default:sword_mese", 1, 12},
{"default:axe_mese", 1, 12},
{"default:pick_diamond", 1, 60},
{"default:shovel_diamond", 1, 60},
{"default:sword_diamond", 1, 60},
{"default:axe_diamond", 1, 60},
}
local treasure_chest_formspec =
"size[8,9]"..
"list[current_name;main;0,0;8,4;]"..
"list[current_player;main;0,5;8,4;]"
local treasure_chest_nodebox = {
{-7/16, -8/16, -7/16, 7/16, 6/16, 7/16},
{-8/16, -8/16, -8/16, 8/16, -7/16, 8/16},
{-8/16, 1/16, -8/16, 8/16, 3/16, 8/16},
}
local function treasure_chest_populate(rank, pos)
for i = 1,32 do
for _ = 1,math.random(1,2) do
item = glooptest.extragen_module.treasure[rank][math.random(1, #glooptest.extragen_module.treasure[rank])]
item_rarity = item[3]
if math.random(1, item_rarity+math.random(1,3)) == 1 then
item_name = item[1]
item_stacksize = item[2]-math.random(0,item[2]-1)
minetest.get_inventory({type="node",pos={x=pos.x,y=pos.y,z=pos.z}}):set_stack("main", i, ItemStack({name=item_name,count=item_stacksize}))
break
else
end
end
end
end
function glooptest.extragen_module.register_chest_loot(rank, entry)
if minetest.registered_items[entry[1]] ~= nil then
table.insert(glooptest.extragen_module.treasure[rank], entry)
end
end
glooptest.extragen_module.register_chest_loot(1, {"glooptest:handsaw_wood", 1, 12})
glooptest.extragen_module.register_chest_loot(1, {"glooptest:hammer_wood", 1, 12})
glooptest.extragen_module.register_chest_loot(1, {"glooptest:handsaw_stone", 1, 24})
glooptest.extragen_module.register_chest_loot(1, {"glooptest:hammer_stone", 1, 24})
glooptest.extragen_module.register_chest_loot(2, {"glooptest:handsaw_stone", 1, 12})
glooptest.extragen_module.register_chest_loot(2, {"glooptest:hammer_stone", 1, 12})
glooptest.extragen_module.register_chest_loot(3, {"glooptest:handsaw_bronze", 1, 12})
glooptest.extragen_module.register_chest_loot(3, {"glooptest:hammer_bronze", 1, 12})
glooptest.extragen_module.register_chest_loot(4, {"glooptest:handsaw_mese", 1, 18})
glooptest.extragen_module.register_chest_loot(4, {"glooptest:hammer_mese", 1, 18})
glooptest.extragen_module.register_chest_loot(5, {"glooptest:handsaw_mese", 1, 12})
glooptest.extragen_module.register_chest_loot(5, {"glooptest:hammer_mese", 1, 12})
glooptest.extragen_module.register_chest_loot(5, {"glooptest:handsaw_diamond", 1, 60})
glooptest.extragen_module.register_chest_loot(5, {"glooptest:hammer_diamond", 1, 60})
minetest.register_node("glooptest:treasure_chest_1", {
description = "Treasure Chest Rank 1",
drawtype = "nodebox",
tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
"default_chest_side.png", "default_chest_side.png", "default_chest_front.png"},
paramtype = "light",
paramtype2 = "facedir",
drop = "",
groups = {choppy=2,oddly_breakable_by_hand=2},
legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(),
node_box = {
type = "fixed",
fixed = treasure_chest_nodebox,
},
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec",treasure_chest_formspec)
meta:set_string("infotext", "Treasure Chest Rank I")
local inv = meta:get_inventory()
inv:set_size("main", 32)
treasure_chest_populate(1, pos)
end,
can_dig = function(pos,player)
local meta = minetest.get_meta(pos);
local inv = meta:get_inventory()
return inv:is_empty("main")
end,
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
glooptest.debug("ACTION", player:get_player_name().." moves items in R1 treasure chest at "..minetest.pos_to_string(pos)..".")
end,
on_metadata_inventory_put = function(pos, listname, index, stack, player)
glooptest.debug("ACTION", player:get_player_name().." moves items in R1 treasure chest at "..minetest.pos_to_string(pos)..".")
end,
on_metadata_inventory_take = function(pos, listname, index, stack, player)
glooptest.debug("ACTION", player:get_player_name().." takes items from R1 treasure chest at "..minetest.pos_to_string(pos)..".")
end,
})
minetest.register_node("glooptest:treasure_chest_2", {
description = "Treasure Chest Rank 2",
drawtype = "nodebox",
tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
"default_chest_side.png", "default_chest_side.png", "default_chest_front.png"},
paramtype = "light",
paramtype2 = "facedir",
drop = "",
groups = {choppy=2,oddly_breakable_by_hand=2},
legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(),
node_box = {
type = "fixed",
fixed = treasure_chest_nodebox,
},
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec",treasure_chest_formspec)
meta:set_string("infotext", "Treasure Chest Rank II")
local inv = meta:get_inventory()
inv:set_size("main", 32)
treasure_chest_populate(2, pos)
end,
can_dig = function(pos,player)
local meta = minetest.get_meta(pos);
local inv = meta:get_inventory()
return inv:is_empty("main")
end,
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
glooptest.debug("ACTION", player:get_player_name().." moves items in R1 treasure chest at "..minetest.pos_to_string(pos)..".")
end,
on_metadata_inventory_put = function(pos, listname, index, stack, player)
glooptest.debug("ACTION", player:get_player_name().." moves items in R1 treasure chest at "..minetest.pos_to_string(pos)..".")
end,
on_metadata_inventory_take = function(pos, listname, index, stack, player)
glooptest.debug("ACTION", player:get_player_name().." takes items from R1 treasure chest at "..minetest.pos_to_string(pos)..".")
end,
})
minetest.register_node("glooptest:treasure_chest_3", {
description = "Treasure Chest Rank 3",
drawtype = "nodebox",
tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
"default_chest_side.png", "default_chest_side.png", "default_chest_front.png"},
paramtype = "light",
paramtype2 = "facedir",
drop = "",
groups = {choppy=2,oddly_breakable_by_hand=2},
legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(),
node_box = {
type = "fixed",
fixed = treasure_chest_nodebox,
},
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec",treasure_chest_formspec)
meta:set_string("infotext", "Treasure Chest Rank III")
local inv = meta:get_inventory()
inv:set_size("main", 32)
treasure_chest_populate(3, pos)
end,
can_dig = function(pos,player)
local meta = minetest.get_meta(pos);
local inv = meta:get_inventory()
return inv:is_empty("main")
end,
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
glooptest.debug("ACTION", player:get_player_name().." moves items in R1 treasure chest at "..minetest.pos_to_string(pos)..".")
end,
on_metadata_inventory_put = function(pos, listname, index, stack, player)
glooptest.debug("ACTION", player:get_player_name().." moves items in R1 treasure chest at "..minetest.pos_to_string(pos)..".")
end,
on_metadata_inventory_take = function(pos, listname, index, stack, player)
glooptest.debug("ACTION", player:get_player_name().." takes items from R1 treasure chest at "..minetest.pos_to_string(pos)..".")
end,
})
minetest.register_node("glooptest:treasure_chest_4", {
description = "Treasure Chest Rank 4",
drawtype = "nodebox",
tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
"default_chest_side.png", "default_chest_side.png", "default_chest_front.png"},
paramtype = "light",
paramtype2 = "facedir",
drop = "",
groups = {choppy=2,oddly_breakable_by_hand=2},
node_box = {
type = "fixed",
fixed = treasure_chest_nodebox,
},
legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(),
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec",treasure_chest_formspec)
meta:set_string("infotext", "Treasure Chest Rank IV")
local inv = meta:get_inventory()
inv:set_size("main", 32)
treasure_chest_populate(4, pos)
end,
can_dig = function(pos,player)
local meta = minetest.get_meta(pos);
local inv = meta:get_inventory()
return inv:is_empty("main")
end,
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
glooptest.debug("ACTION", player:get_player_name().." moves items in R1 treasure chest at "..minetest.pos_to_string(pos)..".")
end,
on_metadata_inventory_put = function(pos, listname, index, stack, player)
glooptest.debug("ACTION", player:get_player_name().." moves items in R1 treasure chest at "..minetest.pos_to_string(pos)..".")
end,
on_metadata_inventory_take = function(pos, listname, index, stack, player)
glooptest.debug("ACTION", player:get_player_name().." takes items from R1 treasure chest at "..minetest.pos_to_string(pos)..".")
end,
})
minetest.register_node("glooptest:treasure_chest_5", {
description = "Treasure Chest Rank 5",
drawtype = "nodebox",
tiles = {"default_chest_top.png", "default_chest_top.png", "default_chest_side.png",
"default_chest_side.png", "default_chest_side.png", "default_chest_front.png"},
paramtype = "light",
paramtype2 = "facedir",
drop = "",
groups = {choppy=2,oddly_breakable_by_hand=2},
legacy_facedir_simple = true,
sounds = default.node_sound_wood_defaults(),
node_box = {
type = "fixed",
fixed = treasure_chest_nodebox,
},
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("formspec",treasure_chest_formspec)
meta:set_string("infotext", "Treasure Chest Rank V")
local inv = meta:get_inventory()
inv:set_size("main", 32)
treasure_chest_populate(5, pos)
end,
can_dig = function(pos,player)
local meta = minetest.get_meta(pos);
local inv = meta:get_inventory()
return inv:is_empty("main")
end,
on_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)
glooptest.debug("ACTION", player:get_player_name().." moves items in R1 treasure chest at "..minetest.pos_to_string(pos)..".")
end,
on_metadata_inventory_put = function(pos, listname, index, stack, player)
glooptest.debug("ACTION", player:get_player_name().." moves items in R1 treasure chest at "..minetest.pos_to_string(pos)..".")
end,
on_metadata_inventory_take = function(pos, listname, index, stack, player)
glooptest.debug("ACTION", player:get_player_name().." takes items from R1 treasure chest at "..minetest.pos_to_string(pos)..".")
end,
})
minetest.register_on_generated(function(minp, maxp)
coords = {}
coords.x = {}
coords.y = {}
coords.z = {}
for i = minp.x,maxp.x do
table.insert(coords.x, i)
end
for i = minp.y,maxp.y do
table.insert(coords.y, i)
end
for i = minp.z,maxp.z do
table.insert(coords.z, i)
end
for x = 1,#coords.x do
for y = 1,#coords.y do
for z = 1,#coords.z do
if minetest.get_node({x=coords.x[x],y=coords.y[y]+1,z=coords.z[z]}).name == "air" and minetest.get_node({x=coords.x[x],y=coords.y[y],z=coords.z[z]}).name ~= "air" and minetest.registered_nodes[minetest.get_node({x=coords.x[x],y=coords.y[y],z=coords.z[z]}).name].drawtype == "normal" then
if coords.y[y] >=0 then
if math.random(1,5000) == 1 then
minetest.place_node({x=coords.x[x],y=coords.y[y]+1,z=coords.z[z]}, {name="glooptest:treasure_chest_1", param2=math.random(1,4)})
elseif math.random(1,8000) == 1 then
minetest.place_node({x=coords.x[x],y=coords.y[y]+1,z=coords.z[z]}, {name="glooptest:treasure_chest_2", param2=math.random(1,4)})
end
elseif coords.y[y] <=-30 then
if math.random(1,1000) == 1 then
minetest.place_node({x=coords.x[x],y=coords.y[y]+1,z=coords.z[z]}, {name="glooptest:treasure_chest_3", param2=math.random(1,4)})
elseif coords.y[y] <=-1000 then
if math.random(1,1300) == 1 then
minetest.place_node({x=coords.x[x],y=coords.y[y]+1,z=coords.z[z]}, {name="glooptest:treasure_chest_4", param2=math.random(1,4)})
elseif coords.y[y] <=-2500 then
if math.random(1,2000) == 1 then
minetest.place_node({x=coords.x[x],y=coords.y[y]+1,z=coords.z[z]}, {name="glooptest:treasure_chest_5", param2=math.random(1,4)})
end
end
end
end
end
end
end
end
end)
--minetest.register_on_generated(glooptest.extragen_module.spawn_chests(minp, maxp))

View File

@ -0,0 +1,174 @@
glooptest.parts_module = {}
glooptest.debug("MESSAGE","Loading Parts Module Now!")
minetest.register_craftitem("glooptest:chainlink", {
description = "Chainlink",
inventory_image = "glooptest_chainlink.png"
})
minetest.register_craft({
output = "glooptest:chainlink 8",
recipe = {
{"", "default:steel_ingot", ""},
{"default:steel_ingot", "", "default:steel_ingot"},
{"", "default:steel_ingot", ""}
}
})
minetest.register_node("glooptest:crystal_glass", {
description = "Crystal Glass",
drawtype = "allfaces",
tiles = {"glooptest_crystal_glass.png"},
inventory_image = minetest.inventorycube("glooptest_crystal_glass.png"),
paramtype = "light",
sunlight_propagates = true,
groups = {cracky=3},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_craft({
output = "glooptest:crystal_glass 4",
recipe = {
{"default:glass", "default:desert_stone"},
{"default:desert_stone", "default:glass"},
}
})
minetest.register_craft({
output = "glooptest:crystal_glass 4",
recipe = {
{"default:desert_stone", "default:glass"},
{"default:glass", "default:desert_stone"},
}
})
minetest.register_node("glooptest:reinforced_crystal_glass", {
description = "Steel-Reinforced Crystal Glass",
drawtype = "allfaces",
tiles = {"glooptest_reinforced_crystal_glass.png"},
inventory_image = minetest.inventorycube("glooptest_reinforced_crystal_glass.png"),
paramtype = "light",
sunlight_propagates = true,
groups = {cracky=2},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_craft({
output = "glooptest:reinforced_crystal_glass 8",
recipe = {
{"glooptest:crystal_glass", "glooptest:crystal_glass", "glooptest:crystal_glass"},
{"glooptest:crystal_glass", "default:steel_ingot", "glooptest:crystal_glass"},
{"glooptest:crystal_glass", "glooptest:crystal_glass", "glooptest:crystal_glass"}
}
})
if LOAD_ORE_MODULE == true then
minetest.register_node("glooptest:akalin_crystal_glass", {
description = "Akalin-Reinforced Crystal Glass",
drawtype = "allfaces",
tiles = {"glooptest_akalin_crystal_glass.png"},
inventory_image = minetest.inventorycube("glooptest_akalin_crystal_glass.png"),
paramtype = "light",
sunlight_propagates = true,
groups = {cracky=2},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_craft({
output = "glooptest:akalin_crystal_glass 8",
recipe = {
{"glooptest:crystal_glass", "glooptest:crystal_glass", "glooptest:crystal_glass"},
{"glooptest:crystal_glass", "glooptest:akalin_ingot", "glooptest:crystal_glass"},
{"glooptest:crystal_glass", "glooptest:crystal_glass", "glooptest:crystal_glass"}
}
})
minetest.register_node("glooptest:heavy_crystal_glass", {
description = "Heavily Reinforced Crystal Glass",
drawtype = "allfaces",
tiles = {"glooptest_reinforced_akalin_crystal_glass.png"},
inventory_image = minetest.inventorycube("glooptest_reinforced_akalin_crystal_glass.png"),
paramtype = "light",
sunlight_propagates = true,
groups = {cracky=1},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_craft({
output = "glooptest:heavy_crystal_glass 4",
recipe = {
{"glooptest:reinforced_crystal_glass", "glooptest:akalin_crystal_glass"},
{"glooptest:akalin_crystal_glass", "glooptest:reinforced_crystal_glass"},
}
})
minetest.register_craft({
output = "glooptest:heavy_crystal_glass 4",
recipe = {
{"glooptest:akalin_crystal_glass", "glooptest:reinforced_crystal_glass"},
{"glooptest:reinforced_crystal_glass", "glooptest:akalin_crystal_glass"},
}
})
minetest.register_node("glooptest:alatro_crystal_glass", {
description = "Alatro-Reinforced Crystal Glass",
drawtype = "allfaces",
tiles = {"glooptest_alatro_crystal_glass.png"},
use_texture_alpha = true,
inventory_image = minetest.inventorycube("glooptest_alatro_crystal_glass.png"),
paramtype = "light",
groups = {cracky=2},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_craft({
output = "glooptest:alatro_crystal_glass 8",
recipe = {
{"glooptest:crystal_glass", "glooptest:crystal_glass", "glooptest:crystal_glass"},
{"glooptest:crystal_glass", "glooptest:alatro_ingot", "glooptest:crystal_glass"},
{"glooptest:crystal_glass", "glooptest:crystal_glass", "glooptest:crystal_glass"}
}
})
minetest.register_node("glooptest:arol_crystal_glass", {
description = "Arol-Reinforced Crystal Glass",
drawtype = "allfaces",
tiles = {"glooptest_arol_crystal_glass.png"},
inventory_image = minetest.inventorycube("glooptest_arol_crystal_glass.png"),
paramtype = "light",
sunlight_propagates = true,
groups = {cracky=1},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_craft({
output = "glooptest:arol_crystal_glass 8",
recipe = {
{"glooptest:crystal_glass", "glooptest:crystal_glass", "glooptest:crystal_glass"},
{"glooptest:crystal_glass", "glooptest:arol_ingot", "glooptest:crystal_glass"},
{"glooptest:crystal_glass", "glooptest:crystal_glass", "glooptest:crystal_glass"}
}
})
minetest.register_node("glooptest:talinite_crystal_glass", {
description = "Talinite-Reinforced Crystal Glass",
drawtype = "allfaces",
tiles = {"glooptest_talinite_crystal_glass.png"},
inventory_image = minetest.inventorycube("glooptest_talinite_crystal_glass.png"),
paramtype = "light",
sunlight_propagates = true,
light_source = 14,
groups = {cracky=2},
sounds = default.node_sound_glass_defaults(),
})
minetest.register_craft({
output = "glooptest:talinite_crystal_glass 8",
recipe = {
{"glooptest:crystal_glass", "glooptest:crystal_glass", "glooptest:crystal_glass"},
{"glooptest:crystal_glass", "glooptest:talinite_ingot", "glooptest:crystal_glass"},
{"glooptest:crystal_glass", "glooptest:crystal_glass", "glooptest:crystal_glass"}
}
})
end

View File

@ -0,0 +1,76 @@
glooptest.table_module = {}
glooptest.debug("MESSAGE","Loading Table Module Now!")
--dofile(minetest.get_modpath("glooptest").."/table_module/api.lua")
local fixed = {
{ -8/16, -8/16, -8/16, 8/16, -4/16, 8/16 }, -- base
{ -8/16, 3/16, -8/16, 8/16, 8/16, 8/16 }, -- top
{ 3/16, -7/16, 3/16, 7/16, 7/16, 7/16 },
{ 3/16, -7/16, -7/16, 7/16, 7/16, -3/16 },
{ -7/16, -7/16, 3/16, -3/16, 7/16, 7/16 },
{ -7/16, -7/16, -7/16, -3/16, 7/16, -3/16 },
}
-- {used item, produced node}
glooptest.table_module.table_changers = {
{},
}
function glooptest.table_module.register_table(used_item, produced_node)
if minetest.registered_items[used_item] ~= nil and minetest.registered_items[produced_node] ~= nil then
table.insert(glooptest.table_module.table_changers, {used_item, produced_node})
end
end
minetest.register_alias("glooptest:table", "glooptest:wooden_table")
minetest.register_node("glooptest:wooden_table", {
description = "Wooden Table",
drawtype = "nodebox",
tiles = {"glooptest_table_tb.png","glooptest_table_tb.png","glooptest_table_side.png"},
paramtype = "light",
groups = {choppy=3, snappy=3},
node_box = {
type = "fixed",
fixed = fixed,
},
})
minetest.register_craft({
output = "glooptest:table",
recipe = {
{"group:wood","group:wood","group:wood"},
{"default:stick","","default:stick"},
{"group:wood","","group:wood"},
}
})
minetest.register_craftitem("glooptest:upgrade_core", {
description = "Upgrade Core",
inventory_image = "glooptest_upgrade_core.png",
})
minetest.register_craft({
output = "glooptest:upgrade_core",
recipe = {
{"", "glooptest:akalin_ingot", ""},
{"glooptest:akalin_ingot", "default:mese_crystal_fragment", "glooptest:akalin_ingot"},
{"", "glooptest:akalin_ingot", ""},
},
})
if LOAD_ORE_MODULE == true then
minetest.register_craftitem("glooptest:encrusting_upgrade", {
description = "Encrusting Upgrade",
inventory_image = "glooptest_encrusting_upgrade.png",
})
minetest.register_craft({
output = "glooptest:encrusting_upgrade",
recipe = {
{"group:glooptest_gem", "group:glooptest_gem", "group:glooptest_gem"},
{"glooptest:hammer_steel", "glooptest:upgrade_core", "glooptest:handsaw_steel"},
{"group:glooptest_gem", "group:glooptest_gem", "group:glooptest_gem"},
},
})
end

Binary file not shown.

After

Width:  |  Height:  |  Size: 299 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 218 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 330 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 545 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 204 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 190 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 194 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 145 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 135 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 B

Some files were not shown because too many files have changed in this diff Show More