Modify mod and texture directory hierarchies
authorPerttu Ahola <celeron55@gmail.com>
Tue, 15 Nov 2011 06:48:24 +0000 (08:48 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 29 Nov 2011 17:13:43 +0000 (19:13 +0200)
218 files changed:
data/clienttextures/fontlucida.png [new file with mode: 0644]
data/clienttextures/menulogo.png [new file with mode: 0644]
data/clienttextures/mud.png [new file with mode: 0644]
data/mods/default/init.lua [new file with mode: 0644]
data/mods/default/textures/apple.png [new file with mode: 0644]
data/mods/default/textures/apple_iron.png [new file with mode: 0644]
data/mods/default/textures/book.png [new file with mode: 0644]
data/mods/default/textures/bookshelf.png [new file with mode: 0644]
data/mods/default/textures/brick.png [new file with mode: 0644]
data/mods/default/textures/cactus_side.png [new file with mode: 0644]
data/mods/default/textures/cactus_top.png [new file with mode: 0644]
data/mods/default/textures/chest_front.png [new file with mode: 0644]
data/mods/default/textures/chest_lock.png [new file with mode: 0644]
data/mods/default/textures/chest_side.png [new file with mode: 0644]
data/mods/default/textures/chest_top.png [new file with mode: 0644]
data/mods/default/textures/clay.png [new file with mode: 0644]
data/mods/default/textures/clay_brick.png [new file with mode: 0644]
data/mods/default/textures/cloud.png [new file with mode: 0644]
data/mods/default/textures/cobble.png [new file with mode: 0644]
data/mods/default/textures/cooked_rat.png [new file with mode: 0644]
data/mods/default/textures/crack.png [new file with mode: 0644]
data/mods/default/textures/dungeon_master.png [new file with mode: 0644]
data/mods/default/textures/fence.png [new file with mode: 0644]
data/mods/default/textures/fireball.png [new file with mode: 0644]
data/mods/default/textures/firefly.png [new file with mode: 0644]
data/mods/default/textures/furnace_front.png [new file with mode: 0644]
data/mods/default/textures/furnace_side.png [new file with mode: 0644]
data/mods/default/textures/glass.png [new file with mode: 0644]
data/mods/default/textures/grass.png [new file with mode: 0644]
data/mods/default/textures/grass_footsteps.png [new file with mode: 0644]
data/mods/default/textures/grass_side.png [new file with mode: 0644]
data/mods/default/textures/gravel.png [new file with mode: 0644]
data/mods/default/textures/heart.png [new file with mode: 0644]
data/mods/default/textures/junglegrass.png [new file with mode: 0644]
data/mods/default/textures/jungletree.png [new file with mode: 0644]
data/mods/default/textures/jungletree_top.png [new file with mode: 0644]
data/mods/default/textures/ladder.png [new file with mode: 0644]
data/mods/default/textures/lava.png [new file with mode: 0644]
data/mods/default/textures/leaves.png [new file with mode: 0644]
data/mods/default/textures/lump_of_clay.png [new file with mode: 0644]
data/mods/default/textures/lump_of_coal.png [new file with mode: 0644]
data/mods/default/textures/lump_of_iron.png [new file with mode: 0644]
data/mods/default/textures/mese.png [new file with mode: 0644]
data/mods/default/textures/mineral_coal.png [new file with mode: 0644]
data/mods/default/textures/mineral_iron.png [new file with mode: 0644]
data/mods/default/textures/mossycobble.png [new file with mode: 0644]
data/mods/default/textures/mud.png [new file with mode: 0644]
data/mods/default/textures/nc_back.png [new file with mode: 0644]
data/mods/default/textures/nc_front.png [new file with mode: 0644]
data/mods/default/textures/nc_rb.png [new file with mode: 0644]
data/mods/default/textures/nc_side.png [new file with mode: 0644]
data/mods/default/textures/oerkki1.png [new file with mode: 0644]
data/mods/default/textures/oerkki1_damaged.png [new file with mode: 0644]
data/mods/default/textures/paper.png [new file with mode: 0644]
data/mods/default/textures/papyrus.png [new file with mode: 0644]
data/mods/default/textures/player.png [new file with mode: 0644]
data/mods/default/textures/player_back.png [new file with mode: 0644]
data/mods/default/textures/rail.png [new file with mode: 0644]
data/mods/default/textures/rail_crossing.png [new file with mode: 0644]
data/mods/default/textures/rail_curved.png [new file with mode: 0644]
data/mods/default/textures/rail_t_junction.png [new file with mode: 0644]
data/mods/default/textures/rat.png [new file with mode: 0644]
data/mods/default/textures/sand.png [new file with mode: 0644]
data/mods/default/textures/sandstone.png [new file with mode: 0644]
data/mods/default/textures/sapling.png [new file with mode: 0644]
data/mods/default/textures/scorched_stuff.png [new file with mode: 0644]
data/mods/default/textures/sign.png [new file with mode: 0644]
data/mods/default/textures/sign_back.png [new file with mode: 0644]
data/mods/default/textures/sign_wall.png [new file with mode: 0644]
data/mods/default/textures/skybox1.png [new file with mode: 0644]
data/mods/default/textures/skybox1_dawn.png [new file with mode: 0644]
data/mods/default/textures/skybox1_night.png [new file with mode: 0644]
data/mods/default/textures/skybox2.png [new file with mode: 0644]
data/mods/default/textures/skybox2_dawn.png [new file with mode: 0644]
data/mods/default/textures/skybox2_night.png [new file with mode: 0644]
data/mods/default/textures/skybox3.png [new file with mode: 0644]
data/mods/default/textures/skybox3_dawn.png [new file with mode: 0644]
data/mods/default/textures/skybox3_night.png [new file with mode: 0644]
data/mods/default/textures/steel_block.png [new file with mode: 0644]
data/mods/default/textures/steel_ingot.png [new file with mode: 0644]
data/mods/default/textures/stick.png [new file with mode: 0644]
data/mods/default/textures/stone.png [new file with mode: 0644]
data/mods/default/textures/tnt_bottom.png [new file with mode: 0644]
data/mods/default/textures/tnt_side.png [new file with mode: 0644]
data/mods/default/textures/tnt_top.png [new file with mode: 0644]
data/mods/default/textures/tool_mesepick.png [new file with mode: 0644]
data/mods/default/textures/tool_steelaxe.png [new file with mode: 0644]
data/mods/default/textures/tool_steelpick.png [new file with mode: 0644]
data/mods/default/textures/tool_steelshovel.png [new file with mode: 0644]
data/mods/default/textures/tool_steelsword.png [new file with mode: 0644]
data/mods/default/textures/tool_stoneaxe.png [new file with mode: 0644]
data/mods/default/textures/tool_stonepick.png [new file with mode: 0644]
data/mods/default/textures/tool_stoneshovel.png [new file with mode: 0644]
data/mods/default/textures/tool_stonesword.png [new file with mode: 0644]
data/mods/default/textures/tool_woodaxe.png [new file with mode: 0644]
data/mods/default/textures/tool_woodpick.png [new file with mode: 0644]
data/mods/default/textures/tool_woodshovel.png [new file with mode: 0644]
data/mods/default/textures/tool_woodsword.png [new file with mode: 0644]
data/mods/default/textures/torch.png [new file with mode: 0644]
data/mods/default/textures/torch_on_ceiling.png [new file with mode: 0644]
data/mods/default/textures/torch_on_floor.png [new file with mode: 0644]
data/mods/default/textures/tree.png [new file with mode: 0644]
data/mods/default/textures/tree_top.png [new file with mode: 0644]
data/mods/default/textures/treeprop.png [new file with mode: 0644]
data/mods/default/textures/unknown_block.png [new file with mode: 0644]
data/mods/default/textures/unknown_object.png [new file with mode: 0644]
data/mods/default/textures/water.png [new file with mode: 0644]
data/mods/default/textures/wood.png [new file with mode: 0644]
data/scripts/default.lua [deleted file]
data/textures/apple.png [deleted file]
data/textures/apple_iron.png [deleted file]
data/textures/book.png [deleted file]
data/textures/bookshelf.png [deleted file]
data/textures/brick.png [deleted file]
data/textures/cactus_side.png [deleted file]
data/textures/cactus_top.png [deleted file]
data/textures/chest_front.png [deleted file]
data/textures/chest_lock.png [deleted file]
data/textures/chest_side.png [deleted file]
data/textures/chest_top.png [deleted file]
data/textures/clay.png [deleted file]
data/textures/clay_brick.png [deleted file]
data/textures/cloud.png [deleted file]
data/textures/cobble.png [deleted file]
data/textures/cooked_rat.png [deleted file]
data/textures/crack.png [deleted file]
data/textures/dungeon_master.png [deleted file]
data/textures/fence.png [deleted file]
data/textures/fireball.png [deleted file]
data/textures/firefly.png [deleted file]
data/textures/fontlucida.png [deleted file]
data/textures/furnace_front.png [deleted file]
data/textures/furnace_side.png [deleted file]
data/textures/glass.png [deleted file]
data/textures/grass.png [deleted file]
data/textures/grass_footsteps.png [deleted file]
data/textures/grass_side.png [deleted file]
data/textures/gravel.png [deleted file]
data/textures/heart.png [deleted file]
data/textures/junglegrass.png [deleted file]
data/textures/jungletree.png [deleted file]
data/textures/jungletree_top.png [deleted file]
data/textures/ladder.png [deleted file]
data/textures/lava.png [deleted file]
data/textures/leaves.png [deleted file]
data/textures/lump_of_clay.png [deleted file]
data/textures/lump_of_coal.png [deleted file]
data/textures/lump_of_iron.png [deleted file]
data/textures/menulogo.png [deleted file]
data/textures/mese.png [deleted file]
data/textures/mineral_coal.png [deleted file]
data/textures/mineral_iron.png [deleted file]
data/textures/mossycobble.png [deleted file]
data/textures/mud.png [deleted file]
data/textures/nc_back.png [deleted file]
data/textures/nc_front.png [deleted file]
data/textures/nc_rb.png [deleted file]
data/textures/nc_side.png [deleted file]
data/textures/oerkki1.png [deleted file]
data/textures/oerkki1_damaged.png [deleted file]
data/textures/paper.png [deleted file]
data/textures/papyrus.png [deleted file]
data/textures/player.png [deleted file]
data/textures/player_back.png [deleted file]
data/textures/rail.png [deleted file]
data/textures/rail_crossing.png [deleted file]
data/textures/rail_curved.png [deleted file]
data/textures/rail_t_junction.png [deleted file]
data/textures/rat.png [deleted file]
data/textures/sand.png [deleted file]
data/textures/sandstone.png [deleted file]
data/textures/sapling.png [deleted file]
data/textures/scorched_stuff.png [deleted file]
data/textures/sign.png [deleted file]
data/textures/sign_back.png [deleted file]
data/textures/sign_wall.png [deleted file]
data/textures/skybox1.png [deleted file]
data/textures/skybox1_dawn.png [deleted file]
data/textures/skybox1_night.png [deleted file]
data/textures/skybox2.png [deleted file]
data/textures/skybox2_dawn.png [deleted file]
data/textures/skybox2_night.png [deleted file]
data/textures/skybox3.png [deleted file]
data/textures/skybox3_dawn.png [deleted file]
data/textures/skybox3_night.png [deleted file]
data/textures/steel_block.png [deleted file]
data/textures/steel_ingot.png [deleted file]
data/textures/stick.png [deleted file]
data/textures/stone.png [deleted file]
data/textures/tnt_bottom.png [deleted file]
data/textures/tnt_side.png [deleted file]
data/textures/tnt_top.png [deleted file]
data/textures/tool_mesepick.png [deleted file]
data/textures/tool_steelaxe.png [deleted file]
data/textures/tool_steelpick.png [deleted file]
data/textures/tool_steelshovel.png [deleted file]
data/textures/tool_steelsword.png [deleted file]
data/textures/tool_stoneaxe.png [deleted file]
data/textures/tool_stonepick.png [deleted file]
data/textures/tool_stoneshovel.png [deleted file]
data/textures/tool_stonesword.png [deleted file]
data/textures/tool_woodaxe.png [deleted file]
data/textures/tool_woodpick.png [deleted file]
data/textures/tool_woodshovel.png [deleted file]
data/textures/tool_woodsword.png [deleted file]
data/textures/torch.png [deleted file]
data/textures/torch_on_ceiling.png [deleted file]
data/textures/torch_on_floor.png [deleted file]
data/textures/tree.png [deleted file]
data/textures/tree_top.png [deleted file]
data/textures/treeprop.png [deleted file]
data/textures/unknown_block.png [deleted file]
data/textures/unknown_object.png [deleted file]
data/textures/water.png [deleted file]
data/textures/wood.png [deleted file]
src/game.cpp
src/server.cpp
src/tile.cpp

diff --git a/data/clienttextures/fontlucida.png b/data/clienttextures/fontlucida.png
new file mode 100644 (file)
index 0000000..c63fa02
Binary files /dev/null and b/data/clienttextures/fontlucida.png differ
diff --git a/data/clienttextures/menulogo.png b/data/clienttextures/menulogo.png
new file mode 100644 (file)
index 0000000..76595c4
Binary files /dev/null and b/data/clienttextures/menulogo.png differ
diff --git a/data/clienttextures/mud.png b/data/clienttextures/mud.png
new file mode 100644 (file)
index 0000000..7cb9c89
Binary files /dev/null and b/data/clienttextures/mud.png differ
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua
new file mode 100644 (file)
index 0000000..a60979f
--- /dev/null
@@ -0,0 +1,418 @@
+function basic_dump2(o)
+       if type(o) == "number" then
+               return tostring(o)
+       elseif type(o) == "string" then
+               return string.format("%q", o)
+       elseif type(o) == "boolean" then
+               return tostring(o)
+       elseif type(o) == "function" then
+               return "<function>"
+       elseif type(o) == "userdata" then
+               return "<userdata>"
+       elseif type(o) == "nil" then
+               return "nil"
+       else
+               error("cannot dump a " .. type(o))
+               return nil
+       end
+end
+
+function dump2(o, name, dumped)
+       name = name or "_"
+       dumped = dumped or {}
+       io.write(name, " = ")
+       if type(o) == "number" or type(o) == "string" or type(o) == "boolean"
+                       or type(o) == "function" or type(o) == "nil"
+                       or type(o) == "userdata" then
+               io.write(basic_dump2(o), "\n")
+       elseif type(o) == "table" then
+               if dumped[o] then
+                       io.write(dumped[o], "\n")
+               else
+                       dumped[o] = name
+                       io.write("{}\n") -- new table
+                       for k,v in pairs(o) do
+                               local fieldname = string.format("%s[%s]", name, basic_dump2(k))
+                               dump2(v, fieldname, dumped)
+                       end
+               end
+       else
+               error("cannot dump a " .. type(o))
+               return nil
+       end
+end
+
+function dump(o, dumped)
+       dumped = dumped or {}
+       if type(o) == "number" then
+               return tostring(o)
+       elseif type(o) == "string" then
+               return string.format("%q", o)
+       elseif type(o) == "table" then
+               if dumped[o] then
+                       return "<circular reference>"
+               end
+               dumped[o] = true
+               local t = {}
+               for k,v in pairs(o) do
+                       t[#t+1] = "" .. k .. " = " .. dump(v, dumped)
+               end
+               return "{" .. table.concat(t, ", ") .. "}"
+       elseif type(o) == "boolean" then
+               return tostring(o)
+       elseif type(o) == "function" then
+               return "<function>"
+       elseif type(o) == "userdata" then
+               return "<userdata>"
+       elseif type(o) == "nil" then
+               return "nil"
+       else
+               error("cannot dump a " .. type(o))
+               return nil
+       end
+end
+
+-- Textures:
+-- Mods should prefix their textures with modname_, eg. given the mod
+-- name "foomod", a texture could be called "foomod_superfurnace.png"
+--
+-- Global functions:
+-- minetest.register_entity(name, prototype_table)
+-- minetest.register_globalstep(func)
+--
+-- Global objects:
+-- minetest.env - environment reference
+--
+-- Global tables:
+-- minetest.registered_entities
+-- ^ List of registered entity prototypes, indexed by name
+-- minetest.object_refs
+-- ^ List of object references, indexed by active object id
+-- minetest.luaentities
+-- ^ List of lua entities, indexed by active object id
+--
+-- EnvRef methods:
+-- - add_node(pos, content); pos={x=num, y=num, z=num}
+--
+-- ObjectRef methods:
+-- - remove(): remove object (after returning from Lua)
+-- - getpos(): returns {x=num, y=num, z=num}
+-- - setpos(pos); pos={x=num, y=num, z=num}
+-- - moveto(pos, continuous=false): interpolated move
+-- - add_to_inventory(itemstring): add an item to object inventory
+--
+-- Registered entities:
+-- - Functions receive a "luaentity" as self:
+--   - It has the member .object, which is an ObjectRef pointing to the object
+--   - The original prototype stuff is visible directly via a metatable
+--
+
+print("omg lol")
+print("minetest dump: "..dump(minetest))
+
+-- Global environment step function
+function on_step(dtime)
+       -- print("on_step")
+end
+
+minetest.register_globalstep(on_step)
+
+minetest.register_tool("WPick", {
+       image = "tool_woodpick.png",
+       basetime = 2.0,
+       dt_weight = 0,
+       dt_crackiness = -0.5,
+       dt_crumbliness = 2,
+       dt_cuttability = 0,
+       basedurability = 30,
+       dd_weight = 0,
+       dd_crackiness = 0,
+       dd_crumbliness = 0,
+       dd_cuttability = 0,
+})
+minetest.register_tool("STPick", {
+       image = "tool_stonepick.png",
+       basetime = 1.5,
+       dt_weight = 0,
+       dt_crackiness = -0.5,
+       dt_crumbliness = 2,
+       dt_cuttability = 0,
+       basedurability = 100,
+       dd_weight = 0,
+       dd_crackiness = 0,
+       dd_crumbliness = 0,
+       dd_cuttability = 0,
+})
+minetest.register_tool("SteelPick", {
+       image = "tool_steelpick.png",
+       basetime = 1.0,
+       dt_weight = 0,
+       dt_crackiness = -0.5,
+       dt_crumbliness = 2,
+       dt_cuttability = 0,
+       basedurability = 333,
+       dd_weight = 0,
+       dd_crackiness = 0,
+       dd_crumbliness = 0,
+       dd_cuttability = 0,
+})
+minetest.register_tool("MesePick", {
+       image = "tool_mesepick.png",
+       basetime = 0,
+       dt_weight = 0,
+       dt_crackiness = 0,
+       dt_crumbliness = 0,
+       dt_cuttability = 0,
+       basedurability = 1337,
+       dd_weight = 0,
+       dd_crackiness = 0,
+       dd_crumbliness = 0,
+       dd_cuttability = 0,
+})
+minetest.register_tool("WShovel", {
+       image = "tool_woodshovel.png",
+       basetime = 2.0,
+       dt_weight = 0.5,
+       dt_crackiness = 2,
+       dt_crumbliness = -1.5,
+       dt_cuttability = 0.3,
+       basedurability = 30,
+       dd_weight = 0,
+       dd_crackiness = 0,
+       dd_crumbliness = 0,
+       dd_cuttability = 0,
+})
+minetest.register_tool("STShovel", {
+       image = "tool_stoneshovel.png",
+       basetime = 1.5,
+       dt_weight = 0.5,
+       dt_crackiness = 2,
+       dt_crumbliness = -1.5,
+       dt_cuttability = 0.1,
+       basedurability = 100,
+       dd_weight = 0,
+       dd_crackiness = 0,
+       dd_crumbliness = 0,
+       dd_cuttability = 0,
+})
+minetest.register_tool("SteelShovel", {
+       image = "tool_steelshovel.png",
+       basetime = 1.0,
+       dt_weight = 0.5,
+       dt_crackiness = 2,
+       dt_crumbliness = -1.5,
+       dt_cuttability = 0.0,
+       basedurability = 330,
+       dd_weight = 0,
+       dd_crackiness = 0,
+       dd_crumbliness = 0,
+       dd_cuttability = 0,
+})
+minetest.register_tool("WAxe", {
+       image = "tool_woodaxe.png",
+       basetime = 2.0,
+       dt_weight = 0.5,
+       dt_crackiness = -0.2,
+       dt_crumbliness = 1,
+       dt_cuttability = -0.5,
+       basedurability = 30,
+       dd_weight = 0,
+       dd_crackiness = 0,
+       dd_crumbliness = 0,
+       dd_cuttability = 0,
+})
+minetest.register_tool("STAxe", {
+       image = "tool_stoneaxe.png",
+       basetime = 1.5,
+       dt_weight = 0.5,
+       dt_crackiness = -0.2,
+       dt_crumbliness = 1,
+       dt_cuttability = -0.5,
+       basedurability = 100,
+       dd_weight = 0,
+       dd_crackiness = 0,
+       dd_crumbliness = 0,
+       dd_cuttability = 0,
+})
+minetest.register_tool("SteelAxe", {
+       image = "tool_steelaxe.png",
+       basetime = 1.0,
+       dt_weight = 0.5,
+       dt_crackiness = -0.2,
+       dt_crumbliness = 1,
+       dt_cuttability = -0.5,
+       basedurability = 330,
+       dd_weight = 0,
+       dd_crackiness = 0,
+       dd_crumbliness = 0,
+       dd_cuttability = 0,
+})
+minetest.register_tool("WSword", {
+       image = "tool_woodsword.png",
+       basetime = 3.0,
+       dt_weight = 3,
+       dt_crackiness = 0,
+       dt_crumbliness = 1,
+       dt_cuttability = -1,
+       basedurability = 30,
+       dd_weight = 0,
+       dd_crackiness = 0,
+       dd_crumbliness = 0,
+       dd_cuttability = 0,
+})
+minetest.register_tool("STSword", {
+       image = "tool_stonesword.png",
+       basetime = 2.5,
+       dt_weight = 3,
+       dt_crackiness = 0,
+       dt_crumbliness = 1,
+       dt_cuttability = -1,
+       basedurability = 100,
+       dd_weight = 0,
+       dd_crackiness = 0,
+       dd_crumbliness = 0,
+       dd_cuttability = 0,
+})
+minetest.register_tool("SteelSword", {
+       image = "tool_steelsword.png",
+       basetime = 2.0,
+       dt_weight = 3,
+       dt_crackiness = 0,
+       dt_crumbliness = 1,
+       dt_cuttability = -1,
+       basedurability = 330,
+       dd_weight = 0,
+       dd_crackiness = 0,
+       dd_crumbliness = 0,
+       dd_cuttability = 0,
+})
+minetest.register_tool("", {
+       image = "",
+       basetime = 0.5,
+       dt_weight = 1,
+       dt_crackiness = 0,
+       dt_crumbliness = -1,
+       dt_cuttability = 0,
+       basedurability = 50,
+       dd_weight = 0,
+       dd_crackiness = 0,
+       dd_crumbliness = 0,
+       dd_cuttability = 0,
+})
+
+--[[
+minetest.register_tool("horribletool", {
+       image = "lava.png",
+       basetime = 2.0
+       dt_weight = 0.2
+       dt_crackiness = 0.2
+       dt_crumbliness = 0.2
+       dt_cuttability = 0.2
+       basedurability = 50
+       dd_weight = -5
+       dd_crackiness = -5
+       dd_crumbliness = -5
+       dd_cuttability = -5
+})
+--]]
+
+local TNT = {
+       -- Maybe handle gravity and collision this way? dunno
+       physical = true,
+       weight = 5,
+       collisionbox = {-0.5,-0.5,-0.5, 0.5,0.5,0.5},
+       visual = "cube",
+       textures = {"tnt_top.png","tnt_bottom.png","tnt_side.png","tnt_side.png","tnt_side.png","tnt_side.png"},
+       --visual = "single_sprite",
+       --textures = {"mese.png^[forcesingle"},
+       -- Initial value for our timer
+       timer = 0,
+       -- List names of state variables, for serializing object state
+       state_variables = {"timer"},
+}
+
+-- Called periodically
+function TNT:on_step(dtime)
+       --print("TNT:on_step()")
+end
+
+-- Called when object is punched
+function TNT:on_punch(hitter)
+       print("TNT:on_punch()")
+       self.object:remove()
+       hitter:add_to_inventory("CraftItem testobject1 1")
+end
+
+-- Called when object is right-clicked
+function TNT:on_rightclick(clicker)
+       pos = self.object:getpos()
+       pos = {x=pos.x, y=pos.y+0.1, z=pos.z}
+       self.object:moveto(pos, false)
+end
+
+print("TNT dump: "..dump(TNT))
+
+print("Registering TNT");
+minetest.register_entity("TNT", TNT)
+
+print("minetest.registered_entities:")
+dump2(minetest.registered_entities)
+
+--[[
+function TNT:on_rightclick(clicker)
+       print("TNT:on_rightclick()")
+       print("self: "..dump(self))
+       print("getmetatable(self): "..dump(getmetatable(self)))
+       print("getmetatable(getmetatable(self)): "..dump(getmetatable(getmetatable(self))))
+       pos = self.object:getpos()
+       print("TNT:on_rightclick(): object position: "..dump(pos))
+       pos = {x=pos.x+0.5+1, y=pos.y+0.5, z=pos.z+0.5}
+       --minetest.env:add_node(pos, 0)
+end
+--]]
+
+--[=[
+
+register_block(0, {
+       textures = "stone.png",
+       makefacetype = 0,
+       get_dig_duration = function(env, pos, digger)
+               -- Check stuff like digger.current_tool
+               return 1.5
+       end,
+       on_dig = function(env, pos, digger)
+               env:remove_node(pos)
+               digger.inventory.put("MaterialItem2 0");
+       end,
+})
+
+register_block(1, {
+       textures = {"grass.png","mud.png","mud_grass_side.png","mud_grass_side.png","mud_grass_side.png","mud_grass_side.png"},
+       makefacetype = 0,
+       get_dig_duration = function(env, pos, digger)
+               -- Check stuff like digger.current_tool
+               return 0.5
+       end,
+       on_dig = function(env, pos, digger)
+               env:remove_node(pos)
+               digger.inventory.put("MaterialItem2 1");
+       end,
+})
+
+-- Consider the "miscellaneous block namespace" to be 0xc00...0xfff = 3072...4095
+register_block(3072, {
+       textures = {"tnt_top.png","tnt_bottom.png","tnt_side.png","tnt_side.png","tnt_side.png","tnt_side.png"},
+       makefacetype = 0,
+       get_dig_duration = function(env, pos, digger)
+               -- Cannot be dug
+               return nil
+       end,
+       -- on_dig = function(env, pos, digger) end, -- Not implemented
+       on_hit = function(env, pos, hitter)
+               -- Replace with TNT object, which will explode after timer, follow gravity, blink and stuff
+               env:add_object("tnt", pos)
+               env:remove_node(pos)
+       end,
+})
+--]=]
+
diff --git a/data/mods/default/textures/apple.png b/data/mods/default/textures/apple.png
new file mode 100644 (file)
index 0000000..9593f28
Binary files /dev/null and b/data/mods/default/textures/apple.png differ
diff --git a/data/mods/default/textures/apple_iron.png b/data/mods/default/textures/apple_iron.png
new file mode 100644 (file)
index 0000000..2dffdf0
Binary files /dev/null and b/data/mods/default/textures/apple_iron.png differ
diff --git a/data/mods/default/textures/book.png b/data/mods/default/textures/book.png
new file mode 100644 (file)
index 0000000..176fb6a
Binary files /dev/null and b/data/mods/default/textures/book.png differ
diff --git a/data/mods/default/textures/bookshelf.png b/data/mods/default/textures/bookshelf.png
new file mode 100644 (file)
index 0000000..5ecc50f
Binary files /dev/null and b/data/mods/default/textures/bookshelf.png differ
diff --git a/data/mods/default/textures/brick.png b/data/mods/default/textures/brick.png
new file mode 100644 (file)
index 0000000..32d77f3
Binary files /dev/null and b/data/mods/default/textures/brick.png differ
diff --git a/data/mods/default/textures/cactus_side.png b/data/mods/default/textures/cactus_side.png
new file mode 100644 (file)
index 0000000..fc479fd
Binary files /dev/null and b/data/mods/default/textures/cactus_side.png differ
diff --git a/data/mods/default/textures/cactus_top.png b/data/mods/default/textures/cactus_top.png
new file mode 100644 (file)
index 0000000..f9e68df
Binary files /dev/null and b/data/mods/default/textures/cactus_top.png differ
diff --git a/data/mods/default/textures/chest_front.png b/data/mods/default/textures/chest_front.png
new file mode 100644 (file)
index 0000000..c5628af
Binary files /dev/null and b/data/mods/default/textures/chest_front.png differ
diff --git a/data/mods/default/textures/chest_lock.png b/data/mods/default/textures/chest_lock.png
new file mode 100644 (file)
index 0000000..ae038fa
Binary files /dev/null and b/data/mods/default/textures/chest_lock.png differ
diff --git a/data/mods/default/textures/chest_side.png b/data/mods/default/textures/chest_side.png
new file mode 100644 (file)
index 0000000..916dd78
Binary files /dev/null and b/data/mods/default/textures/chest_side.png differ
diff --git a/data/mods/default/textures/chest_top.png b/data/mods/default/textures/chest_top.png
new file mode 100644 (file)
index 0000000..58c7967
Binary files /dev/null and b/data/mods/default/textures/chest_top.png differ
diff --git a/data/mods/default/textures/clay.png b/data/mods/default/textures/clay.png
new file mode 100644 (file)
index 0000000..3557429
Binary files /dev/null and b/data/mods/default/textures/clay.png differ
diff --git a/data/mods/default/textures/clay_brick.png b/data/mods/default/textures/clay_brick.png
new file mode 100644 (file)
index 0000000..e36648e
Binary files /dev/null and b/data/mods/default/textures/clay_brick.png differ
diff --git a/data/mods/default/textures/cloud.png b/data/mods/default/textures/cloud.png
new file mode 100644 (file)
index 0000000..24091a3
Binary files /dev/null and b/data/mods/default/textures/cloud.png differ
diff --git a/data/mods/default/textures/cobble.png b/data/mods/default/textures/cobble.png
new file mode 100644 (file)
index 0000000..7d04474
Binary files /dev/null and b/data/mods/default/textures/cobble.png differ
diff --git a/data/mods/default/textures/cooked_rat.png b/data/mods/default/textures/cooked_rat.png
new file mode 100644 (file)
index 0000000..daad3be
Binary files /dev/null and b/data/mods/default/textures/cooked_rat.png differ
diff --git a/data/mods/default/textures/crack.png b/data/mods/default/textures/crack.png
new file mode 100644 (file)
index 0000000..4997839
Binary files /dev/null and b/data/mods/default/textures/crack.png differ
diff --git a/data/mods/default/textures/dungeon_master.png b/data/mods/default/textures/dungeon_master.png
new file mode 100644 (file)
index 0000000..3457c82
Binary files /dev/null and b/data/mods/default/textures/dungeon_master.png differ
diff --git a/data/mods/default/textures/fence.png b/data/mods/default/textures/fence.png
new file mode 100644 (file)
index 0000000..0b99f0e
Binary files /dev/null and b/data/mods/default/textures/fence.png differ
diff --git a/data/mods/default/textures/fireball.png b/data/mods/default/textures/fireball.png
new file mode 100644 (file)
index 0000000..5231428
Binary files /dev/null and b/data/mods/default/textures/fireball.png differ
diff --git a/data/mods/default/textures/firefly.png b/data/mods/default/textures/firefly.png
new file mode 100644 (file)
index 0000000..40df7fa
Binary files /dev/null and b/data/mods/default/textures/firefly.png differ
diff --git a/data/mods/default/textures/furnace_front.png b/data/mods/default/textures/furnace_front.png
new file mode 100644 (file)
index 0000000..1620a27
Binary files /dev/null and b/data/mods/default/textures/furnace_front.png differ
diff --git a/data/mods/default/textures/furnace_side.png b/data/mods/default/textures/furnace_side.png
new file mode 100644 (file)
index 0000000..63cb162
Binary files /dev/null and b/data/mods/default/textures/furnace_side.png differ
diff --git a/data/mods/default/textures/glass.png b/data/mods/default/textures/glass.png
new file mode 100644 (file)
index 0000000..8598ce6
Binary files /dev/null and b/data/mods/default/textures/glass.png differ
diff --git a/data/mods/default/textures/grass.png b/data/mods/default/textures/grass.png
new file mode 100644 (file)
index 0000000..3610bb2
Binary files /dev/null and b/data/mods/default/textures/grass.png differ
diff --git a/data/mods/default/textures/grass_footsteps.png b/data/mods/default/textures/grass_footsteps.png
new file mode 100644 (file)
index 0000000..57e063d
Binary files /dev/null and b/data/mods/default/textures/grass_footsteps.png differ
diff --git a/data/mods/default/textures/grass_side.png b/data/mods/default/textures/grass_side.png
new file mode 100644 (file)
index 0000000..4f4f680
Binary files /dev/null and b/data/mods/default/textures/grass_side.png differ
diff --git a/data/mods/default/textures/gravel.png b/data/mods/default/textures/gravel.png
new file mode 100644 (file)
index 0000000..f08666a
Binary files /dev/null and b/data/mods/default/textures/gravel.png differ
diff --git a/data/mods/default/textures/heart.png b/data/mods/default/textures/heart.png
new file mode 100644 (file)
index 0000000..6bc183e
Binary files /dev/null and b/data/mods/default/textures/heart.png differ
diff --git a/data/mods/default/textures/junglegrass.png b/data/mods/default/textures/junglegrass.png
new file mode 100644 (file)
index 0000000..eea87c0
Binary files /dev/null and b/data/mods/default/textures/junglegrass.png differ
diff --git a/data/mods/default/textures/jungletree.png b/data/mods/default/textures/jungletree.png
new file mode 100644 (file)
index 0000000..ccd20ac
Binary files /dev/null and b/data/mods/default/textures/jungletree.png differ
diff --git a/data/mods/default/textures/jungletree_top.png b/data/mods/default/textures/jungletree_top.png
new file mode 100644 (file)
index 0000000..2a9b513
Binary files /dev/null and b/data/mods/default/textures/jungletree_top.png differ
diff --git a/data/mods/default/textures/ladder.png b/data/mods/default/textures/ladder.png
new file mode 100644 (file)
index 0000000..1105635
Binary files /dev/null and b/data/mods/default/textures/ladder.png differ
diff --git a/data/mods/default/textures/lava.png b/data/mods/default/textures/lava.png
new file mode 100644 (file)
index 0000000..cb02ada
Binary files /dev/null and b/data/mods/default/textures/lava.png differ
diff --git a/data/mods/default/textures/leaves.png b/data/mods/default/textures/leaves.png
new file mode 100644 (file)
index 0000000..7a25126
Binary files /dev/null and b/data/mods/default/textures/leaves.png differ
diff --git a/data/mods/default/textures/lump_of_clay.png b/data/mods/default/textures/lump_of_clay.png
new file mode 100644 (file)
index 0000000..be0bab9
Binary files /dev/null and b/data/mods/default/textures/lump_of_clay.png differ
diff --git a/data/mods/default/textures/lump_of_coal.png b/data/mods/default/textures/lump_of_coal.png
new file mode 100644 (file)
index 0000000..bad901e
Binary files /dev/null and b/data/mods/default/textures/lump_of_coal.png differ
diff --git a/data/mods/default/textures/lump_of_iron.png b/data/mods/default/textures/lump_of_iron.png
new file mode 100644 (file)
index 0000000..edb9310
Binary files /dev/null and b/data/mods/default/textures/lump_of_iron.png differ
diff --git a/data/mods/default/textures/mese.png b/data/mods/default/textures/mese.png
new file mode 100644 (file)
index 0000000..4c876cd
Binary files /dev/null and b/data/mods/default/textures/mese.png differ
diff --git a/data/mods/default/textures/mineral_coal.png b/data/mods/default/textures/mineral_coal.png
new file mode 100644 (file)
index 0000000..3ff9692
Binary files /dev/null and b/data/mods/default/textures/mineral_coal.png differ
diff --git a/data/mods/default/textures/mineral_iron.png b/data/mods/default/textures/mineral_iron.png
new file mode 100644 (file)
index 0000000..51b15d9
Binary files /dev/null and b/data/mods/default/textures/mineral_iron.png differ
diff --git a/data/mods/default/textures/mossycobble.png b/data/mods/default/textures/mossycobble.png
new file mode 100644 (file)
index 0000000..fad1b33
Binary files /dev/null and b/data/mods/default/textures/mossycobble.png differ
diff --git a/data/mods/default/textures/mud.png b/data/mods/default/textures/mud.png
new file mode 100644 (file)
index 0000000..7cb9c89
Binary files /dev/null and b/data/mods/default/textures/mud.png differ
diff --git a/data/mods/default/textures/nc_back.png b/data/mods/default/textures/nc_back.png
new file mode 100644 (file)
index 0000000..f09f416
Binary files /dev/null and b/data/mods/default/textures/nc_back.png differ
diff --git a/data/mods/default/textures/nc_front.png b/data/mods/default/textures/nc_front.png
new file mode 100644 (file)
index 0000000..cad9eda
Binary files /dev/null and b/data/mods/default/textures/nc_front.png differ
diff --git a/data/mods/default/textures/nc_rb.png b/data/mods/default/textures/nc_rb.png
new file mode 100644 (file)
index 0000000..7ebc993
Binary files /dev/null and b/data/mods/default/textures/nc_rb.png differ
diff --git a/data/mods/default/textures/nc_side.png b/data/mods/default/textures/nc_side.png
new file mode 100644 (file)
index 0000000..f954045
Binary files /dev/null and b/data/mods/default/textures/nc_side.png differ
diff --git a/data/mods/default/textures/oerkki1.png b/data/mods/default/textures/oerkki1.png
new file mode 100644 (file)
index 0000000..33cbac9
Binary files /dev/null and b/data/mods/default/textures/oerkki1.png differ
diff --git a/data/mods/default/textures/oerkki1_damaged.png b/data/mods/default/textures/oerkki1_damaged.png
new file mode 100644 (file)
index 0000000..9b77738
Binary files /dev/null and b/data/mods/default/textures/oerkki1_damaged.png differ
diff --git a/data/mods/default/textures/paper.png b/data/mods/default/textures/paper.png
new file mode 100644 (file)
index 0000000..ae5c06b
Binary files /dev/null and b/data/mods/default/textures/paper.png differ
diff --git a/data/mods/default/textures/papyrus.png b/data/mods/default/textures/papyrus.png
new file mode 100644 (file)
index 0000000..bf0dec7
Binary files /dev/null and b/data/mods/default/textures/papyrus.png differ
diff --git a/data/mods/default/textures/player.png b/data/mods/default/textures/player.png
new file mode 100644 (file)
index 0000000..90adf97
Binary files /dev/null and b/data/mods/default/textures/player.png differ
diff --git a/data/mods/default/textures/player_back.png b/data/mods/default/textures/player_back.png
new file mode 100644 (file)
index 0000000..530aa75
Binary files /dev/null and b/data/mods/default/textures/player_back.png differ
diff --git a/data/mods/default/textures/rail.png b/data/mods/default/textures/rail.png
new file mode 100644 (file)
index 0000000..18176d9
Binary files /dev/null and b/data/mods/default/textures/rail.png differ
diff --git a/data/mods/default/textures/rail_crossing.png b/data/mods/default/textures/rail_crossing.png
new file mode 100644 (file)
index 0000000..9846405
Binary files /dev/null and b/data/mods/default/textures/rail_crossing.png differ
diff --git a/data/mods/default/textures/rail_curved.png b/data/mods/default/textures/rail_curved.png
new file mode 100644 (file)
index 0000000..62afa3d
Binary files /dev/null and b/data/mods/default/textures/rail_curved.png differ
diff --git a/data/mods/default/textures/rail_t_junction.png b/data/mods/default/textures/rail_t_junction.png
new file mode 100644 (file)
index 0000000..9985f63
Binary files /dev/null and b/data/mods/default/textures/rail_t_junction.png differ
diff --git a/data/mods/default/textures/rat.png b/data/mods/default/textures/rat.png
new file mode 100644 (file)
index 0000000..d1a0e2a
Binary files /dev/null and b/data/mods/default/textures/rat.png differ
diff --git a/data/mods/default/textures/sand.png b/data/mods/default/textures/sand.png
new file mode 100644 (file)
index 0000000..15101a7
Binary files /dev/null and b/data/mods/default/textures/sand.png differ
diff --git a/data/mods/default/textures/sandstone.png b/data/mods/default/textures/sandstone.png
new file mode 100644 (file)
index 0000000..c4759b4
Binary files /dev/null and b/data/mods/default/textures/sandstone.png differ
diff --git a/data/mods/default/textures/sapling.png b/data/mods/default/textures/sapling.png
new file mode 100644 (file)
index 0000000..73f5023
Binary files /dev/null and b/data/mods/default/textures/sapling.png differ
diff --git a/data/mods/default/textures/scorched_stuff.png b/data/mods/default/textures/scorched_stuff.png
new file mode 100644 (file)
index 0000000..9ced2fb
Binary files /dev/null and b/data/mods/default/textures/scorched_stuff.png differ
diff --git a/data/mods/default/textures/sign.png b/data/mods/default/textures/sign.png
new file mode 100644 (file)
index 0000000..2e0b3cb
Binary files /dev/null and b/data/mods/default/textures/sign.png differ
diff --git a/data/mods/default/textures/sign_back.png b/data/mods/default/textures/sign_back.png
new file mode 100644 (file)
index 0000000..779e4bc
Binary files /dev/null and b/data/mods/default/textures/sign_back.png differ
diff --git a/data/mods/default/textures/sign_wall.png b/data/mods/default/textures/sign_wall.png
new file mode 100644 (file)
index 0000000..06eac1e
Binary files /dev/null and b/data/mods/default/textures/sign_wall.png differ
diff --git a/data/mods/default/textures/skybox1.png b/data/mods/default/textures/skybox1.png
new file mode 100644 (file)
index 0000000..9801d5f
Binary files /dev/null and b/data/mods/default/textures/skybox1.png differ
diff --git a/data/mods/default/textures/skybox1_dawn.png b/data/mods/default/textures/skybox1_dawn.png
new file mode 100644 (file)
index 0000000..9711c47
Binary files /dev/null and b/data/mods/default/textures/skybox1_dawn.png differ
diff --git a/data/mods/default/textures/skybox1_night.png b/data/mods/default/textures/skybox1_night.png
new file mode 100644 (file)
index 0000000..32e43a6
Binary files /dev/null and b/data/mods/default/textures/skybox1_night.png differ
diff --git a/data/mods/default/textures/skybox2.png b/data/mods/default/textures/skybox2.png
new file mode 100644 (file)
index 0000000..a8c94b4
Binary files /dev/null and b/data/mods/default/textures/skybox2.png differ
diff --git a/data/mods/default/textures/skybox2_dawn.png b/data/mods/default/textures/skybox2_dawn.png
new file mode 100644 (file)
index 0000000..a761dff
Binary files /dev/null and b/data/mods/default/textures/skybox2_dawn.png differ
diff --git a/data/mods/default/textures/skybox2_night.png b/data/mods/default/textures/skybox2_night.png
new file mode 100644 (file)
index 0000000..beb07a9
Binary files /dev/null and b/data/mods/default/textures/skybox2_night.png differ
diff --git a/data/mods/default/textures/skybox3.png b/data/mods/default/textures/skybox3.png
new file mode 100644 (file)
index 0000000..2776ec7
Binary files /dev/null and b/data/mods/default/textures/skybox3.png differ
diff --git a/data/mods/default/textures/skybox3_dawn.png b/data/mods/default/textures/skybox3_dawn.png
new file mode 100644 (file)
index 0000000..22c8cbe
Binary files /dev/null and b/data/mods/default/textures/skybox3_dawn.png differ
diff --git a/data/mods/default/textures/skybox3_night.png b/data/mods/default/textures/skybox3_night.png
new file mode 100644 (file)
index 0000000..bb50978
Binary files /dev/null and b/data/mods/default/textures/skybox3_night.png differ
diff --git a/data/mods/default/textures/steel_block.png b/data/mods/default/textures/steel_block.png
new file mode 100644 (file)
index 0000000..8e20200
Binary files /dev/null and b/data/mods/default/textures/steel_block.png differ
diff --git a/data/mods/default/textures/steel_ingot.png b/data/mods/default/textures/steel_ingot.png
new file mode 100644 (file)
index 0000000..f6c9414
Binary files /dev/null and b/data/mods/default/textures/steel_ingot.png differ
diff --git a/data/mods/default/textures/stick.png b/data/mods/default/textures/stick.png
new file mode 100644 (file)
index 0000000..2d31797
Binary files /dev/null and b/data/mods/default/textures/stick.png differ
diff --git a/data/mods/default/textures/stone.png b/data/mods/default/textures/stone.png
new file mode 100644 (file)
index 0000000..cad0dbe
Binary files /dev/null and b/data/mods/default/textures/stone.png differ
diff --git a/data/mods/default/textures/tnt_bottom.png b/data/mods/default/textures/tnt_bottom.png
new file mode 100644 (file)
index 0000000..8ba2fca
Binary files /dev/null and b/data/mods/default/textures/tnt_bottom.png differ
diff --git a/data/mods/default/textures/tnt_side.png b/data/mods/default/textures/tnt_side.png
new file mode 100644 (file)
index 0000000..d9a2bc4
Binary files /dev/null and b/data/mods/default/textures/tnt_side.png differ
diff --git a/data/mods/default/textures/tnt_top.png b/data/mods/default/textures/tnt_top.png
new file mode 100644 (file)
index 0000000..a84ffc9
Binary files /dev/null and b/data/mods/default/textures/tnt_top.png differ
diff --git a/data/mods/default/textures/tool_mesepick.png b/data/mods/default/textures/tool_mesepick.png
new file mode 100644 (file)
index 0000000..a1f3812
Binary files /dev/null and b/data/mods/default/textures/tool_mesepick.png differ
diff --git a/data/mods/default/textures/tool_steelaxe.png b/data/mods/default/textures/tool_steelaxe.png
new file mode 100644 (file)
index 0000000..0ad23c9
Binary files /dev/null and b/data/mods/default/textures/tool_steelaxe.png differ
diff --git a/data/mods/default/textures/tool_steelpick.png b/data/mods/default/textures/tool_steelpick.png
new file mode 100644 (file)
index 0000000..7982daf
Binary files /dev/null and b/data/mods/default/textures/tool_steelpick.png differ
diff --git a/data/mods/default/textures/tool_steelshovel.png b/data/mods/default/textures/tool_steelshovel.png
new file mode 100644 (file)
index 0000000..ed84138
Binary files /dev/null and b/data/mods/default/textures/tool_steelshovel.png differ
diff --git a/data/mods/default/textures/tool_steelsword.png b/data/mods/default/textures/tool_steelsword.png
new file mode 100644 (file)
index 0000000..a745812
Binary files /dev/null and b/data/mods/default/textures/tool_steelsword.png differ
diff --git a/data/mods/default/textures/tool_stoneaxe.png b/data/mods/default/textures/tool_stoneaxe.png
new file mode 100644 (file)
index 0000000..698ac91
Binary files /dev/null and b/data/mods/default/textures/tool_stoneaxe.png differ
diff --git a/data/mods/default/textures/tool_stonepick.png b/data/mods/default/textures/tool_stonepick.png
new file mode 100644 (file)
index 0000000..b34de6f
Binary files /dev/null and b/data/mods/default/textures/tool_stonepick.png differ
diff --git a/data/mods/default/textures/tool_stoneshovel.png b/data/mods/default/textures/tool_stoneshovel.png
new file mode 100644 (file)
index 0000000..ba52431
Binary files /dev/null and b/data/mods/default/textures/tool_stoneshovel.png differ
diff --git a/data/mods/default/textures/tool_stonesword.png b/data/mods/default/textures/tool_stonesword.png
new file mode 100644 (file)
index 0000000..8f8191f
Binary files /dev/null and b/data/mods/default/textures/tool_stonesword.png differ
diff --git a/data/mods/default/textures/tool_woodaxe.png b/data/mods/default/textures/tool_woodaxe.png
new file mode 100644 (file)
index 0000000..3daa4af
Binary files /dev/null and b/data/mods/default/textures/tool_woodaxe.png differ
diff --git a/data/mods/default/textures/tool_woodpick.png b/data/mods/default/textures/tool_woodpick.png
new file mode 100644 (file)
index 0000000..ea728cc
Binary files /dev/null and b/data/mods/default/textures/tool_woodpick.png differ
diff --git a/data/mods/default/textures/tool_woodshovel.png b/data/mods/default/textures/tool_woodshovel.png
new file mode 100644 (file)
index 0000000..649ab4c
Binary files /dev/null and b/data/mods/default/textures/tool_woodshovel.png differ
diff --git a/data/mods/default/textures/tool_woodsword.png b/data/mods/default/textures/tool_woodsword.png
new file mode 100644 (file)
index 0000000..d6c6be3
Binary files /dev/null and b/data/mods/default/textures/tool_woodsword.png differ
diff --git a/data/mods/default/textures/torch.png b/data/mods/default/textures/torch.png
new file mode 100644 (file)
index 0000000..7a953c2
Binary files /dev/null and b/data/mods/default/textures/torch.png differ
diff --git a/data/mods/default/textures/torch_on_ceiling.png b/data/mods/default/textures/torch_on_ceiling.png
new file mode 100644 (file)
index 0000000..6965d38
Binary files /dev/null and b/data/mods/default/textures/torch_on_ceiling.png differ
diff --git a/data/mods/default/textures/torch_on_floor.png b/data/mods/default/textures/torch_on_floor.png
new file mode 100644 (file)
index 0000000..76d1dd5
Binary files /dev/null and b/data/mods/default/textures/torch_on_floor.png differ
diff --git a/data/mods/default/textures/tree.png b/data/mods/default/textures/tree.png
new file mode 100644 (file)
index 0000000..65abfc2
Binary files /dev/null and b/data/mods/default/textures/tree.png differ
diff --git a/data/mods/default/textures/tree_top.png b/data/mods/default/textures/tree_top.png
new file mode 100644 (file)
index 0000000..2cdd94f
Binary files /dev/null and b/data/mods/default/textures/tree_top.png differ
diff --git a/data/mods/default/textures/treeprop.png b/data/mods/default/textures/treeprop.png
new file mode 100644 (file)
index 0000000..77ea4d6
Binary files /dev/null and b/data/mods/default/textures/treeprop.png differ
diff --git a/data/mods/default/textures/unknown_block.png b/data/mods/default/textures/unknown_block.png
new file mode 100644 (file)
index 0000000..a27cb8c
Binary files /dev/null and b/data/mods/default/textures/unknown_block.png differ
diff --git a/data/mods/default/textures/unknown_object.png b/data/mods/default/textures/unknown_object.png
new file mode 100644 (file)
index 0000000..4d6a98d
Binary files /dev/null and b/data/mods/default/textures/unknown_object.png differ
diff --git a/data/mods/default/textures/water.png b/data/mods/default/textures/water.png
new file mode 100644 (file)
index 0000000..e5f8cdc
Binary files /dev/null and b/data/mods/default/textures/water.png differ
diff --git a/data/mods/default/textures/wood.png b/data/mods/default/textures/wood.png
new file mode 100644 (file)
index 0000000..57c1d7c
Binary files /dev/null and b/data/mods/default/textures/wood.png differ
diff --git a/data/scripts/default.lua b/data/scripts/default.lua
deleted file mode 100644 (file)
index b677cef..0000000
+++ /dev/null
@@ -1,414 +0,0 @@
-function basic_dump2(o)
-       if type(o) == "number" then
-               return tostring(o)
-       elseif type(o) == "string" then
-               return string.format("%q", o)
-       elseif type(o) == "boolean" then
-               return tostring(o)
-       elseif type(o) == "function" then
-               return "<function>"
-       elseif type(o) == "userdata" then
-               return "<userdata>"
-       elseif type(o) == "nil" then
-               return "nil"
-       else
-               error("cannot dump a " .. type(o))
-               return nil
-       end
-end
-
-function dump2(o, name, dumped)
-       name = name or "_"
-       dumped = dumped or {}
-       io.write(name, " = ")
-       if type(o) == "number" or type(o) == "string" or type(o) == "boolean"
-                       or type(o) == "function" or type(o) == "nil"
-                       or type(o) == "userdata" then
-               io.write(basic_dump2(o), "\n")
-       elseif type(o) == "table" then
-               if dumped[o] then
-                       io.write(dumped[o], "\n")
-               else
-                       dumped[o] = name
-                       io.write("{}\n") -- new table
-                       for k,v in pairs(o) do
-                               local fieldname = string.format("%s[%s]", name, basic_dump2(k))
-                               dump2(v, fieldname, dumped)
-                       end
-               end
-       else
-               error("cannot dump a " .. type(o))
-               return nil
-       end
-end
-
-function dump(o, dumped)
-       dumped = dumped or {}
-       if type(o) == "number" then
-               return tostring(o)
-       elseif type(o) == "string" then
-               return string.format("%q", o)
-       elseif type(o) == "table" then
-               if dumped[o] then
-                       return "<circular reference>"
-               end
-               dumped[o] = true
-               local t = {}
-               for k,v in pairs(o) do
-                       t[#t+1] = "" .. k .. " = " .. dump(v, dumped)
-               end
-               return "{" .. table.concat(t, ", ") .. "}"
-       elseif type(o) == "boolean" then
-               return tostring(o)
-       elseif type(o) == "function" then
-               return "<function>"
-       elseif type(o) == "userdata" then
-               return "<userdata>"
-       elseif type(o) == "nil" then
-               return "nil"
-       else
-               error("cannot dump a " .. type(o))
-               return nil
-       end
-end
-
--- Global functions:
--- minetest.register_entity(name, prototype_table)
--- minetest.register_globalstep(func)
---
--- Global objects:
--- minetest.env - environment reference
---
--- Global tables:
--- minetest.registered_entities
--- ^ List of registered entity prototypes, indexed by name
--- minetest.object_refs
--- ^ List of object references, indexed by active object id
--- minetest.luaentities
--- ^ List of lua entities, indexed by active object id
---
--- EnvRef methods:
--- - add_node(pos, content); pos={x=num, y=num, z=num}
---
--- ObjectRef methods:
--- - remove(): remove object (after returning from Lua)
--- - getpos(): returns {x=num, y=num, z=num}
--- - setpos(pos); pos={x=num, y=num, z=num}
--- - moveto(pos, continuous=false): interpolated move
--- - add_to_inventory(itemstring): add an item to object inventory
---
--- Registered entities:
--- - Functions receive a "luaentity" as self:
---   - It has the member .object, which is an ObjectRef pointing to the object
---   - The original prototype stuff is visible directly via a metatable
---
-
-print("omg lol")
-print("minetest dump: "..dump(minetest))
-
--- Global environment step function
-function on_step(dtime)
-       -- print("on_step")
-end
-
-minetest.register_globalstep(on_step)
-
-minetest.register_tool("WPick", {
-       image = "tool_woodpick.png",
-       basetime = 2.0,
-       dt_weight = 0,
-       dt_crackiness = -0.5,
-       dt_crumbliness = 2,
-       dt_cuttability = 0,
-       basedurability = 30,
-       dd_weight = 0,
-       dd_crackiness = 0,
-       dd_crumbliness = 0,
-       dd_cuttability = 0,
-})
-minetest.register_tool("STPick", {
-       image = "tool_stonepick.png",
-       basetime = 1.5,
-       dt_weight = 0,
-       dt_crackiness = -0.5,
-       dt_crumbliness = 2,
-       dt_cuttability = 0,
-       basedurability = 100,
-       dd_weight = 0,
-       dd_crackiness = 0,
-       dd_crumbliness = 0,
-       dd_cuttability = 0,
-})
-minetest.register_tool("SteelPick", {
-       image = "tool_steelpick.png",
-       basetime = 1.0,
-       dt_weight = 0,
-       dt_crackiness = -0.5,
-       dt_crumbliness = 2,
-       dt_cuttability = 0,
-       basedurability = 333,
-       dd_weight = 0,
-       dd_crackiness = 0,
-       dd_crumbliness = 0,
-       dd_cuttability = 0,
-})
-minetest.register_tool("MesePick", {
-       image = "tool_mesepick.png",
-       basetime = 0,
-       dt_weight = 0,
-       dt_crackiness = 0,
-       dt_crumbliness = 0,
-       dt_cuttability = 0,
-       basedurability = 1337,
-       dd_weight = 0,
-       dd_crackiness = 0,
-       dd_crumbliness = 0,
-       dd_cuttability = 0,
-})
-minetest.register_tool("WShovel", {
-       image = "tool_woodshovel.png",
-       basetime = 2.0,
-       dt_weight = 0.5,
-       dt_crackiness = 2,
-       dt_crumbliness = -1.5,
-       dt_cuttability = 0.3,
-       basedurability = 30,
-       dd_weight = 0,
-       dd_crackiness = 0,
-       dd_crumbliness = 0,
-       dd_cuttability = 0,
-})
-minetest.register_tool("STShovel", {
-       image = "tool_stoneshovel.png",
-       basetime = 1.5,
-       dt_weight = 0.5,
-       dt_crackiness = 2,
-       dt_crumbliness = -1.5,
-       dt_cuttability = 0.1,
-       basedurability = 100,
-       dd_weight = 0,
-       dd_crackiness = 0,
-       dd_crumbliness = 0,
-       dd_cuttability = 0,
-})
-minetest.register_tool("SteelShovel", {
-       image = "tool_steelshovel.png",
-       basetime = 1.0,
-       dt_weight = 0.5,
-       dt_crackiness = 2,
-       dt_crumbliness = -1.5,
-       dt_cuttability = 0.0,
-       basedurability = 330,
-       dd_weight = 0,
-       dd_crackiness = 0,
-       dd_crumbliness = 0,
-       dd_cuttability = 0,
-})
-minetest.register_tool("WAxe", {
-       image = "tool_woodaxe.png",
-       basetime = 2.0,
-       dt_weight = 0.5,
-       dt_crackiness = -0.2,
-       dt_crumbliness = 1,
-       dt_cuttability = -0.5,
-       basedurability = 30,
-       dd_weight = 0,
-       dd_crackiness = 0,
-       dd_crumbliness = 0,
-       dd_cuttability = 0,
-})
-minetest.register_tool("STAxe", {
-       image = "tool_stoneaxe.png",
-       basetime = 1.5,
-       dt_weight = 0.5,
-       dt_crackiness = -0.2,
-       dt_crumbliness = 1,
-       dt_cuttability = -0.5,
-       basedurability = 100,
-       dd_weight = 0,
-       dd_crackiness = 0,
-       dd_crumbliness = 0,
-       dd_cuttability = 0,
-})
-minetest.register_tool("SteelAxe", {
-       image = "tool_steelaxe.png",
-       basetime = 1.0,
-       dt_weight = 0.5,
-       dt_crackiness = -0.2,
-       dt_crumbliness = 1,
-       dt_cuttability = -0.5,
-       basedurability = 330,
-       dd_weight = 0,
-       dd_crackiness = 0,
-       dd_crumbliness = 0,
-       dd_cuttability = 0,
-})
-minetest.register_tool("WSword", {
-       image = "tool_woodsword.png",
-       basetime = 3.0,
-       dt_weight = 3,
-       dt_crackiness = 0,
-       dt_crumbliness = 1,
-       dt_cuttability = -1,
-       basedurability = 30,
-       dd_weight = 0,
-       dd_crackiness = 0,
-       dd_crumbliness = 0,
-       dd_cuttability = 0,
-})
-minetest.register_tool("STSword", {
-       image = "tool_stonesword.png",
-       basetime = 2.5,
-       dt_weight = 3,
-       dt_crackiness = 0,
-       dt_crumbliness = 1,
-       dt_cuttability = -1,
-       basedurability = 100,
-       dd_weight = 0,
-       dd_crackiness = 0,
-       dd_crumbliness = 0,
-       dd_cuttability = 0,
-})
-minetest.register_tool("SteelSword", {
-       image = "tool_steelsword.png",
-       basetime = 2.0,
-       dt_weight = 3,
-       dt_crackiness = 0,
-       dt_crumbliness = 1,
-       dt_cuttability = -1,
-       basedurability = 330,
-       dd_weight = 0,
-       dd_crackiness = 0,
-       dd_crumbliness = 0,
-       dd_cuttability = 0,
-})
-minetest.register_tool("", {
-       image = "",
-       basetime = 0.5,
-       dt_weight = 1,
-       dt_crackiness = 0,
-       dt_crumbliness = -1,
-       dt_cuttability = 0,
-       basedurability = 50,
-       dd_weight = 0,
-       dd_crackiness = 0,
-       dd_crumbliness = 0,
-       dd_cuttability = 0,
-})
-
---[[
-minetest.register_tool("horribletool", {
-       image = "lava.png",
-       basetime = 2.0
-       dt_weight = 0.2
-       dt_crackiness = 0.2
-       dt_crumbliness = 0.2
-       dt_cuttability = 0.2
-       basedurability = 50
-       dd_weight = -5
-       dd_crackiness = -5
-       dd_crumbliness = -5
-       dd_cuttability = -5
-})
---]]
-
-local TNT = {
-       -- Maybe handle gravity and collision this way? dunno
-       physical = true,
-       weight = 5,
-       collisionbox = {-0.5,-0.5,-0.5, 0.5,0.5,0.5},
-       visual = "cube",
-       textures = {"tnt_top.png","tnt_bottom.png","tnt_side.png","tnt_side.png","tnt_side.png","tnt_side.png"},
-       --visual = "single_sprite",
-       --textures = {"mese.png^[forcesingle"},
-       -- Initial value for our timer
-       timer = 0,
-       -- List names of state variables, for serializing object state
-       state_variables = {"timer"},
-}
-
--- Called periodically
-function TNT:on_step(dtime)
-       --print("TNT:on_step()")
-end
-
--- Called when object is punched
-function TNT:on_punch(hitter)
-       print("TNT:on_punch()")
-       self.object:remove()
-       hitter:add_to_inventory("CraftItem testobject1 1")
-end
-
--- Called when object is right-clicked
-function TNT:on_rightclick(clicker)
-       pos = self.object:getpos()
-       pos = {x=pos.x, y=pos.y+0.1, z=pos.z}
-       self.object:moveto(pos, false)
-end
-
-print("TNT dump: "..dump(TNT))
-
-print("Registering TNT");
-minetest.register_entity("TNT", TNT)
-
-print("minetest.registered_entities:")
-dump2(minetest.registered_entities)
-
---[[
-function TNT:on_rightclick(clicker)
-       print("TNT:on_rightclick()")
-       print("self: "..dump(self))
-       print("getmetatable(self): "..dump(getmetatable(self)))
-       print("getmetatable(getmetatable(self)): "..dump(getmetatable(getmetatable(self))))
-       pos = self.object:getpos()
-       print("TNT:on_rightclick(): object position: "..dump(pos))
-       pos = {x=pos.x+0.5+1, y=pos.y+0.5, z=pos.z+0.5}
-       --minetest.env:add_node(pos, 0)
-end
---]]
-
---[=[
-
-register_block(0, {
-       textures = "stone.png",
-       makefacetype = 0,
-       get_dig_duration = function(env, pos, digger)
-               -- Check stuff like digger.current_tool
-               return 1.5
-       end,
-       on_dig = function(env, pos, digger)
-               env:remove_node(pos)
-               digger.inventory.put("MaterialItem2 0");
-       end,
-})
-
-register_block(1, {
-       textures = {"grass.png","mud.png","mud_grass_side.png","mud_grass_side.png","mud_grass_side.png","mud_grass_side.png"},
-       makefacetype = 0,
-       get_dig_duration = function(env, pos, digger)
-               -- Check stuff like digger.current_tool
-               return 0.5
-       end,
-       on_dig = function(env, pos, digger)
-               env:remove_node(pos)
-               digger.inventory.put("MaterialItem2 1");
-       end,
-})
-
--- Consider the "miscellaneous block namespace" to be 0xc00...0xfff = 3072...4095
-register_block(3072, {
-       textures = {"tnt_top.png","tnt_bottom.png","tnt_side.png","tnt_side.png","tnt_side.png","tnt_side.png"},
-       makefacetype = 0,
-       get_dig_duration = function(env, pos, digger)
-               -- Cannot be dug
-               return nil
-       end,
-       -- on_dig = function(env, pos, digger) end, -- Not implemented
-       on_hit = function(env, pos, hitter)
-               -- Replace with TNT object, which will explode after timer, follow gravity, blink and stuff
-               env:add_object("tnt", pos)
-               env:remove_node(pos)
-       end,
-})
---]=]
-
diff --git a/data/textures/apple.png b/data/textures/apple.png
deleted file mode 100644 (file)
index 9593f28..0000000
Binary files a/data/textures/apple.png and /dev/null differ
diff --git a/data/textures/apple_iron.png b/data/textures/apple_iron.png
deleted file mode 100644 (file)
index 2dffdf0..0000000
Binary files a/data/textures/apple_iron.png and /dev/null differ
diff --git a/data/textures/book.png b/data/textures/book.png
deleted file mode 100644 (file)
index 176fb6a..0000000
Binary files a/data/textures/book.png and /dev/null differ
diff --git a/data/textures/bookshelf.png b/data/textures/bookshelf.png
deleted file mode 100644 (file)
index 5ecc50f..0000000
Binary files a/data/textures/bookshelf.png and /dev/null differ
diff --git a/data/textures/brick.png b/data/textures/brick.png
deleted file mode 100644 (file)
index 32d77f3..0000000
Binary files a/data/textures/brick.png and /dev/null differ
diff --git a/data/textures/cactus_side.png b/data/textures/cactus_side.png
deleted file mode 100644 (file)
index fc479fd..0000000
Binary files a/data/textures/cactus_side.png and /dev/null differ
diff --git a/data/textures/cactus_top.png b/data/textures/cactus_top.png
deleted file mode 100644 (file)
index f9e68df..0000000
Binary files a/data/textures/cactus_top.png and /dev/null differ
diff --git a/data/textures/chest_front.png b/data/textures/chest_front.png
deleted file mode 100644 (file)
index c5628af..0000000
Binary files a/data/textures/chest_front.png and /dev/null differ
diff --git a/data/textures/chest_lock.png b/data/textures/chest_lock.png
deleted file mode 100644 (file)
index ae038fa..0000000
Binary files a/data/textures/chest_lock.png and /dev/null differ
diff --git a/data/textures/chest_side.png b/data/textures/chest_side.png
deleted file mode 100644 (file)
index 916dd78..0000000
Binary files a/data/textures/chest_side.png and /dev/null differ
diff --git a/data/textures/chest_top.png b/data/textures/chest_top.png
deleted file mode 100644 (file)
index 58c7967..0000000
Binary files a/data/textures/chest_top.png and /dev/null differ
diff --git a/data/textures/clay.png b/data/textures/clay.png
deleted file mode 100644 (file)
index 3557429..0000000
Binary files a/data/textures/clay.png and /dev/null differ
diff --git a/data/textures/clay_brick.png b/data/textures/clay_brick.png
deleted file mode 100644 (file)
index e36648e..0000000
Binary files a/data/textures/clay_brick.png and /dev/null differ
diff --git a/data/textures/cloud.png b/data/textures/cloud.png
deleted file mode 100644 (file)
index 24091a3..0000000
Binary files a/data/textures/cloud.png and /dev/null differ
diff --git a/data/textures/cobble.png b/data/textures/cobble.png
deleted file mode 100644 (file)
index 7d04474..0000000
Binary files a/data/textures/cobble.png and /dev/null differ
diff --git a/data/textures/cooked_rat.png b/data/textures/cooked_rat.png
deleted file mode 100644 (file)
index daad3be..0000000
Binary files a/data/textures/cooked_rat.png and /dev/null differ
diff --git a/data/textures/crack.png b/data/textures/crack.png
deleted file mode 100644 (file)
index 4997839..0000000
Binary files a/data/textures/crack.png and /dev/null differ
diff --git a/data/textures/dungeon_master.png b/data/textures/dungeon_master.png
deleted file mode 100644 (file)
index 3457c82..0000000
Binary files a/data/textures/dungeon_master.png and /dev/null differ
diff --git a/data/textures/fence.png b/data/textures/fence.png
deleted file mode 100644 (file)
index 0b99f0e..0000000
Binary files a/data/textures/fence.png and /dev/null differ
diff --git a/data/textures/fireball.png b/data/textures/fireball.png
deleted file mode 100644 (file)
index 5231428..0000000
Binary files a/data/textures/fireball.png and /dev/null differ
diff --git a/data/textures/firefly.png b/data/textures/firefly.png
deleted file mode 100644 (file)
index 40df7fa..0000000
Binary files a/data/textures/firefly.png and /dev/null differ
diff --git a/data/textures/fontlucida.png b/data/textures/fontlucida.png
deleted file mode 100644 (file)
index c63fa02..0000000
Binary files a/data/textures/fontlucida.png and /dev/null differ
diff --git a/data/textures/furnace_front.png b/data/textures/furnace_front.png
deleted file mode 100644 (file)
index 1620a27..0000000
Binary files a/data/textures/furnace_front.png and /dev/null differ
diff --git a/data/textures/furnace_side.png b/data/textures/furnace_side.png
deleted file mode 100644 (file)
index 63cb162..0000000
Binary files a/data/textures/furnace_side.png and /dev/null differ
diff --git a/data/textures/glass.png b/data/textures/glass.png
deleted file mode 100644 (file)
index 8598ce6..0000000
Binary files a/data/textures/glass.png and /dev/null differ
diff --git a/data/textures/grass.png b/data/textures/grass.png
deleted file mode 100644 (file)
index 3610bb2..0000000
Binary files a/data/textures/grass.png and /dev/null differ
diff --git a/data/textures/grass_footsteps.png b/data/textures/grass_footsteps.png
deleted file mode 100644 (file)
index 57e063d..0000000
Binary files a/data/textures/grass_footsteps.png and /dev/null differ
diff --git a/data/textures/grass_side.png b/data/textures/grass_side.png
deleted file mode 100644 (file)
index 4f4f680..0000000
Binary files a/data/textures/grass_side.png and /dev/null differ
diff --git a/data/textures/gravel.png b/data/textures/gravel.png
deleted file mode 100644 (file)
index f08666a..0000000
Binary files a/data/textures/gravel.png and /dev/null differ
diff --git a/data/textures/heart.png b/data/textures/heart.png
deleted file mode 100644 (file)
index 6bc183e..0000000
Binary files a/data/textures/heart.png and /dev/null differ
diff --git a/data/textures/junglegrass.png b/data/textures/junglegrass.png
deleted file mode 100644 (file)
index eea87c0..0000000
Binary files a/data/textures/junglegrass.png and /dev/null differ
diff --git a/data/textures/jungletree.png b/data/textures/jungletree.png
deleted file mode 100644 (file)
index ccd20ac..0000000
Binary files a/data/textures/jungletree.png and /dev/null differ
diff --git a/data/textures/jungletree_top.png b/data/textures/jungletree_top.png
deleted file mode 100644 (file)
index 2a9b513..0000000
Binary files a/data/textures/jungletree_top.png and /dev/null differ
diff --git a/data/textures/ladder.png b/data/textures/ladder.png
deleted file mode 100644 (file)
index 1105635..0000000
Binary files a/data/textures/ladder.png and /dev/null differ
diff --git a/data/textures/lava.png b/data/textures/lava.png
deleted file mode 100644 (file)
index cb02ada..0000000
Binary files a/data/textures/lava.png and /dev/null differ
diff --git a/data/textures/leaves.png b/data/textures/leaves.png
deleted file mode 100644 (file)
index 7a25126..0000000
Binary files a/data/textures/leaves.png and /dev/null differ
diff --git a/data/textures/lump_of_clay.png b/data/textures/lump_of_clay.png
deleted file mode 100644 (file)
index be0bab9..0000000
Binary files a/data/textures/lump_of_clay.png and /dev/null differ
diff --git a/data/textures/lump_of_coal.png b/data/textures/lump_of_coal.png
deleted file mode 100644 (file)
index bad901e..0000000
Binary files a/data/textures/lump_of_coal.png and /dev/null differ
diff --git a/data/textures/lump_of_iron.png b/data/textures/lump_of_iron.png
deleted file mode 100644 (file)
index edb9310..0000000
Binary files a/data/textures/lump_of_iron.png and /dev/null differ
diff --git a/data/textures/menulogo.png b/data/textures/menulogo.png
deleted file mode 100644 (file)
index 76595c4..0000000
Binary files a/data/textures/menulogo.png and /dev/null differ
diff --git a/data/textures/mese.png b/data/textures/mese.png
deleted file mode 100644 (file)
index 4c876cd..0000000
Binary files a/data/textures/mese.png and /dev/null differ
diff --git a/data/textures/mineral_coal.png b/data/textures/mineral_coal.png
deleted file mode 100644 (file)
index 3ff9692..0000000
Binary files a/data/textures/mineral_coal.png and /dev/null differ
diff --git a/data/textures/mineral_iron.png b/data/textures/mineral_iron.png
deleted file mode 100644 (file)
index 51b15d9..0000000
Binary files a/data/textures/mineral_iron.png and /dev/null differ
diff --git a/data/textures/mossycobble.png b/data/textures/mossycobble.png
deleted file mode 100644 (file)
index fad1b33..0000000
Binary files a/data/textures/mossycobble.png and /dev/null differ
diff --git a/data/textures/mud.png b/data/textures/mud.png
deleted file mode 100644 (file)
index 7cb9c89..0000000
Binary files a/data/textures/mud.png and /dev/null differ
diff --git a/data/textures/nc_back.png b/data/textures/nc_back.png
deleted file mode 100644 (file)
index f09f416..0000000
Binary files a/data/textures/nc_back.png and /dev/null differ
diff --git a/data/textures/nc_front.png b/data/textures/nc_front.png
deleted file mode 100644 (file)
index cad9eda..0000000
Binary files a/data/textures/nc_front.png and /dev/null differ
diff --git a/data/textures/nc_rb.png b/data/textures/nc_rb.png
deleted file mode 100644 (file)
index 7ebc993..0000000
Binary files a/data/textures/nc_rb.png and /dev/null differ
diff --git a/data/textures/nc_side.png b/data/textures/nc_side.png
deleted file mode 100644 (file)
index f954045..0000000
Binary files a/data/textures/nc_side.png and /dev/null differ
diff --git a/data/textures/oerkki1.png b/data/textures/oerkki1.png
deleted file mode 100644 (file)
index 33cbac9..0000000
Binary files a/data/textures/oerkki1.png and /dev/null differ
diff --git a/data/textures/oerkki1_damaged.png b/data/textures/oerkki1_damaged.png
deleted file mode 100644 (file)
index 9b77738..0000000
Binary files a/data/textures/oerkki1_damaged.png and /dev/null differ
diff --git a/data/textures/paper.png b/data/textures/paper.png
deleted file mode 100644 (file)
index ae5c06b..0000000
Binary files a/data/textures/paper.png and /dev/null differ
diff --git a/data/textures/papyrus.png b/data/textures/papyrus.png
deleted file mode 100644 (file)
index bf0dec7..0000000
Binary files a/data/textures/papyrus.png and /dev/null differ
diff --git a/data/textures/player.png b/data/textures/player.png
deleted file mode 100644 (file)
index 90adf97..0000000
Binary files a/data/textures/player.png and /dev/null differ
diff --git a/data/textures/player_back.png b/data/textures/player_back.png
deleted file mode 100644 (file)
index 530aa75..0000000
Binary files a/data/textures/player_back.png and /dev/null differ
diff --git a/data/textures/rail.png b/data/textures/rail.png
deleted file mode 100644 (file)
index 18176d9..0000000
Binary files a/data/textures/rail.png and /dev/null differ
diff --git a/data/textures/rail_crossing.png b/data/textures/rail_crossing.png
deleted file mode 100644 (file)
index 9846405..0000000
Binary files a/data/textures/rail_crossing.png and /dev/null differ
diff --git a/data/textures/rail_curved.png b/data/textures/rail_curved.png
deleted file mode 100644 (file)
index 62afa3d..0000000
Binary files a/data/textures/rail_curved.png and /dev/null differ
diff --git a/data/textures/rail_t_junction.png b/data/textures/rail_t_junction.png
deleted file mode 100644 (file)
index 9985f63..0000000
Binary files a/data/textures/rail_t_junction.png and /dev/null differ
diff --git a/data/textures/rat.png b/data/textures/rat.png
deleted file mode 100644 (file)
index d1a0e2a..0000000
Binary files a/data/textures/rat.png and /dev/null differ
diff --git a/data/textures/sand.png b/data/textures/sand.png
deleted file mode 100644 (file)
index 15101a7..0000000
Binary files a/data/textures/sand.png and /dev/null differ
diff --git a/data/textures/sandstone.png b/data/textures/sandstone.png
deleted file mode 100644 (file)
index c4759b4..0000000
Binary files a/data/textures/sandstone.png and /dev/null differ
diff --git a/data/textures/sapling.png b/data/textures/sapling.png
deleted file mode 100644 (file)
index 73f5023..0000000
Binary files a/data/textures/sapling.png and /dev/null differ
diff --git a/data/textures/scorched_stuff.png b/data/textures/scorched_stuff.png
deleted file mode 100644 (file)
index 9ced2fb..0000000
Binary files a/data/textures/scorched_stuff.png and /dev/null differ
diff --git a/data/textures/sign.png b/data/textures/sign.png
deleted file mode 100644 (file)
index 2e0b3cb..0000000
Binary files a/data/textures/sign.png and /dev/null differ
diff --git a/data/textures/sign_back.png b/data/textures/sign_back.png
deleted file mode 100644 (file)
index 779e4bc..0000000
Binary files a/data/textures/sign_back.png and /dev/null differ
diff --git a/data/textures/sign_wall.png b/data/textures/sign_wall.png
deleted file mode 100644 (file)
index 06eac1e..0000000
Binary files a/data/textures/sign_wall.png and /dev/null differ
diff --git a/data/textures/skybox1.png b/data/textures/skybox1.png
deleted file mode 100644 (file)
index 9801d5f..0000000
Binary files a/data/textures/skybox1.png and /dev/null differ
diff --git a/data/textures/skybox1_dawn.png b/data/textures/skybox1_dawn.png
deleted file mode 100644 (file)
index 9711c47..0000000
Binary files a/data/textures/skybox1_dawn.png and /dev/null differ
diff --git a/data/textures/skybox1_night.png b/data/textures/skybox1_night.png
deleted file mode 100644 (file)
index 32e43a6..0000000
Binary files a/data/textures/skybox1_night.png and /dev/null differ
diff --git a/data/textures/skybox2.png b/data/textures/skybox2.png
deleted file mode 100644 (file)
index a8c94b4..0000000
Binary files a/data/textures/skybox2.png and /dev/null differ
diff --git a/data/textures/skybox2_dawn.png b/data/textures/skybox2_dawn.png
deleted file mode 100644 (file)
index a761dff..0000000
Binary files a/data/textures/skybox2_dawn.png and /dev/null differ
diff --git a/data/textures/skybox2_night.png b/data/textures/skybox2_night.png
deleted file mode 100644 (file)
index beb07a9..0000000
Binary files a/data/textures/skybox2_night.png and /dev/null differ
diff --git a/data/textures/skybox3.png b/data/textures/skybox3.png
deleted file mode 100644 (file)
index 2776ec7..0000000
Binary files a/data/textures/skybox3.png and /dev/null differ
diff --git a/data/textures/skybox3_dawn.png b/data/textures/skybox3_dawn.png
deleted file mode 100644 (file)
index 22c8cbe..0000000
Binary files a/data/textures/skybox3_dawn.png and /dev/null differ
diff --git a/data/textures/skybox3_night.png b/data/textures/skybox3_night.png
deleted file mode 100644 (file)
index bb50978..0000000
Binary files a/data/textures/skybox3_night.png and /dev/null differ
diff --git a/data/textures/steel_block.png b/data/textures/steel_block.png
deleted file mode 100644 (file)
index 8e20200..0000000
Binary files a/data/textures/steel_block.png and /dev/null differ
diff --git a/data/textures/steel_ingot.png b/data/textures/steel_ingot.png
deleted file mode 100644 (file)
index f6c9414..0000000
Binary files a/data/textures/steel_ingot.png and /dev/null differ
diff --git a/data/textures/stick.png b/data/textures/stick.png
deleted file mode 100644 (file)
index 2d31797..0000000
Binary files a/data/textures/stick.png and /dev/null differ
diff --git a/data/textures/stone.png b/data/textures/stone.png
deleted file mode 100644 (file)
index cad0dbe..0000000
Binary files a/data/textures/stone.png and /dev/null differ
diff --git a/data/textures/tnt_bottom.png b/data/textures/tnt_bottom.png
deleted file mode 100644 (file)
index 8ba2fca..0000000
Binary files a/data/textures/tnt_bottom.png and /dev/null differ
diff --git a/data/textures/tnt_side.png b/data/textures/tnt_side.png
deleted file mode 100644 (file)
index d9a2bc4..0000000
Binary files a/data/textures/tnt_side.png and /dev/null differ
diff --git a/data/textures/tnt_top.png b/data/textures/tnt_top.png
deleted file mode 100644 (file)
index a84ffc9..0000000
Binary files a/data/textures/tnt_top.png and /dev/null differ
diff --git a/data/textures/tool_mesepick.png b/data/textures/tool_mesepick.png
deleted file mode 100644 (file)
index a1f3812..0000000
Binary files a/data/textures/tool_mesepick.png and /dev/null differ
diff --git a/data/textures/tool_steelaxe.png b/data/textures/tool_steelaxe.png
deleted file mode 100644 (file)
index 0ad23c9..0000000
Binary files a/data/textures/tool_steelaxe.png and /dev/null differ
diff --git a/data/textures/tool_steelpick.png b/data/textures/tool_steelpick.png
deleted file mode 100644 (file)
index 7982daf..0000000
Binary files a/data/textures/tool_steelpick.png and /dev/null differ
diff --git a/data/textures/tool_steelshovel.png b/data/textures/tool_steelshovel.png
deleted file mode 100644 (file)
index ed84138..0000000
Binary files a/data/textures/tool_steelshovel.png and /dev/null differ
diff --git a/data/textures/tool_steelsword.png b/data/textures/tool_steelsword.png
deleted file mode 100644 (file)
index a745812..0000000
Binary files a/data/textures/tool_steelsword.png and /dev/null differ
diff --git a/data/textures/tool_stoneaxe.png b/data/textures/tool_stoneaxe.png
deleted file mode 100644 (file)
index 698ac91..0000000
Binary files a/data/textures/tool_stoneaxe.png and /dev/null differ
diff --git a/data/textures/tool_stonepick.png b/data/textures/tool_stonepick.png
deleted file mode 100644 (file)
index b34de6f..0000000
Binary files a/data/textures/tool_stonepick.png and /dev/null differ
diff --git a/data/textures/tool_stoneshovel.png b/data/textures/tool_stoneshovel.png
deleted file mode 100644 (file)
index ba52431..0000000
Binary files a/data/textures/tool_stoneshovel.png and /dev/null differ
diff --git a/data/textures/tool_stonesword.png b/data/textures/tool_stonesword.png
deleted file mode 100644 (file)
index 8f8191f..0000000
Binary files a/data/textures/tool_stonesword.png and /dev/null differ
diff --git a/data/textures/tool_woodaxe.png b/data/textures/tool_woodaxe.png
deleted file mode 100644 (file)
index 3daa4af..0000000
Binary files a/data/textures/tool_woodaxe.png and /dev/null differ
diff --git a/data/textures/tool_woodpick.png b/data/textures/tool_woodpick.png
deleted file mode 100644 (file)
index ea728cc..0000000
Binary files a/data/textures/tool_woodpick.png and /dev/null differ
diff --git a/data/textures/tool_woodshovel.png b/data/textures/tool_woodshovel.png
deleted file mode 100644 (file)
index 649ab4c..0000000
Binary files a/data/textures/tool_woodshovel.png and /dev/null differ
diff --git a/data/textures/tool_woodsword.png b/data/textures/tool_woodsword.png
deleted file mode 100644 (file)
index d6c6be3..0000000
Binary files a/data/textures/tool_woodsword.png and /dev/null differ
diff --git a/data/textures/torch.png b/data/textures/torch.png
deleted file mode 100644 (file)
index 7a953c2..0000000
Binary files a/data/textures/torch.png and /dev/null differ
diff --git a/data/textures/torch_on_ceiling.png b/data/textures/torch_on_ceiling.png
deleted file mode 100644 (file)
index 6965d38..0000000
Binary files a/data/textures/torch_on_ceiling.png and /dev/null differ
diff --git a/data/textures/torch_on_floor.png b/data/textures/torch_on_floor.png
deleted file mode 100644 (file)
index 76d1dd5..0000000
Binary files a/data/textures/torch_on_floor.png and /dev/null differ
diff --git a/data/textures/tree.png b/data/textures/tree.png
deleted file mode 100644 (file)
index 65abfc2..0000000
Binary files a/data/textures/tree.png and /dev/null differ
diff --git a/data/textures/tree_top.png b/data/textures/tree_top.png
deleted file mode 100644 (file)
index 2cdd94f..0000000
Binary files a/data/textures/tree_top.png and /dev/null differ
diff --git a/data/textures/treeprop.png b/data/textures/treeprop.png
deleted file mode 100644 (file)
index 77ea4d6..0000000
Binary files a/data/textures/treeprop.png and /dev/null differ
diff --git a/data/textures/unknown_block.png b/data/textures/unknown_block.png
deleted file mode 100644 (file)
index a27cb8c..0000000
Binary files a/data/textures/unknown_block.png and /dev/null differ
diff --git a/data/textures/unknown_object.png b/data/textures/unknown_object.png
deleted file mode 100644 (file)
index 4d6a98d..0000000
Binary files a/data/textures/unknown_object.png and /dev/null differ
diff --git a/data/textures/water.png b/data/textures/water.png
deleted file mode 100644 (file)
index e5f8cdc..0000000
Binary files a/data/textures/water.png and /dev/null differ
diff --git a/data/textures/wood.png b/data/textures/wood.png
deleted file mode 100644 (file)
index 57c1d7c..0000000
Binary files a/data/textures/wood.png and /dev/null differ
index 6c75863c01788f45c6dcce08fed5889807eb962d..fc87deb296bedeefff5030404eb1e883bc639de1 100644 (file)
@@ -256,9 +256,9 @@ void draw_hotbar(video::IVideoDriver *driver, gui::IGUIFont *font,
        /*
                Draw hearts
        */
+       video::ITexture *heart_texture = tsrc->getTextureRaw("heart.png");
+       if(heart_texture)
        {
-               video::ITexture *heart_texture =
-                               driver->getTexture(getTexturePath("heart.png").c_str());
                v2s32 p = pos + v2s32(0, -20);
                for(s32 i=0; i<halfheartcount/2; i++)
                {
index ee5e301f10364958f2bc191b4134f65c8f5b3f02..9a7f1e97218b7e7f152ed8f05a74390222b6095c 100644 (file)
@@ -997,13 +997,27 @@ Server::Server(
        // Export API
        scriptapi_export(m_lua, this);
        // Load and run scripts
-       std::string defaultscript = porting::path_data + DIR_DELIM
-                       + "scripts" + DIR_DELIM + "default.lua";
-       bool success = script_load(m_lua, defaultscript.c_str());
-       if(!success){
-               errorstream<<"Server: Failed to load and run "
-                               <<defaultscript<<std::endl;
-               assert(0);
+       core::list<std::string> modspaths;
+       modspaths.push_back(porting::path_data + DIR_DELIM + "mods");
+       for(core::list<std::string>::Iterator i = modspaths.begin();
+                       i != modspaths.end(); i++){
+               std::string modspath = *i;
+               std::vector<fs::DirListNode> dirlist = fs::GetDirListing(modspath);
+               for(u32 j=0; j<dirlist.size(); j++){
+                       if(!dirlist[j].dir)
+                               continue;
+                       std::string modname = dirlist[j].name;
+                       infostream<<"Server: Loading mod \""<<modname<<"\" script..."
+                                       <<std::endl;
+                       std::string scriptpath = modspath + DIR_DELIM + modname
+                                       + DIR_DELIM + "init.lua";
+                       bool success = script_load(m_lua, scriptpath.c_str());
+                       if(!success){
+                               errorstream<<"Server: Failed to load and run "
+                                               <<scriptpath<<std::endl;
+                               assert(0);
+                       }
+               }
        }
        
        // Initialize Environment
index c8fffffa7ad44fca8a8d16669efd0d0b50e9667d..eb3616f026531eea675ce5d5ffeb7a378777e19c 100644 (file)
@@ -132,7 +132,7 @@ std::string getTexturePath(const std::string &filename)
        */
        if(fullpath == "")
        {
-               std::string rel_path = std::string("textures")+DIR_DELIM+filename;
+               std::string rel_path = std::string("clienttextures")+DIR_DELIM+filename;
                std::string testpath = porting::path_data + DIR_DELIM + rel_path;
                // Check all filename extensions. Returns "" if not found.
                fullpath = getImagePath(testpath);