From e71744b918898b98ffa5ae949fbf2a1b877b254c Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Tue, 15 Nov 2011 08:48:24 +0200 Subject: Modify mod and texture directory hierarchies --- data/clienttextures/fontlucida.png | Bin 0 -> 17284 bytes data/clienttextures/menulogo.png | Bin 0 -> 498 bytes data/clienttextures/mud.png | Bin 0 -> 1586 bytes data/mods/default/init.lua | 418 ++++++++++++++++++++++++ data/mods/default/textures/apple.png | Bin 0 -> 203 bytes data/mods/default/textures/apple_iron.png | Bin 0 -> 207 bytes data/mods/default/textures/book.png | Bin 0 -> 292 bytes data/mods/default/textures/bookshelf.png | Bin 0 -> 597 bytes data/mods/default/textures/brick.png | Bin 0 -> 604 bytes data/mods/default/textures/cactus_side.png | Bin 0 -> 279 bytes data/mods/default/textures/cactus_top.png | Bin 0 -> 236 bytes data/mods/default/textures/chest_front.png | Bin 0 -> 167 bytes data/mods/default/textures/chest_lock.png | Bin 0 -> 224 bytes data/mods/default/textures/chest_side.png | Bin 0 -> 151 bytes data/mods/default/textures/chest_top.png | Bin 0 -> 142 bytes data/mods/default/textures/clay.png | Bin 0 -> 613 bytes data/mods/default/textures/clay_brick.png | Bin 0 -> 249 bytes data/mods/default/textures/cloud.png | Bin 0 -> 118 bytes data/mods/default/textures/cobble.png | Bin 0 -> 830 bytes data/mods/default/textures/cooked_rat.png | Bin 0 -> 239 bytes data/mods/default/textures/crack.png | Bin 0 -> 1076 bytes data/mods/default/textures/dungeon_master.png | Bin 0 -> 6636 bytes data/mods/default/textures/fence.png | Bin 0 -> 539 bytes data/mods/default/textures/fireball.png | Bin 0 -> 603 bytes data/mods/default/textures/firefly.png | Bin 0 -> 116 bytes data/mods/default/textures/furnace_front.png | Bin 0 -> 246 bytes data/mods/default/textures/furnace_side.png | Bin 0 -> 236 bytes data/mods/default/textures/glass.png | Bin 0 -> 1309 bytes data/mods/default/textures/grass.png | Bin 0 -> 874 bytes data/mods/default/textures/grass_footsteps.png | Bin 0 -> 856 bytes data/mods/default/textures/grass_side.png | Bin 0 -> 878 bytes data/mods/default/textures/gravel.png | Bin 0 -> 591 bytes data/mods/default/textures/heart.png | Bin 0 -> 308 bytes data/mods/default/textures/junglegrass.png | Bin 0 -> 672 bytes data/mods/default/textures/jungletree.png | Bin 0 -> 502 bytes data/mods/default/textures/jungletree_top.png | Bin 0 -> 507 bytes data/mods/default/textures/ladder.png | Bin 0 -> 395 bytes data/mods/default/textures/lava.png | Bin 0 -> 357 bytes data/mods/default/textures/leaves.png | Bin 0 -> 1689 bytes data/mods/default/textures/lump_of_clay.png | Bin 0 -> 210 bytes data/mods/default/textures/lump_of_coal.png | Bin 0 -> 933 bytes data/mods/default/textures/lump_of_iron.png | Bin 0 -> 936 bytes data/mods/default/textures/mese.png | Bin 0 -> 203 bytes data/mods/default/textures/mineral_coal.png | Bin 0 -> 952 bytes data/mods/default/textures/mineral_iron.png | Bin 0 -> 1614 bytes data/mods/default/textures/mossycobble.png | Bin 0 -> 965 bytes data/mods/default/textures/mud.png | Bin 0 -> 1586 bytes data/mods/default/textures/nc_back.png | Bin 0 -> 303 bytes data/mods/default/textures/nc_front.png | Bin 0 -> 410 bytes data/mods/default/textures/nc_rb.png | Bin 0 -> 203 bytes data/mods/default/textures/nc_side.png | Bin 0 -> 260 bytes data/mods/default/textures/oerkki1.png | Bin 0 -> 250 bytes data/mods/default/textures/oerkki1_damaged.png | Bin 0 -> 341 bytes data/mods/default/textures/paper.png | Bin 0 -> 242 bytes data/mods/default/textures/papyrus.png | Bin 0 -> 366 bytes data/mods/default/textures/player.png | Bin 0 -> 212 bytes data/mods/default/textures/player_back.png | Bin 0 -> 201 bytes data/mods/default/textures/rail.png | Bin 0 -> 507 bytes data/mods/default/textures/rail_crossing.png | Bin 0 -> 555 bytes data/mods/default/textures/rail_curved.png | Bin 0 -> 545 bytes data/mods/default/textures/rail_t_junction.png | Bin 0 -> 542 bytes data/mods/default/textures/rat.png | Bin 0 -> 920 bytes data/mods/default/textures/sand.png | Bin 0 -> 1381 bytes data/mods/default/textures/sandstone.png | Bin 0 -> 772 bytes data/mods/default/textures/sapling.png | Bin 0 -> 502 bytes data/mods/default/textures/scorched_stuff.png | Bin 0 -> 233 bytes data/mods/default/textures/sign.png | Bin 0 -> 1374 bytes data/mods/default/textures/sign_back.png | Bin 0 -> 1312 bytes data/mods/default/textures/sign_wall.png | Bin 0 -> 489 bytes data/mods/default/textures/skybox1.png | Bin 0 -> 236 bytes data/mods/default/textures/skybox1_dawn.png | Bin 0 -> 598 bytes data/mods/default/textures/skybox1_night.png | Bin 0 -> 2247 bytes data/mods/default/textures/skybox2.png | Bin 0 -> 231 bytes data/mods/default/textures/skybox2_dawn.png | Bin 0 -> 199 bytes data/mods/default/textures/skybox2_night.png | Bin 0 -> 2583 bytes data/mods/default/textures/skybox3.png | Bin 0 -> 190 bytes data/mods/default/textures/skybox3_dawn.png | Bin 0 -> 190 bytes data/mods/default/textures/skybox3_night.png | Bin 0 -> 190 bytes data/mods/default/textures/steel_block.png | Bin 0 -> 219 bytes data/mods/default/textures/steel_ingot.png | Bin 0 -> 207 bytes data/mods/default/textures/stick.png | Bin 0 -> 182 bytes data/mods/default/textures/stone.png | Bin 0 -> 806 bytes data/mods/default/textures/tnt_bottom.png | Bin 0 -> 161 bytes data/mods/default/textures/tnt_side.png | Bin 0 -> 186 bytes data/mods/default/textures/tnt_top.png | Bin 0 -> 264 bytes data/mods/default/textures/tool_mesepick.png | Bin 0 -> 252 bytes data/mods/default/textures/tool_steelaxe.png | Bin 0 -> 927 bytes data/mods/default/textures/tool_steelpick.png | Bin 0 -> 271 bytes data/mods/default/textures/tool_steelshovel.png | Bin 0 -> 216 bytes data/mods/default/textures/tool_steelsword.png | Bin 0 -> 291 bytes data/mods/default/textures/tool_stoneaxe.png | Bin 0 -> 931 bytes data/mods/default/textures/tool_stonepick.png | Bin 0 -> 262 bytes data/mods/default/textures/tool_stoneshovel.png | Bin 0 -> 203 bytes data/mods/default/textures/tool_stonesword.png | Bin 0 -> 301 bytes data/mods/default/textures/tool_woodaxe.png | Bin 0 -> 927 bytes data/mods/default/textures/tool_woodpick.png | Bin 0 -> 245 bytes data/mods/default/textures/tool_woodshovel.png | Bin 0 -> 203 bytes data/mods/default/textures/tool_woodsword.png | Bin 0 -> 255 bytes data/mods/default/textures/torch.png | Bin 0 -> 925 bytes data/mods/default/textures/torch_on_ceiling.png | Bin 0 -> 913 bytes data/mods/default/textures/torch_on_floor.png | Bin 0 -> 917 bytes data/mods/default/textures/tree.png | Bin 0 -> 1445 bytes data/mods/default/textures/tree_top.png | Bin 0 -> 1024 bytes data/mods/default/textures/treeprop.png | Bin 0 -> 1055 bytes data/mods/default/textures/unknown_block.png | Bin 0 -> 582 bytes data/mods/default/textures/unknown_object.png | Bin 0 -> 489 bytes data/mods/default/textures/water.png | Bin 0 -> 518 bytes data/mods/default/textures/wood.png | Bin 0 -> 1400 bytes data/scripts/default.lua | 414 ----------------------- data/textures/apple.png | Bin 203 -> 0 bytes data/textures/apple_iron.png | Bin 207 -> 0 bytes data/textures/book.png | Bin 292 -> 0 bytes data/textures/bookshelf.png | Bin 597 -> 0 bytes data/textures/brick.png | Bin 604 -> 0 bytes data/textures/cactus_side.png | Bin 279 -> 0 bytes data/textures/cactus_top.png | Bin 236 -> 0 bytes data/textures/chest_front.png | Bin 167 -> 0 bytes data/textures/chest_lock.png | Bin 224 -> 0 bytes data/textures/chest_side.png | Bin 151 -> 0 bytes data/textures/chest_top.png | Bin 142 -> 0 bytes data/textures/clay.png | Bin 613 -> 0 bytes data/textures/clay_brick.png | Bin 249 -> 0 bytes data/textures/cloud.png | Bin 118 -> 0 bytes data/textures/cobble.png | Bin 830 -> 0 bytes data/textures/cooked_rat.png | Bin 239 -> 0 bytes data/textures/crack.png | Bin 1076 -> 0 bytes data/textures/dungeon_master.png | Bin 6636 -> 0 bytes data/textures/fence.png | Bin 539 -> 0 bytes data/textures/fireball.png | Bin 603 -> 0 bytes data/textures/firefly.png | Bin 116 -> 0 bytes data/textures/fontlucida.png | Bin 17284 -> 0 bytes data/textures/furnace_front.png | Bin 246 -> 0 bytes data/textures/furnace_side.png | Bin 236 -> 0 bytes data/textures/glass.png | Bin 1309 -> 0 bytes data/textures/grass.png | Bin 874 -> 0 bytes data/textures/grass_footsteps.png | Bin 856 -> 0 bytes data/textures/grass_side.png | Bin 878 -> 0 bytes data/textures/gravel.png | Bin 591 -> 0 bytes data/textures/heart.png | Bin 308 -> 0 bytes data/textures/junglegrass.png | Bin 672 -> 0 bytes data/textures/jungletree.png | Bin 502 -> 0 bytes data/textures/jungletree_top.png | Bin 507 -> 0 bytes data/textures/ladder.png | Bin 395 -> 0 bytes data/textures/lava.png | Bin 357 -> 0 bytes data/textures/leaves.png | Bin 1689 -> 0 bytes data/textures/lump_of_clay.png | Bin 210 -> 0 bytes data/textures/lump_of_coal.png | Bin 933 -> 0 bytes data/textures/lump_of_iron.png | Bin 936 -> 0 bytes data/textures/menulogo.png | Bin 498 -> 0 bytes data/textures/mese.png | Bin 203 -> 0 bytes data/textures/mineral_coal.png | Bin 952 -> 0 bytes data/textures/mineral_iron.png | Bin 1614 -> 0 bytes data/textures/mossycobble.png | Bin 965 -> 0 bytes data/textures/mud.png | Bin 1586 -> 0 bytes data/textures/nc_back.png | Bin 303 -> 0 bytes data/textures/nc_front.png | Bin 410 -> 0 bytes data/textures/nc_rb.png | Bin 203 -> 0 bytes data/textures/nc_side.png | Bin 260 -> 0 bytes data/textures/oerkki1.png | Bin 250 -> 0 bytes data/textures/oerkki1_damaged.png | Bin 341 -> 0 bytes data/textures/paper.png | Bin 242 -> 0 bytes data/textures/papyrus.png | Bin 366 -> 0 bytes data/textures/player.png | Bin 212 -> 0 bytes data/textures/player_back.png | Bin 201 -> 0 bytes data/textures/rail.png | Bin 507 -> 0 bytes data/textures/rail_crossing.png | Bin 555 -> 0 bytes data/textures/rail_curved.png | Bin 545 -> 0 bytes data/textures/rail_t_junction.png | Bin 542 -> 0 bytes data/textures/rat.png | Bin 920 -> 0 bytes data/textures/sand.png | Bin 1381 -> 0 bytes data/textures/sandstone.png | Bin 772 -> 0 bytes data/textures/sapling.png | Bin 502 -> 0 bytes data/textures/scorched_stuff.png | Bin 233 -> 0 bytes data/textures/sign.png | Bin 1374 -> 0 bytes data/textures/sign_back.png | Bin 1312 -> 0 bytes data/textures/sign_wall.png | Bin 489 -> 0 bytes data/textures/skybox1.png | Bin 236 -> 0 bytes data/textures/skybox1_dawn.png | Bin 598 -> 0 bytes data/textures/skybox1_night.png | Bin 2247 -> 0 bytes data/textures/skybox2.png | Bin 231 -> 0 bytes data/textures/skybox2_dawn.png | Bin 199 -> 0 bytes data/textures/skybox2_night.png | Bin 2583 -> 0 bytes data/textures/skybox3.png | Bin 190 -> 0 bytes data/textures/skybox3_dawn.png | Bin 190 -> 0 bytes data/textures/skybox3_night.png | Bin 190 -> 0 bytes data/textures/steel_block.png | Bin 219 -> 0 bytes data/textures/steel_ingot.png | Bin 207 -> 0 bytes data/textures/stick.png | Bin 182 -> 0 bytes data/textures/stone.png | Bin 806 -> 0 bytes data/textures/tnt_bottom.png | Bin 161 -> 0 bytes data/textures/tnt_side.png | Bin 186 -> 0 bytes data/textures/tnt_top.png | Bin 264 -> 0 bytes data/textures/tool_mesepick.png | Bin 252 -> 0 bytes data/textures/tool_steelaxe.png | Bin 927 -> 0 bytes data/textures/tool_steelpick.png | Bin 271 -> 0 bytes data/textures/tool_steelshovel.png | Bin 216 -> 0 bytes data/textures/tool_steelsword.png | Bin 291 -> 0 bytes data/textures/tool_stoneaxe.png | Bin 931 -> 0 bytes data/textures/tool_stonepick.png | Bin 262 -> 0 bytes data/textures/tool_stoneshovel.png | Bin 203 -> 0 bytes data/textures/tool_stonesword.png | Bin 301 -> 0 bytes data/textures/tool_woodaxe.png | Bin 927 -> 0 bytes data/textures/tool_woodpick.png | Bin 245 -> 0 bytes data/textures/tool_woodshovel.png | Bin 203 -> 0 bytes data/textures/tool_woodsword.png | Bin 255 -> 0 bytes data/textures/torch.png | Bin 925 -> 0 bytes data/textures/torch_on_ceiling.png | Bin 913 -> 0 bytes data/textures/torch_on_floor.png | Bin 917 -> 0 bytes data/textures/tree.png | Bin 1445 -> 0 bytes data/textures/tree_top.png | Bin 1024 -> 0 bytes data/textures/treeprop.png | Bin 1055 -> 0 bytes data/textures/unknown_block.png | Bin 582 -> 0 bytes data/textures/unknown_object.png | Bin 489 -> 0 bytes data/textures/water.png | Bin 518 -> 0 bytes data/textures/wood.png | Bin 1400 -> 0 bytes src/game.cpp | 4 +- src/server.cpp | 28 +- src/tile.cpp | 2 +- 218 files changed, 442 insertions(+), 424 deletions(-) create mode 100644 data/clienttextures/fontlucida.png create mode 100644 data/clienttextures/menulogo.png create mode 100644 data/clienttextures/mud.png create mode 100644 data/mods/default/init.lua create mode 100644 data/mods/default/textures/apple.png create mode 100644 data/mods/default/textures/apple_iron.png create mode 100644 data/mods/default/textures/book.png create mode 100644 data/mods/default/textures/bookshelf.png create mode 100644 data/mods/default/textures/brick.png create mode 100644 data/mods/default/textures/cactus_side.png create mode 100644 data/mods/default/textures/cactus_top.png create mode 100644 data/mods/default/textures/chest_front.png create mode 100644 data/mods/default/textures/chest_lock.png create mode 100644 data/mods/default/textures/chest_side.png create mode 100644 data/mods/default/textures/chest_top.png create mode 100644 data/mods/default/textures/clay.png create mode 100644 data/mods/default/textures/clay_brick.png create mode 100644 data/mods/default/textures/cloud.png create mode 100644 data/mods/default/textures/cobble.png create mode 100644 data/mods/default/textures/cooked_rat.png create mode 100644 data/mods/default/textures/crack.png create mode 100644 data/mods/default/textures/dungeon_master.png create mode 100644 data/mods/default/textures/fence.png create mode 100644 data/mods/default/textures/fireball.png create mode 100644 data/mods/default/textures/firefly.png create mode 100644 data/mods/default/textures/furnace_front.png create mode 100644 data/mods/default/textures/furnace_side.png create mode 100644 data/mods/default/textures/glass.png create mode 100644 data/mods/default/textures/grass.png create mode 100644 data/mods/default/textures/grass_footsteps.png create mode 100644 data/mods/default/textures/grass_side.png create mode 100644 data/mods/default/textures/gravel.png create mode 100644 data/mods/default/textures/heart.png create mode 100644 data/mods/default/textures/junglegrass.png create mode 100644 data/mods/default/textures/jungletree.png create mode 100644 data/mods/default/textures/jungletree_top.png create mode 100644 data/mods/default/textures/ladder.png create mode 100644 data/mods/default/textures/lava.png create mode 100644 data/mods/default/textures/leaves.png create mode 100644 data/mods/default/textures/lump_of_clay.png create mode 100644 data/mods/default/textures/lump_of_coal.png create mode 100644 data/mods/default/textures/lump_of_iron.png create mode 100644 data/mods/default/textures/mese.png create mode 100644 data/mods/default/textures/mineral_coal.png create mode 100644 data/mods/default/textures/mineral_iron.png create mode 100644 data/mods/default/textures/mossycobble.png create mode 100644 data/mods/default/textures/mud.png create mode 100644 data/mods/default/textures/nc_back.png create mode 100644 data/mods/default/textures/nc_front.png create mode 100644 data/mods/default/textures/nc_rb.png create mode 100644 data/mods/default/textures/nc_side.png create mode 100644 data/mods/default/textures/oerkki1.png create mode 100644 data/mods/default/textures/oerkki1_damaged.png create mode 100644 data/mods/default/textures/paper.png create mode 100644 data/mods/default/textures/papyrus.png create mode 100644 data/mods/default/textures/player.png create mode 100644 data/mods/default/textures/player_back.png create mode 100644 data/mods/default/textures/rail.png create mode 100644 data/mods/default/textures/rail_crossing.png create mode 100644 data/mods/default/textures/rail_curved.png create mode 100644 data/mods/default/textures/rail_t_junction.png create mode 100644 data/mods/default/textures/rat.png create mode 100644 data/mods/default/textures/sand.png create mode 100644 data/mods/default/textures/sandstone.png create mode 100644 data/mods/default/textures/sapling.png create mode 100644 data/mods/default/textures/scorched_stuff.png create mode 100644 data/mods/default/textures/sign.png create mode 100644 data/mods/default/textures/sign_back.png create mode 100644 data/mods/default/textures/sign_wall.png create mode 100644 data/mods/default/textures/skybox1.png create mode 100644 data/mods/default/textures/skybox1_dawn.png create mode 100644 data/mods/default/textures/skybox1_night.png create mode 100644 data/mods/default/textures/skybox2.png create mode 100644 data/mods/default/textures/skybox2_dawn.png create mode 100644 data/mods/default/textures/skybox2_night.png create mode 100644 data/mods/default/textures/skybox3.png create mode 100644 data/mods/default/textures/skybox3_dawn.png create mode 100644 data/mods/default/textures/skybox3_night.png create mode 100644 data/mods/default/textures/steel_block.png create mode 100644 data/mods/default/textures/steel_ingot.png create mode 100644 data/mods/default/textures/stick.png create mode 100644 data/mods/default/textures/stone.png create mode 100644 data/mods/default/textures/tnt_bottom.png create mode 100644 data/mods/default/textures/tnt_side.png create mode 100644 data/mods/default/textures/tnt_top.png create mode 100644 data/mods/default/textures/tool_mesepick.png create mode 100644 data/mods/default/textures/tool_steelaxe.png create mode 100644 data/mods/default/textures/tool_steelpick.png create mode 100644 data/mods/default/textures/tool_steelshovel.png create mode 100644 data/mods/default/textures/tool_steelsword.png create mode 100644 data/mods/default/textures/tool_stoneaxe.png create mode 100644 data/mods/default/textures/tool_stonepick.png create mode 100644 data/mods/default/textures/tool_stoneshovel.png create mode 100644 data/mods/default/textures/tool_stonesword.png create mode 100644 data/mods/default/textures/tool_woodaxe.png create mode 100644 data/mods/default/textures/tool_woodpick.png create mode 100644 data/mods/default/textures/tool_woodshovel.png create mode 100644 data/mods/default/textures/tool_woodsword.png create mode 100644 data/mods/default/textures/torch.png create mode 100644 data/mods/default/textures/torch_on_ceiling.png create mode 100644 data/mods/default/textures/torch_on_floor.png create mode 100644 data/mods/default/textures/tree.png create mode 100644 data/mods/default/textures/tree_top.png create mode 100644 data/mods/default/textures/treeprop.png create mode 100644 data/mods/default/textures/unknown_block.png create mode 100644 data/mods/default/textures/unknown_object.png create mode 100644 data/mods/default/textures/water.png create mode 100644 data/mods/default/textures/wood.png delete mode 100644 data/scripts/default.lua delete mode 100644 data/textures/apple.png delete mode 100644 data/textures/apple_iron.png delete mode 100644 data/textures/book.png delete mode 100644 data/textures/bookshelf.png delete mode 100644 data/textures/brick.png delete mode 100644 data/textures/cactus_side.png delete mode 100644 data/textures/cactus_top.png delete mode 100644 data/textures/chest_front.png delete mode 100644 data/textures/chest_lock.png delete mode 100644 data/textures/chest_side.png delete mode 100644 data/textures/chest_top.png delete mode 100644 data/textures/clay.png delete mode 100644 data/textures/clay_brick.png delete mode 100644 data/textures/cloud.png delete mode 100644 data/textures/cobble.png delete mode 100644 data/textures/cooked_rat.png delete mode 100644 data/textures/crack.png delete mode 100644 data/textures/dungeon_master.png delete mode 100644 data/textures/fence.png delete mode 100644 data/textures/fireball.png delete mode 100644 data/textures/firefly.png delete mode 100644 data/textures/fontlucida.png delete mode 100644 data/textures/furnace_front.png delete mode 100644 data/textures/furnace_side.png delete mode 100644 data/textures/glass.png delete mode 100644 data/textures/grass.png delete mode 100644 data/textures/grass_footsteps.png delete mode 100644 data/textures/grass_side.png delete mode 100644 data/textures/gravel.png delete mode 100644 data/textures/heart.png delete mode 100644 data/textures/junglegrass.png delete mode 100644 data/textures/jungletree.png delete mode 100644 data/textures/jungletree_top.png delete mode 100644 data/textures/ladder.png delete mode 100644 data/textures/lava.png delete mode 100644 data/textures/leaves.png delete mode 100644 data/textures/lump_of_clay.png delete mode 100644 data/textures/lump_of_coal.png delete mode 100644 data/textures/lump_of_iron.png delete mode 100644 data/textures/menulogo.png delete mode 100644 data/textures/mese.png delete mode 100644 data/textures/mineral_coal.png delete mode 100644 data/textures/mineral_iron.png delete mode 100644 data/textures/mossycobble.png delete mode 100644 data/textures/mud.png delete mode 100644 data/textures/nc_back.png delete mode 100644 data/textures/nc_front.png delete mode 100644 data/textures/nc_rb.png delete mode 100644 data/textures/nc_side.png delete mode 100644 data/textures/oerkki1.png delete mode 100644 data/textures/oerkki1_damaged.png delete mode 100644 data/textures/paper.png delete mode 100644 data/textures/papyrus.png delete mode 100644 data/textures/player.png delete mode 100644 data/textures/player_back.png delete mode 100644 data/textures/rail.png delete mode 100644 data/textures/rail_crossing.png delete mode 100644 data/textures/rail_curved.png delete mode 100644 data/textures/rail_t_junction.png delete mode 100644 data/textures/rat.png delete mode 100644 data/textures/sand.png delete mode 100644 data/textures/sandstone.png delete mode 100644 data/textures/sapling.png delete mode 100644 data/textures/scorched_stuff.png delete mode 100644 data/textures/sign.png delete mode 100644 data/textures/sign_back.png delete mode 100644 data/textures/sign_wall.png delete mode 100644 data/textures/skybox1.png delete mode 100644 data/textures/skybox1_dawn.png delete mode 100644 data/textures/skybox1_night.png delete mode 100644 data/textures/skybox2.png delete mode 100644 data/textures/skybox2_dawn.png delete mode 100644 data/textures/skybox2_night.png delete mode 100644 data/textures/skybox3.png delete mode 100644 data/textures/skybox3_dawn.png delete mode 100644 data/textures/skybox3_night.png delete mode 100644 data/textures/steel_block.png delete mode 100644 data/textures/steel_ingot.png delete mode 100644 data/textures/stick.png delete mode 100644 data/textures/stone.png delete mode 100644 data/textures/tnt_bottom.png delete mode 100644 data/textures/tnt_side.png delete mode 100644 data/textures/tnt_top.png delete mode 100644 data/textures/tool_mesepick.png delete mode 100644 data/textures/tool_steelaxe.png delete mode 100644 data/textures/tool_steelpick.png delete mode 100644 data/textures/tool_steelshovel.png delete mode 100644 data/textures/tool_steelsword.png delete mode 100644 data/textures/tool_stoneaxe.png delete mode 100644 data/textures/tool_stonepick.png delete mode 100644 data/textures/tool_stoneshovel.png delete mode 100644 data/textures/tool_stonesword.png delete mode 100644 data/textures/tool_woodaxe.png delete mode 100644 data/textures/tool_woodpick.png delete mode 100644 data/textures/tool_woodshovel.png delete mode 100644 data/textures/tool_woodsword.png delete mode 100644 data/textures/torch.png delete mode 100644 data/textures/torch_on_ceiling.png delete mode 100644 data/textures/torch_on_floor.png delete mode 100644 data/textures/tree.png delete mode 100644 data/textures/tree_top.png delete mode 100644 data/textures/treeprop.png delete mode 100644 data/textures/unknown_block.png delete mode 100644 data/textures/unknown_object.png delete mode 100644 data/textures/water.png delete mode 100644 data/textures/wood.png diff --git a/data/clienttextures/fontlucida.png b/data/clienttextures/fontlucida.png new file mode 100644 index 000000000..c63fa02b7 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 index 000000000..76595c48d 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 index 000000000..7cb9c89a6 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 index 000000000..a60979ff4 --- /dev/null +++ b/data/mods/default/init.lua @@ -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 "" + elseif type(o) == "userdata" then + return "" + 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 "" + 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 "" + elseif type(o) == "userdata" then + return "" + 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 index 000000000..9593f28f6 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 index 000000000..2dffdf014 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 index 000000000..176fb6aa9 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 index 000000000..5ecc50ff3 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 index 000000000..32d77f347 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 index 000000000..fc479fde6 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 index 000000000..f9e68df51 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 index 000000000..c5628af94 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 index 000000000..ae038fae5 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 index 000000000..916dd784d 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 index 000000000..58c79674d 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 index 000000000..3557429d8 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 index 000000000..e36648e48 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 index 000000000..24091a377 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 index 000000000..7d0447419 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 index 000000000..daad3be0d 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 index 000000000..499783982 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 index 000000000..3457c8228 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 index 000000000..0b99f0eb5 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 index 000000000..523142850 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 index 000000000..40df7fa1c 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 index 000000000..1620a27c3 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 index 000000000..63cb162fe 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 index 000000000..8598ce670 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 index 000000000..3610bb2bc 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 index 000000000..57e063d8c 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 index 000000000..4f4f680be 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 index 000000000..f08666ad9 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 index 000000000..6bc183e04 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 index 000000000..eea87c07c 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 index 000000000..ccd20ac74 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 index 000000000..2a9b51373 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 index 000000000..11056359d 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 index 000000000..cb02ada13 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 index 000000000..7a25126e9 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 index 000000000..be0bab9d7 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 index 000000000..bad901efa 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 index 000000000..edb931018 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 index 000000000..4c876cdc5 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 index 000000000..3ff9692fb 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 index 000000000..51b15d95d 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 index 000000000..fad1b33ff 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 index 000000000..7cb9c89a6 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 index 000000000..f09f41658 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 index 000000000..cad9edab1 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 index 000000000..7ebc9930d 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 index 000000000..f954045fb 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 index 000000000..33cbac9e7 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 index 000000000..9b777387c 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 index 000000000..ae5c06bc6 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 index 000000000..bf0dec7fe 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 index 000000000..90adf9747 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 index 000000000..530aa7519 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 index 000000000..18176d9f3 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 index 000000000..984640577 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 index 000000000..62afa3d2b 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 index 000000000..9985f63cd 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 index 000000000..d1a0e2ae2 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 index 000000000..15101a7eb 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 index 000000000..c4759b4d0 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 index 000000000..73f502306 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 index 000000000..9ced2fbe8 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 index 000000000..2e0b3cbef 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 index 000000000..779e4bc2c 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 index 000000000..06eac1ee9 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 index 000000000..9801d5f4f 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 index 000000000..9711c4781 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 index 000000000..32e43a63e 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 index 000000000..a8c94b4d2 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 index 000000000..a761dff2d 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 index 000000000..beb07a9cf 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 index 000000000..2776ec712 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 index 000000000..22c8cbef5 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 index 000000000..bb509789b 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 index 000000000..8e2020081 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 index 000000000..f6c9414e7 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 index 000000000..2d31797f0 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 index 000000000..cad0dbe2b 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 index 000000000..8ba2fca0b 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 index 000000000..d9a2bc4eb 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 index 000000000..a84ffc9af 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 index 000000000..a1f3812e0 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 index 000000000..0ad23c93b 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 index 000000000..7982dafeb 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 index 000000000..ed8413846 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 index 000000000..a74581238 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 index 000000000..698ac918f 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 index 000000000..b34de6f32 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 index 000000000..ba5243101 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 index 000000000..8f8191f92 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 index 000000000..3daa4af72 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 index 000000000..ea728cca3 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 index 000000000..649ab4c38 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 index 000000000..d6c6be325 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 index 000000000..7a953c222 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 index 000000000..6965d380e 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 index 000000000..76d1dd5ac 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 index 000000000..65abfc243 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 index 000000000..2cdd94f80 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 index 000000000..77ea4d6d4 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 index 000000000..a27cb8ca9 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 index 000000000..4d6a98d56 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 index 000000000..e5f8cdc25 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 index 000000000..57c1d7c12 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 index b677cefd0..000000000 --- a/data/scripts/default.lua +++ /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 "" - elseif type(o) == "userdata" then - return "" - 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 "" - 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 "" - elseif type(o) == "userdata" then - return "" - 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 index 9593f28f6..000000000 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 index 2dffdf014..000000000 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 index 176fb6aa9..000000000 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 index 5ecc50ff3..000000000 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 index 32d77f347..000000000 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 index fc479fde6..000000000 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 index f9e68df51..000000000 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 index c5628af94..000000000 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 index ae038fae5..000000000 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 index 916dd784d..000000000 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 index 58c79674d..000000000 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 index 3557429d8..000000000 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 index e36648e48..000000000 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 index 24091a377..000000000 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 index 7d0447419..000000000 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 index daad3be0d..000000000 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 index 499783982..000000000 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 index 3457c8228..000000000 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 index 0b99f0eb5..000000000 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 index 523142850..000000000 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 index 40df7fa1c..000000000 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 index c63fa02b7..000000000 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 index 1620a27c3..000000000 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 index 63cb162fe..000000000 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 index 8598ce670..000000000 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 index 3610bb2bc..000000000 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 index 57e063d8c..000000000 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 index 4f4f680be..000000000 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 index f08666ad9..000000000 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 index 6bc183e04..000000000 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 index eea87c07c..000000000 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 index ccd20ac74..000000000 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 index 2a9b51373..000000000 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 index 11056359d..000000000 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 index cb02ada13..000000000 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 index 7a25126e9..000000000 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 index be0bab9d7..000000000 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 index bad901efa..000000000 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 index edb931018..000000000 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 index 76595c48d..000000000 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 index 4c876cdc5..000000000 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 index 3ff9692fb..000000000 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 index 51b15d95d..000000000 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 index fad1b33ff..000000000 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 index 7cb9c89a6..000000000 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 index f09f41658..000000000 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 index cad9edab1..000000000 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 index 7ebc9930d..000000000 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 index f954045fb..000000000 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 index 33cbac9e7..000000000 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 index 9b777387c..000000000 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 index ae5c06bc6..000000000 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 index bf0dec7fe..000000000 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 index 90adf9747..000000000 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 index 530aa7519..000000000 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 index 18176d9f3..000000000 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 index 984640577..000000000 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 index 62afa3d2b..000000000 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 index 9985f63cd..000000000 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 index d1a0e2ae2..000000000 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 index 15101a7eb..000000000 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 index c4759b4d0..000000000 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 index 73f502306..000000000 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 index 9ced2fbe8..000000000 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 index 2e0b3cbef..000000000 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 index 779e4bc2c..000000000 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 index 06eac1ee9..000000000 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 index 9801d5f4f..000000000 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 index 9711c4781..000000000 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 index 32e43a63e..000000000 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 index a8c94b4d2..000000000 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 index a761dff2d..000000000 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 index beb07a9cf..000000000 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 index 2776ec712..000000000 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 index 22c8cbef5..000000000 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 index bb509789b..000000000 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 index 8e2020081..000000000 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 index f6c9414e7..000000000 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 index 2d31797f0..000000000 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 index cad0dbe2b..000000000 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 index 8ba2fca0b..000000000 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 index d9a2bc4eb..000000000 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 index a84ffc9af..000000000 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 index a1f3812e0..000000000 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 index 0ad23c93b..000000000 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 index 7982dafeb..000000000 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 index ed8413846..000000000 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 index a74581238..000000000 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 index 698ac918f..000000000 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 index b34de6f32..000000000 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 index ba5243101..000000000 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 index 8f8191f92..000000000 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 index 3daa4af72..000000000 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 index ea728cca3..000000000 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 index 649ab4c38..000000000 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 index d6c6be325..000000000 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 index 7a953c222..000000000 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 index 6965d380e..000000000 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 index 76d1dd5ac..000000000 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 index 65abfc243..000000000 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 index 2cdd94f80..000000000 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 index 77ea4d6d4..000000000 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 index a27cb8ca9..000000000 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 index 4d6a98d56..000000000 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 index e5f8cdc25..000000000 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 index 57c1d7c12..000000000 Binary files a/data/textures/wood.png and /dev/null differ diff --git a/src/game.cpp b/src/game.cpp index 6c75863c0..fc87deb29 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -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 modspaths; + modspaths.push_back(porting::path_data + DIR_DELIM + "mods"); + for(core::list::Iterator i = modspaths.begin(); + i != modspaths.end(); i++){ + std::string modspath = *i; + std::vector dirlist = fs::GetDirListing(modspath); + for(u32 j=0; j