diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index bb4aa22..aaf32d1 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -208,7 +208,7 @@ minetest.register_node("default:water_source", { liquid_alternative_source = "default:water_source", liquid_viscosity = 3, groups = {liquid=3, water = 1}, - post_effect_color = {a=100, r=0, g=64, b=200}, + post_effect_color = {a=50, r=0, g=64, b=200}, }) minetest.register_node("default:water_flowing", { @@ -435,7 +435,7 @@ default.register_wool("black") minetest.register_node("default:stone", { description = "Stone", tiles = {"default_stone.png"}, - groups = {cracky = 3}, + groups = {cracky = 3, stone= 1}, drop = "default:stone_item 5", }) @@ -513,3 +513,18 @@ minetest.register_node("default:stone_with_ruby", { groups = {cracky = 1}, drop = "default:ruby", }) + +-- rail + + +minetest.register_node("default:rail", { + description = "Rail", + drawtype = "raillike", + tiles = {"default_rail.png", "default_rail_curve.png", + "default_rail_t.png", "default_rail_cross.png"}, + inventory_image = "default_rail.png", + wield_image = "default_rail.png", + paramtype = "light", + walkable = false, + groups = {choppy = 1, attached_node = 1}, +}) diff --git a/mods/default/nodes.lua~ b/mods/default/nodes.lua~ index bb4aa22..aaf32d1 100644 --- a/mods/default/nodes.lua~ +++ b/mods/default/nodes.lua~ @@ -208,7 +208,7 @@ minetest.register_node("default:water_source", { liquid_alternative_source = "default:water_source", liquid_viscosity = 3, groups = {liquid=3, water = 1}, - post_effect_color = {a=100, r=0, g=64, b=200}, + post_effect_color = {a=50, r=0, g=64, b=200}, }) minetest.register_node("default:water_flowing", { @@ -435,7 +435,7 @@ default.register_wool("black") minetest.register_node("default:stone", { description = "Stone", tiles = {"default_stone.png"}, - groups = {cracky = 3}, + groups = {cracky = 3, stone= 1}, drop = "default:stone_item 5", }) @@ -513,3 +513,18 @@ minetest.register_node("default:stone_with_ruby", { groups = {cracky = 1}, drop = "default:ruby", }) + +-- rail + + +minetest.register_node("default:rail", { + description = "Rail", + drawtype = "raillike", + tiles = {"default_rail.png", "default_rail_curve.png", + "default_rail_t.png", "default_rail_cross.png"}, + inventory_image = "default_rail.png", + wield_image = "default_rail.png", + paramtype = "light", + walkable = false, + groups = {choppy = 1, attached_node = 1}, +}) diff --git a/mods/default/textures/default_rail.png b/mods/default/textures/default_rail.png new file mode 100644 index 0000000..ca6329f Binary files /dev/null and b/mods/default/textures/default_rail.png differ diff --git a/mods/default/textures/default_rail_cross.png b/mods/default/textures/default_rail_cross.png new file mode 100644 index 0000000..d8f7a41 Binary files /dev/null and b/mods/default/textures/default_rail_cross.png differ diff --git a/mods/default/textures/default_rail_curve.png b/mods/default/textures/default_rail_curve.png new file mode 100644 index 0000000..55ca3f9 Binary files /dev/null and b/mods/default/textures/default_rail_curve.png differ diff --git a/mods/default/textures/default_rail_t.png b/mods/default/textures/default_rail_t.png new file mode 100644 index 0000000..cce6e14 Binary files /dev/null and b/mods/default/textures/default_rail_t.png differ diff --git a/mods/lava/LICENSE.txt b/mods/lava/LICENSE.txt new file mode 100644 index 0000000..6f6a256 --- /dev/null +++ b/mods/lava/LICENSE.txt @@ -0,0 +1,16 @@ +License for Code +---------------- + +Copyright (C) 2016 cd2 (cdqwertz) + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or +(at your option) any later version. + +http://www.gnu.org/licenses/lgpl-2.1.html + +License for Media +----------------- + +CC-BY-SA 3.0 UNPORTED. Created by cd2 (cdqwertz) diff --git a/mods/lava/init.lua b/mods/lava/init.lua new file mode 100644 index 0000000..3939ce0 --- /dev/null +++ b/mods/lava/init.lua @@ -0,0 +1,71 @@ +minetest.register_node("lava:lava_source", { + description = "Lava Source", + drawtype = "liquid", + tiles = {"lava_lava.png"}, + walkable = false, + pointable = false, + diggable = false, + buildable = false, + buildable_to = true, + paramtype = "light", + alpha = 160, + drowning = 1, + liquidtype = "source", + liquid_alternative_flowing = "lava:lava_flowing", + liquid_alternative_source = "lava:lava_source", + liquid_viscosity = 6, + groups = {liquid=3, lava = 1}, + post_effect_color = {a=100, r=200, g=64, b=0}, + damage_per_second = 4 * 2, + light_source = 10, +}) + +minetest.register_node("lava:lava_flowing", { + description = "Lava Flowing", + tiles = {"lava_lava.png"}, + special_tiles = { + { + name = "lava_lava.png", + backface_culling = false, + }, + { + name = "lava_lava.png", + backface_culling = true, + }, + }, + walkable = false, + drawtype = "flowingliquid", + pointable = false, + diggable = false, + buildable = false, + buildable_to = true, + alpha = 160, + drowning = 1, + paramtype = "light", + liquidtype = "flowing", + liquid_alternative_flowing = "lava:lava_flowing", + liquid_alternative_source = "lava:lava_source", + liquid_viscosity = 6, + groups = {liquid=3, not_in_creative_inventory=1, lava = 1}, + post_effect_color = {a=100, r=200, g=64, b=0}, + damage_per_second = 4 * 2, + light_source = 10, +}) + +minetest.register_node("lava:basalt", { + description = "Basalt", + tiles = {"lava_basalt.png"}, + groups = {cracky = 3, stone = 1}, +}) + +minetest.register_abm({ + nodenames = {"group:lava"}, + neighbors = {"group:water"}, + interval = 1.0, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + minetest.set_node(pos, {name = "lava:basalt"}) + end, +}) + +minetest.register_alias("mapgen_lava_source", "lava:lava_source") diff --git a/mods/lava/init.lua~ b/mods/lava/init.lua~ new file mode 100644 index 0000000..3939ce0 --- /dev/null +++ b/mods/lava/init.lua~ @@ -0,0 +1,71 @@ +minetest.register_node("lava:lava_source", { + description = "Lava Source", + drawtype = "liquid", + tiles = {"lava_lava.png"}, + walkable = false, + pointable = false, + diggable = false, + buildable = false, + buildable_to = true, + paramtype = "light", + alpha = 160, + drowning = 1, + liquidtype = "source", + liquid_alternative_flowing = "lava:lava_flowing", + liquid_alternative_source = "lava:lava_source", + liquid_viscosity = 6, + groups = {liquid=3, lava = 1}, + post_effect_color = {a=100, r=200, g=64, b=0}, + damage_per_second = 4 * 2, + light_source = 10, +}) + +minetest.register_node("lava:lava_flowing", { + description = "Lava Flowing", + tiles = {"lava_lava.png"}, + special_tiles = { + { + name = "lava_lava.png", + backface_culling = false, + }, + { + name = "lava_lava.png", + backface_culling = true, + }, + }, + walkable = false, + drawtype = "flowingliquid", + pointable = false, + diggable = false, + buildable = false, + buildable_to = true, + alpha = 160, + drowning = 1, + paramtype = "light", + liquidtype = "flowing", + liquid_alternative_flowing = "lava:lava_flowing", + liquid_alternative_source = "lava:lava_source", + liquid_viscosity = 6, + groups = {liquid=3, not_in_creative_inventory=1, lava = 1}, + post_effect_color = {a=100, r=200, g=64, b=0}, + damage_per_second = 4 * 2, + light_source = 10, +}) + +minetest.register_node("lava:basalt", { + description = "Basalt", + tiles = {"lava_basalt.png"}, + groups = {cracky = 3, stone = 1}, +}) + +minetest.register_abm({ + nodenames = {"group:lava"}, + neighbors = {"group:water"}, + interval = 1.0, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + minetest.set_node(pos, {name = "lava:basalt"}) + end, +}) + +minetest.register_alias("mapgen_lava_source", "lava:lava_source") diff --git a/mods/lava/textures/lava_basalt.png b/mods/lava/textures/lava_basalt.png new file mode 100644 index 0000000..7451fc0 Binary files /dev/null and b/mods/lava/textures/lava_basalt.png differ diff --git a/mods/lava/textures/lava_lava.png b/mods/lava/textures/lava_lava.png new file mode 100644 index 0000000..d04f1ca Binary files /dev/null and b/mods/lava/textures/lava_lava.png differ diff --git a/mods/legendary_items/init.lua b/mods/legendary_items/init.lua index fbc1255..52856d8 100644 --- a/mods/legendary_items/init.lua +++ b/mods/legendary_items/init.lua @@ -1,7 +1,7 @@ legendary_items = {} legendary_items.register_rare_weapon = function(name, forlevel, def) minetest.register_tool(":legendary_items:"..name, { - description = def.description.."\n For Level: ".. tostring(forlevel).. "\n Damage: " .. tostring(def.damage), + description = def.description.."\n For Level: ".. tostring(forlevel).. "\n Damage: " .. tostring(def.damage) .. "\n Rare Item", inventory_image = def.inventory_image, wield_scale = def.wield_scale, tool_capabilities = { @@ -11,6 +11,17 @@ legendary_items.register_rare_weapon = function(name, forlevel, def) }) end +-- rare + +legendary_items.register_rare_weapon("old_hammer", 3, { + description = "Old Hammer", + inventory_image = "legendary_items_old_hammer.png", + wield_scale = {x = 2, y = 2, z =1}, + damage = 20, +}) + +-- super rare + minetest.register_craftitem("legendary_items:paper", { description = "The Legendary Paper", inventory_image = "legendary_items_paper.png", diff --git a/mods/legendary_items/init.lua~ b/mods/legendary_items/init.lua~ index fbc1255..52856d8 100644 --- a/mods/legendary_items/init.lua~ +++ b/mods/legendary_items/init.lua~ @@ -1,7 +1,7 @@ legendary_items = {} legendary_items.register_rare_weapon = function(name, forlevel, def) minetest.register_tool(":legendary_items:"..name, { - description = def.description.."\n For Level: ".. tostring(forlevel).. "\n Damage: " .. tostring(def.damage), + description = def.description.."\n For Level: ".. tostring(forlevel).. "\n Damage: " .. tostring(def.damage) .. "\n Rare Item", inventory_image = def.inventory_image, wield_scale = def.wield_scale, tool_capabilities = { @@ -11,6 +11,17 @@ legendary_items.register_rare_weapon = function(name, forlevel, def) }) end +-- rare + +legendary_items.register_rare_weapon("old_hammer", 3, { + description = "Old Hammer", + inventory_image = "legendary_items_old_hammer.png", + wield_scale = {x = 2, y = 2, z =1}, + damage = 20, +}) + +-- super rare + minetest.register_craftitem("legendary_items:paper", { description = "The Legendary Paper", inventory_image = "legendary_items_paper.png", diff --git a/mods/legendary_items/textures/legendary_items_old_hammer.png b/mods/legendary_items/textures/legendary_items_old_hammer.png new file mode 100644 index 0000000..ed762a9 Binary files /dev/null and b/mods/legendary_items/textures/legendary_items_old_hammer.png differ diff --git a/mods/quests/init.lua b/mods/quests/init.lua index 00502aa..b40b62f 100644 --- a/mods/quests/init.lua +++ b/mods/quests/init.lua @@ -5,9 +5,16 @@ minetest.register_node("quests:quest_block", { on_punch = function(pos, node, player, pointed_thing) local meta = minetest.get_meta(pos) + if meta:get_string("item") ~= "" then + return + end local items = {"default:dirt", "default:sand", "default:iron_lump", "default:stone_item", "default:string"} local item = items[math.random(5)] - meta:set_string("infotext", "Bring me some " .. item .. ", pls :)") + if minetest.registered_nodes[item] then + meta:set_string("infotext", "Bring me some " .. minetest.registered_nodes[item].description .. ", pls :)") + else + meta:set_string("infotext", "Bring me some " .. minetest.registered_craftitems[item].description .. ", pls :)") + end meta:set_string("item", item) end, @@ -20,7 +27,7 @@ minetest.register_node("quests:quest_block", { end if itemstack:to_table().name == meta:get_string("item") then meta:set_string("infotext", "Thank you!") - player:get_inventory():add_item("main", {name = "default:xp"}) + player:get_inventory():add_item("main", {name = "default:xp",count = math.random(10, 30)}) minetest.add_particlespawner({ amount = 500, time = 5, diff --git a/mods/quests/init.lua~ b/mods/quests/init.lua~ index 00502aa..b40b62f 100644 --- a/mods/quests/init.lua~ +++ b/mods/quests/init.lua~ @@ -5,9 +5,16 @@ minetest.register_node("quests:quest_block", { on_punch = function(pos, node, player, pointed_thing) local meta = minetest.get_meta(pos) + if meta:get_string("item") ~= "" then + return + end local items = {"default:dirt", "default:sand", "default:iron_lump", "default:stone_item", "default:string"} local item = items[math.random(5)] - meta:set_string("infotext", "Bring me some " .. item .. ", pls :)") + if minetest.registered_nodes[item] then + meta:set_string("infotext", "Bring me some " .. minetest.registered_nodes[item].description .. ", pls :)") + else + meta:set_string("infotext", "Bring me some " .. minetest.registered_craftitems[item].description .. ", pls :)") + end meta:set_string("item", item) end, @@ -20,7 +27,7 @@ minetest.register_node("quests:quest_block", { end if itemstack:to_table().name == meta:get_string("item") then meta:set_string("infotext", "Thank you!") - player:get_inventory():add_item("main", {name = "default:xp"}) + player:get_inventory():add_item("main", {name = "default:xp",count = math.random(10, 30)}) minetest.add_particlespawner({ amount = 500, time = 5, diff --git a/mods/torch/LICENSE.txt b/mods/torch/LICENSE.txt new file mode 100644 index 0000000..6f6a256 --- /dev/null +++ b/mods/torch/LICENSE.txt @@ -0,0 +1,16 @@ +License for Code +---------------- + +Copyright (C) 2016 cd2 (cdqwertz) + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU Lesser General Public License as published by +the Free Software Foundation; either version 2.1 of the License, or +(at your option) any later version. + +http://www.gnu.org/licenses/lgpl-2.1.html + +License for Media +----------------- + +CC-BY-SA 3.0 UNPORTED. Created by cd2 (cdqwertz) diff --git a/mods/torch/init.lua b/mods/torch/init.lua new file mode 100644 index 0000000..1c17888 --- /dev/null +++ b/mods/torch/init.lua @@ -0,0 +1,56 @@ +minetest.register_node("torch:torch", { + description = "Torch", + tiles = {"torch_wood.png"}, + drawtype = "mesh", + mesh = "torch_torch.obj", + groups = {crumbly = 3}, + paramtype = "light", + paramtype2 = "facedir", + light_source = 14, + walkable = false, + inventory_image = "torch_torch_inv.png", + wield_image = "torch_torch_inv.png", +}) + +minetest.register_abm({ + nodenames = {"torch:torch"}, + interval = 10.0, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + pos.y = pos.y + 0.2 + minetest.add_particlespawner({ + amount = 10, + time = 10, + minpos = pos, + maxpos = pos, + minvel = {x=0, y=0.1, z=0}, + maxvel = {x=0, y=0, z=0}, + minacc = {x=0, y=0, z=0}, + maxacc = {x=0, y=0, z=0}, + minexptime = 1, + maxexptime = 1, + minsize = 1, + maxsize = 1, + collisiondetection = false, + vertical = false, + texture = "torch_flame.png", + }) + minetest.add_particlespawner({ + amount = 50, + time = 10, + minpos = pos, + maxpos = pos, + minvel = {x=0, y=0.5, z=0}, + maxvel = {x=0, y=0, z=0}, + minacc = {x=0, y=0, z=0}, + maxacc = {x=0, y=0, z=0}, + minexptime = 1, + maxexptime = 1, + minsize = 3, + maxsize = 3, + collisiondetection = false, + vertical = false, + texture = "torch_smoke.png", + }) + end, +}) diff --git a/mods/torch/init.lua~ b/mods/torch/init.lua~ new file mode 100644 index 0000000..1c17888 --- /dev/null +++ b/mods/torch/init.lua~ @@ -0,0 +1,56 @@ +minetest.register_node("torch:torch", { + description = "Torch", + tiles = {"torch_wood.png"}, + drawtype = "mesh", + mesh = "torch_torch.obj", + groups = {crumbly = 3}, + paramtype = "light", + paramtype2 = "facedir", + light_source = 14, + walkable = false, + inventory_image = "torch_torch_inv.png", + wield_image = "torch_torch_inv.png", +}) + +minetest.register_abm({ + nodenames = {"torch:torch"}, + interval = 10.0, + chance = 1, + action = function(pos, node, active_object_count, active_object_count_wider) + pos.y = pos.y + 0.2 + minetest.add_particlespawner({ + amount = 10, + time = 10, + minpos = pos, + maxpos = pos, + minvel = {x=0, y=0.1, z=0}, + maxvel = {x=0, y=0, z=0}, + minacc = {x=0, y=0, z=0}, + maxacc = {x=0, y=0, z=0}, + minexptime = 1, + maxexptime = 1, + minsize = 1, + maxsize = 1, + collisiondetection = false, + vertical = false, + texture = "torch_flame.png", + }) + minetest.add_particlespawner({ + amount = 50, + time = 10, + minpos = pos, + maxpos = pos, + minvel = {x=0, y=0.5, z=0}, + maxvel = {x=0, y=0, z=0}, + minacc = {x=0, y=0, z=0}, + maxacc = {x=0, y=0, z=0}, + minexptime = 1, + maxexptime = 1, + minsize = 3, + maxsize = 3, + collisiondetection = false, + vertical = false, + texture = "torch_smoke.png", + }) + end, +}) diff --git a/mods/torch/models/torch_torch.mtl b/mods/torch/models/torch_torch.mtl new file mode 100644 index 0000000..70d3ba1 --- /dev/null +++ b/mods/torch/models/torch_torch.mtl @@ -0,0 +1,10 @@ +# Blender MTL File: 'None' +# Material Count: 1 + +newmtl None +Ns 0 +Ka 0.000000 0.000000 0.000000 +Kd 0.8 0.8 0.8 +Ks 0.8 0.8 0.8 +d 1 +illum 2 diff --git a/mods/torch/models/torch_torch.obj b/mods/torch/models/torch_torch.obj new file mode 100644 index 0000000..0273dd2 --- /dev/null +++ b/mods/torch/models/torch_torch.obj @@ -0,0 +1,40 @@ +# Blender v2.69 (sub 0) OBJ File: '' +# www.blender.org +mtllib torch_torch.mtl +o Cube.001 +v -0.075000 -0.555968 1.002726 +v -0.075000 -0.619360 0.866779 +v 0.075000 -0.619360 0.866779 +v 0.075000 -0.555968 1.002726 +v -0.075000 0.220916 0.159460 +v -0.075000 0.157523 0.023513 +v 0.075000 0.157523 0.023513 +v 0.075000 0.220916 0.159460 +vt 0.159707 0.720916 +vt 0.295653 0.657523 +vt -0.366779 -0.119360 +vt -0.502726 -0.055968 +vt 0.425000 0.657523 +vt 0.575000 0.657523 +vt 0.575000 -0.119360 +vt 0.425000 -0.119360 +vt 0.575000 0.720916 +vt 0.425000 0.720916 +vt 0.425000 -0.055968 +vt 0.575000 -0.055968 +vt 0.425000 0.497274 +vt 0.425000 0.633221 +vt 0.575000 0.633221 +vt 0.575000 0.497274 +vt 0.575000 0.159707 +vt 0.575000 0.295653 +vt 0.425000 0.295653 +vt 0.425000 0.159707 +usemtl None +s off +f 5/1 6/2 2/3 1/4 +f 6/5 7/6 3/7 2/8 +f 7/2 8/1 4/4 3/3 +f 8/9 5/10 1/11 4/12 +f 1/13 2/14 3/15 4/16 +f 8/17 7/18 6/19 5/20 diff --git a/mods/torch/textures/torch_flame.png b/mods/torch/textures/torch_flame.png new file mode 100644 index 0000000..60ce377 Binary files /dev/null and b/mods/torch/textures/torch_flame.png differ diff --git a/mods/torch/textures/torch_smoke.png b/mods/torch/textures/torch_smoke.png new file mode 100644 index 0000000..0f951cc Binary files /dev/null and b/mods/torch/textures/torch_smoke.png differ diff --git a/mods/torch/textures/torch_torch_inv.png b/mods/torch/textures/torch_torch_inv.png new file mode 100644 index 0000000..5397028 Binary files /dev/null and b/mods/torch/textures/torch_torch_inv.png differ diff --git a/mods/torch/textures/torch_wood.png b/mods/torch/textures/torch_wood.png new file mode 100644 index 0000000..2980f68 Binary files /dev/null and b/mods/torch/textures/torch_wood.png differ