diff --git a/game.conf b/game.conf new file mode 100644 index 0000000..a8df02d --- /dev/null +++ b/game.conf @@ -0,0 +1,2 @@ +name = Noname Game + diff --git a/menu/background-ld.png b/menu/background-ld.png new file mode 100644 index 0000000..bce0cac Binary files /dev/null and b/menu/background-ld.png differ diff --git a/menu/icon-ld.png b/menu/icon-ld.png new file mode 100644 index 0000000..9756679 Binary files /dev/null and b/menu/icon-ld.png differ diff --git a/menu/icon.PNG b/menu/icon.PNG new file mode 100644 index 0000000..20b5310 Binary files /dev/null and b/menu/icon.PNG differ diff --git a/mods/default/commands.lua b/mods/default/commands.lua new file mode 100644 index 0000000..d5dbe13 --- /dev/null +++ b/mods/default/commands.lua @@ -0,0 +1,14 @@ +-- HP: Die HP des Spielers festlegen +--minetest.register_chatcommand("hp", { +-- func = function(name, hp) +-- local player = minetest.get_player_by_name(name) +-- if player then +-- if hp == "" then +-- minetest.chat_send_player(name, "Bitte gebe einen Parameter an.") +-- end +-- if name then +-- player:set_hp(tonumber(hp)) +-- end +-- end +-- end +--}) diff --git a/mods/default/init.lua b/mods/default/init.lua new file mode 100644 index 0000000..b38bab5 --- /dev/null +++ b/mods/default/init.lua @@ -0,0 +1,6 @@ +local default_path = minetest.get_modpath("default") + +dofile(default_path.."/commands.lua") +dofile(default_path.."/nodes.lua") +dofile(default_path.."/items.lua") +dofile(default_path.."/void.lua") diff --git a/mods/default/items.lua b/mods/default/items.lua new file mode 100644 index 0000000..4ee972b --- /dev/null +++ b/mods/default/items.lua @@ -0,0 +1,6 @@ +-- Stock +--minetest.register_craftitem("default:stick", { +-- description = "Stock", +-- inventory_image = "default_stick.png", +-- on_use = minetest.item_eat(20) +--}) \ No newline at end of file diff --git a/mods/default/mod.conf b/mods/default/mod.conf new file mode 100644 index 0000000..6a53c38 --- /dev/null +++ b/mods/default/mod.conf @@ -0,0 +1,2 @@ +name = default +description = Minimal default, adds basic nodes, items, Entities and Commands diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua new file mode 100644 index 0000000..254745a --- /dev/null +++ b/mods/default/nodes.lua @@ -0,0 +1,69 @@ +-- Stein +minetest.register_node("default:stone", { + description = "Stein", + tiles = {"default_stone.png"}, + is_ground_content = true, + drop = "", + groups = {dig_immediate=3} +}) + +-- Holz +minetest.register_node("default:wood", { + description = "Holzbretter", + paramtype2 = "facedir", + place_param2 = 0, + tiles = {"default_wood.png"}, + drop = "", + groups = {dig_immediate=3} +}) + +-- Erde +minetest.register_node("default:dirt", { + description = "Simple Erde", + tiles = {"default_dirt.png"}, + drop = "", + groups = {dig_immediate=3} +}) + +-- Erde mit Gras +minetest.register_node("default:dirt_with_grass", { + description = "Erde mit Gras", + tiles = {"default_grass.png", "default_dirt.png", {name = "default_dirt.png^default_grass_side.png", tileable_vertical = false}}, + drop = "", + groups = {dig_immediate=3} +}) + +-- kaputte Truhe +minetest.register_node("default:nonworking_chest", { + description = "kaputte Truhe", + drop = "", + groups = {dig_immediate=3}, + tiles = { + "default_wood.png", + "default_wood.png", + "default_wood.png", + "default_wood.png", + "default_wood.png", + "default_wood.png" + }, + drawtype = "nodebox", + paramtype = "light", + node_box = { + type = "fixed", + fixed = { + {-0.4375, -0.5, -0.4375, 0.4375, 0.125, 0.4375}, -- Unterseite + {-0.4375, 0.125, -0.4375, 0.4375, 0.4375, 0.4375}, -- Oberseite + {0.4375, 0, -0.0625, 0.5, 0.3125, 0.125}, -- Griff + } + }, +}) + +-- Meseblock +minetest.register_node("default:meseblock", { + description = 'Wertvolles Stück "Gold"', + tiles = {"default_mese.png"}, + light_source = 6, + is_ground_content = false, + drop = "", + groups = {dig_immediate=3} +}) \ No newline at end of file diff --git a/mods/default/textures/bubble.png b/mods/default/textures/bubble.png new file mode 100644 index 0000000..3bca7e1 Binary files /dev/null and b/mods/default/textures/bubble.png differ diff --git a/mods/default/textures/crack_anylength.png b/mods/default/textures/crack_anylength.png new file mode 100644 index 0000000..d9b49f9 Binary files /dev/null and b/mods/default/textures/crack_anylength.png differ diff --git a/mods/default/textures/default_apple.png b/mods/default/textures/default_apple.png new file mode 100644 index 0000000..4473dca Binary files /dev/null and b/mods/default/textures/default_apple.png differ diff --git a/mods/default/textures/default_book.png b/mods/default/textures/default_book.png new file mode 100644 index 0000000..ea14a37 Binary files /dev/null and b/mods/default/textures/default_book.png differ diff --git a/mods/default/textures/default_bookshelf.png b/mods/default/textures/default_bookshelf.png new file mode 100644 index 0000000..f225e34 Binary files /dev/null and b/mods/default/textures/default_bookshelf.png differ diff --git a/mods/default/textures/default_brick.png b/mods/default/textures/default_brick.png new file mode 100644 index 0000000..def1cf0 Binary files /dev/null and b/mods/default/textures/default_brick.png differ diff --git a/mods/default/textures/default_cactus_side.png b/mods/default/textures/default_cactus_side.png new file mode 100644 index 0000000..128a4d2 Binary files /dev/null and b/mods/default/textures/default_cactus_side.png differ diff --git a/mods/default/textures/default_cactus_top.png b/mods/default/textures/default_cactus_top.png new file mode 100644 index 0000000..eda1a0b Binary files /dev/null and b/mods/default/textures/default_cactus_top.png differ diff --git a/mods/default/textures/default_chest.png b/mods/default/textures/default_chest.png new file mode 100644 index 0000000..9746a3f Binary files /dev/null and b/mods/default/textures/default_chest.png differ diff --git a/mods/default/textures/default_clay.png b/mods/default/textures/default_clay.png new file mode 100644 index 0000000..070b69e Binary files /dev/null and b/mods/default/textures/default_clay.png differ diff --git a/mods/default/textures/default_clay_brick.png b/mods/default/textures/default_clay_brick.png new file mode 100644 index 0000000..e25633b Binary files /dev/null and b/mods/default/textures/default_clay_brick.png differ diff --git a/mods/default/textures/default_clay_lump.png b/mods/default/textures/default_clay_lump.png new file mode 100644 index 0000000..ceed6fa Binary files /dev/null and b/mods/default/textures/default_clay_lump.png differ diff --git a/mods/default/textures/default_cloud.png b/mods/default/textures/default_cloud.png new file mode 100644 index 0000000..faf0ec1 Binary files /dev/null and b/mods/default/textures/default_cloud.png differ diff --git a/mods/default/textures/default_coal_lump.png b/mods/default/textures/default_coal_lump.png new file mode 100644 index 0000000..dae47e3 Binary files /dev/null and b/mods/default/textures/default_coal_lump.png differ diff --git a/mods/default/textures/default_cobble.png b/mods/default/textures/default_cobble.png new file mode 100644 index 0000000..2a28d25 Binary files /dev/null and b/mods/default/textures/default_cobble.png differ diff --git a/mods/default/textures/default_dirt.png b/mods/default/textures/default_dirt.png new file mode 100644 index 0000000..7cb9c89 Binary files /dev/null and b/mods/default/textures/default_dirt.png differ diff --git a/mods/default/textures/default_fence.png b/mods/default/textures/default_fence.png new file mode 100644 index 0000000..e3510c5 Binary files /dev/null and b/mods/default/textures/default_fence.png differ diff --git a/mods/default/textures/default_furnace_fire_bg.png b/mods/default/textures/default_furnace_fire_bg.png new file mode 100644 index 0000000..e3370f4 Binary files /dev/null and b/mods/default/textures/default_furnace_fire_bg.png differ diff --git a/mods/default/textures/default_furnace_fire_fg.png b/mods/default/textures/default_furnace_fire_fg.png new file mode 100644 index 0000000..7a126e3 Binary files /dev/null and b/mods/default/textures/default_furnace_fire_fg.png differ diff --git a/mods/default/textures/default_furnace_front.png b/mods/default/textures/default_furnace_front.png new file mode 100644 index 0000000..4da398c Binary files /dev/null and b/mods/default/textures/default_furnace_front.png differ diff --git a/mods/default/textures/default_furnace_front_active.png b/mods/default/textures/default_furnace_front_active.png new file mode 100644 index 0000000..06c4ab3 Binary files /dev/null and b/mods/default/textures/default_furnace_front_active.png differ diff --git a/mods/default/textures/default_furnace_side.png b/mods/default/textures/default_furnace_side.png new file mode 100644 index 0000000..c729de9 Binary files /dev/null and b/mods/default/textures/default_furnace_side.png differ diff --git a/mods/default/textures/default_glass.png b/mods/default/textures/default_glass.png new file mode 100644 index 0000000..fd665a4 Binary files /dev/null and b/mods/default/textures/default_glass.png differ diff --git a/mods/default/textures/default_grass.png b/mods/default/textures/default_grass.png new file mode 100644 index 0000000..1d76708 Binary files /dev/null and b/mods/default/textures/default_grass.png differ diff --git a/mods/default/textures/default_grass_footsteps.png b/mods/default/textures/default_grass_footsteps.png new file mode 100644 index 0000000..8349033 Binary files /dev/null and b/mods/default/textures/default_grass_footsteps.png differ diff --git a/mods/default/textures/default_grass_side.png b/mods/default/textures/default_grass_side.png new file mode 100644 index 0000000..4f4f680 Binary files /dev/null and b/mods/default/textures/default_grass_side.png differ diff --git a/mods/default/textures/default_gravel.png b/mods/default/textures/default_gravel.png new file mode 100644 index 0000000..4b47e23 Binary files /dev/null and b/mods/default/textures/default_gravel.png differ diff --git a/mods/default/textures/default_iron_lump.png b/mods/default/textures/default_iron_lump.png new file mode 100644 index 0000000..6b515f6 Binary files /dev/null and b/mods/default/textures/default_iron_lump.png differ diff --git a/mods/default/textures/default_junglegrass.png b/mods/default/textures/default_junglegrass.png new file mode 100644 index 0000000..7066f7d Binary files /dev/null and b/mods/default/textures/default_junglegrass.png differ diff --git a/mods/default/textures/default_ladder.png b/mods/default/textures/default_ladder.png new file mode 100644 index 0000000..46757b8 Binary files /dev/null and b/mods/default/textures/default_ladder.png differ diff --git a/mods/default/textures/default_lava.png b/mods/default/textures/default_lava.png new file mode 100644 index 0000000..a4cf649 Binary files /dev/null and b/mods/default/textures/default_lava.png differ diff --git a/mods/default/textures/default_lava_flowing_animated.png b/mods/default/textures/default_lava_flowing_animated.png new file mode 100644 index 0000000..0bbd136 Binary files /dev/null and b/mods/default/textures/default_lava_flowing_animated.png differ diff --git a/mods/default/textures/default_lava_source_animated.png b/mods/default/textures/default_lava_source_animated.png new file mode 100644 index 0000000..54f4c0d Binary files /dev/null and b/mods/default/textures/default_lava_source_animated.png differ diff --git a/mods/default/textures/default_leaves.png b/mods/default/textures/default_leaves.png new file mode 100644 index 0000000..00ce447 Binary files /dev/null and b/mods/default/textures/default_leaves.png differ diff --git a/mods/default/textures/default_mese.png b/mods/default/textures/default_mese.png new file mode 100644 index 0000000..123f0f4 Binary files /dev/null and b/mods/default/textures/default_mese.png differ diff --git a/mods/default/textures/default_mineral_coal.png b/mods/default/textures/default_mineral_coal.png new file mode 100644 index 0000000..0f52062 Binary files /dev/null and b/mods/default/textures/default_mineral_coal.png differ diff --git a/mods/default/textures/default_mineral_iron.png b/mods/default/textures/default_mineral_iron.png new file mode 100644 index 0000000..6c894ce Binary files /dev/null and b/mods/default/textures/default_mineral_iron.png differ diff --git a/mods/default/textures/default_mossycobble.png b/mods/default/textures/default_mossycobble.png new file mode 100644 index 0000000..5082953 Binary files /dev/null and b/mods/default/textures/default_mossycobble.png differ diff --git a/mods/default/textures/default_nc_back.png b/mods/default/textures/default_nc_back.png new file mode 100644 index 0000000..e479ace Binary files /dev/null and b/mods/default/textures/default_nc_back.png differ diff --git a/mods/default/textures/default_nc_front.png b/mods/default/textures/default_nc_front.png new file mode 100644 index 0000000..c9dd6a3 Binary files /dev/null and b/mods/default/textures/default_nc_front.png differ diff --git a/mods/default/textures/default_nc_rb.png b/mods/default/textures/default_nc_rb.png new file mode 100644 index 0000000..685a22c Binary files /dev/null and b/mods/default/textures/default_nc_rb.png differ diff --git a/mods/default/textures/default_nc_side.png b/mods/default/textures/default_nc_side.png new file mode 100644 index 0000000..bc85427 Binary files /dev/null and b/mods/default/textures/default_nc_side.png differ diff --git a/mods/default/textures/default_paper.png b/mods/default/textures/default_paper.png new file mode 100644 index 0000000..3c31f77 Binary files /dev/null and b/mods/default/textures/default_paper.png differ diff --git a/mods/default/textures/default_papyrus.png b/mods/default/textures/default_papyrus.png new file mode 100644 index 0000000..3707e40 Binary files /dev/null and b/mods/default/textures/default_papyrus.png differ diff --git a/mods/default/textures/default_rail.png b/mods/default/textures/default_rail.png new file mode 100644 index 0000000..777e10c Binary files /dev/null and b/mods/default/textures/default_rail.png differ diff --git a/mods/default/textures/default_rail_crossing.png b/mods/default/textures/default_rail_crossing.png new file mode 100644 index 0000000..a988c47 Binary files /dev/null and b/mods/default/textures/default_rail_crossing.png differ diff --git a/mods/default/textures/default_rail_curved.png b/mods/default/textures/default_rail_curved.png new file mode 100644 index 0000000..f87e826 Binary files /dev/null and b/mods/default/textures/default_rail_curved.png differ diff --git a/mods/default/textures/default_rail_t_junction.png b/mods/default/textures/default_rail_t_junction.png new file mode 100644 index 0000000..fd25b5b Binary files /dev/null and b/mods/default/textures/default_rail_t_junction.png differ diff --git a/mods/default/textures/default_river_water.png b/mods/default/textures/default_river_water.png new file mode 100644 index 0000000..3b55c5f Binary files /dev/null and b/mods/default/textures/default_river_water.png differ diff --git a/mods/default/textures/default_sand.png b/mods/default/textures/default_sand.png new file mode 100644 index 0000000..1a56cc7 Binary files /dev/null and b/mods/default/textures/default_sand.png differ diff --git a/mods/default/textures/default_sandstone.png b/mods/default/textures/default_sandstone.png new file mode 100644 index 0000000..bd9cb86 Binary files /dev/null and b/mods/default/textures/default_sandstone.png differ diff --git a/mods/default/textures/default_sapling.png b/mods/default/textures/default_sapling.png new file mode 100644 index 0000000..9360232 Binary files /dev/null and b/mods/default/textures/default_sapling.png differ diff --git a/mods/default/textures/default_scorched_stuff.png b/mods/default/textures/default_scorched_stuff.png new file mode 100644 index 0000000..c7efc7e Binary files /dev/null and b/mods/default/textures/default_scorched_stuff.png differ diff --git a/mods/default/textures/default_sign_wall.png b/mods/default/textures/default_sign_wall.png new file mode 100644 index 0000000..93c075a Binary files /dev/null and b/mods/default/textures/default_sign_wall.png differ diff --git a/mods/default/textures/default_steel_block.png b/mods/default/textures/default_steel_block.png new file mode 100644 index 0000000..9c0a0e2 Binary files /dev/null and b/mods/default/textures/default_steel_block.png differ diff --git a/mods/default/textures/default_steel_ingot.png b/mods/default/textures/default_steel_ingot.png new file mode 100644 index 0000000..ad133bc Binary files /dev/null and b/mods/default/textures/default_steel_ingot.png differ diff --git a/mods/default/textures/default_stick.png b/mods/default/textures/default_stick.png new file mode 100644 index 0000000..055a6ac Binary files /dev/null and b/mods/default/textures/default_stick.png differ diff --git a/mods/default/textures/default_stone.png b/mods/default/textures/default_stone.png new file mode 100644 index 0000000..a835fe0 Binary files /dev/null and b/mods/default/textures/default_stone.png differ diff --git a/mods/default/textures/default_tnt_bottom.png b/mods/default/textures/default_tnt_bottom.png new file mode 100644 index 0000000..4eda060 Binary files /dev/null and b/mods/default/textures/default_tnt_bottom.png differ diff --git a/mods/default/textures/default_tnt_side.png b/mods/default/textures/default_tnt_side.png new file mode 100644 index 0000000..c259726 Binary files /dev/null and b/mods/default/textures/default_tnt_side.png differ diff --git a/mods/default/textures/default_tnt_top.png b/mods/default/textures/default_tnt_top.png new file mode 100644 index 0000000..a031a34 Binary files /dev/null and b/mods/default/textures/default_tnt_top.png differ diff --git a/mods/default/textures/default_tool_mesepick.png b/mods/default/textures/default_tool_mesepick.png new file mode 100644 index 0000000..2b5e12c Binary files /dev/null and b/mods/default/textures/default_tool_mesepick.png differ diff --git a/mods/default/textures/default_tool_steelaxe.png b/mods/default/textures/default_tool_steelaxe.png new file mode 100644 index 0000000..fae19dd Binary files /dev/null and b/mods/default/textures/default_tool_steelaxe.png differ diff --git a/mods/default/textures/default_tool_steelpick.png b/mods/default/textures/default_tool_steelpick.png new file mode 100644 index 0000000..3a8f586 Binary files /dev/null and b/mods/default/textures/default_tool_steelpick.png differ diff --git a/mods/default/textures/default_tool_steelshovel.png b/mods/default/textures/default_tool_steelshovel.png new file mode 100644 index 0000000..d5b1bc6 Binary files /dev/null and b/mods/default/textures/default_tool_steelshovel.png differ diff --git a/mods/default/textures/default_tool_steelsword.png b/mods/default/textures/default_tool_steelsword.png new file mode 100644 index 0000000..efc61a0 Binary files /dev/null and b/mods/default/textures/default_tool_steelsword.png differ diff --git a/mods/default/textures/default_tool_stoneaxe.png b/mods/default/textures/default_tool_stoneaxe.png new file mode 100644 index 0000000..532e16f Binary files /dev/null and b/mods/default/textures/default_tool_stoneaxe.png differ diff --git a/mods/default/textures/default_tool_stonepick.png b/mods/default/textures/default_tool_stonepick.png new file mode 100644 index 0000000..d9156ee Binary files /dev/null and b/mods/default/textures/default_tool_stonepick.png differ diff --git a/mods/default/textures/default_tool_stoneshovel.png b/mods/default/textures/default_tool_stoneshovel.png new file mode 100644 index 0000000..7bbd2d4 Binary files /dev/null and b/mods/default/textures/default_tool_stoneshovel.png differ diff --git a/mods/default/textures/default_tool_stonesword.png b/mods/default/textures/default_tool_stonesword.png new file mode 100644 index 0000000..533b873 Binary files /dev/null and b/mods/default/textures/default_tool_stonesword.png differ diff --git a/mods/default/textures/default_tool_woodaxe.png b/mods/default/textures/default_tool_woodaxe.png new file mode 100644 index 0000000..6e70f4a Binary files /dev/null and b/mods/default/textures/default_tool_woodaxe.png differ diff --git a/mods/default/textures/default_tool_woodpick.png b/mods/default/textures/default_tool_woodpick.png new file mode 100644 index 0000000..15c61f4 Binary files /dev/null and b/mods/default/textures/default_tool_woodpick.png differ diff --git a/mods/default/textures/default_tool_woodshovel.png b/mods/default/textures/default_tool_woodshovel.png new file mode 100644 index 0000000..e0b3608 Binary files /dev/null and b/mods/default/textures/default_tool_woodshovel.png differ diff --git a/mods/default/textures/default_tool_woodsword.png b/mods/default/textures/default_tool_woodsword.png new file mode 100644 index 0000000..8099af1 Binary files /dev/null and b/mods/default/textures/default_tool_woodsword.png differ diff --git a/mods/default/textures/default_torch.png b/mods/default/textures/default_torch.png new file mode 100644 index 0000000..21d98bd Binary files /dev/null and b/mods/default/textures/default_torch.png differ diff --git a/mods/default/textures/default_torch_on_ceiling.png b/mods/default/textures/default_torch_on_ceiling.png new file mode 100644 index 0000000..dccd380 Binary files /dev/null and b/mods/default/textures/default_torch_on_ceiling.png differ diff --git a/mods/default/textures/default_torch_on_floor.png b/mods/default/textures/default_torch_on_floor.png new file mode 100644 index 0000000..c220107 Binary files /dev/null and b/mods/default/textures/default_torch_on_floor.png differ diff --git a/mods/default/textures/default_tree.png b/mods/default/textures/default_tree.png new file mode 100644 index 0000000..65abfc2 Binary files /dev/null and b/mods/default/textures/default_tree.png differ diff --git a/mods/default/textures/default_tree_top.png b/mods/default/textures/default_tree_top.png new file mode 100644 index 0000000..3e6bd52 Binary files /dev/null and b/mods/default/textures/default_tree_top.png differ diff --git a/mods/default/textures/default_water.png b/mods/default/textures/default_water.png new file mode 100644 index 0000000..3e385ae Binary files /dev/null and b/mods/default/textures/default_water.png differ diff --git a/mods/default/textures/default_wood.png b/mods/default/textures/default_wood.png new file mode 100644 index 0000000..57c1d7c Binary files /dev/null and b/mods/default/textures/default_wood.png differ diff --git a/mods/default/textures/heart.png b/mods/default/textures/heart.png new file mode 100644 index 0000000..c25f43b Binary files /dev/null and b/mods/default/textures/heart.png differ diff --git a/mods/default/textures/player.png b/mods/default/textures/player.png new file mode 100644 index 0000000..cf5d83f Binary files /dev/null and b/mods/default/textures/player.png differ diff --git a/mods/default/textures/player_back.png b/mods/default/textures/player_back.png new file mode 100644 index 0000000..d498674 Binary files /dev/null and b/mods/default/textures/player_back.png differ diff --git a/mods/default/textures/treeprop.png b/mods/default/textures/treeprop.png new file mode 100644 index 0000000..eb8a8e6 Binary files /dev/null and b/mods/default/textures/treeprop.png differ diff --git a/mods/default/textures/wieldhand.png b/mods/default/textures/wieldhand.png new file mode 100644 index 0000000..dbed6ad Binary files /dev/null and b/mods/default/textures/wieldhand.png differ diff --git a/mods/default/void.lua b/mods/default/void.lua new file mode 100644 index 0000000..a8a1fd6 --- /dev/null +++ b/mods/default/void.lua @@ -0,0 +1,24 @@ +local voidtimer = 0 + +minetest.register_globalstep(function(dtime) + voidtimer = voidtimer + dtime + if voidtimer > 0.5 then + voidtimer = 0 + local objs = minetest.object_refs + for id, obj in pairs(objs) do + local pos = obj:get_pos() + if pos.y < -10 then + minetest.set_node({ x = 1, y = 0, z = 0 }, { name = "default:stone" }) + minetest.set_node({ x = -1, y = 0, z = 0 }, { name = "default:stone" }) + minetest.set_node({ x = 1, y = 0, z = 1 }, { name = "default:stone" }) + minetest.set_node({ x = -1, y = 0, z = 1 }, { name = "default:stone" }) + minetest.set_node({ x = 1, y = 0, z = -1 }, { name = "default:stone" }) + minetest.set_node({ x = -1, y = 0, z = -1 }, { name = "default:stone" }) + minetest.set_node({ x = 0, y = 0, z = 1 }, { name = "default:stone" }) + minetest.set_node({ x = 0, y = 0, z = -1 }, { name = "default:stone" }) + minetest.set_node({ x = 0, y = 0, z = 0 }, { name = "default:meseblock" }) + obj:set_pos({ x = 0, y = 5, z = 0 }) + end + end + end +end) diff --git a/mods/do_initial_stuff/init.lua b/mods/do_initial_stuff/init.lua new file mode 100644 index 0000000..6dec280 --- /dev/null +++ b/mods/do_initial_stuff/init.lua @@ -0,0 +1,27 @@ +function minetest.item_drop(itemstack, dropper, pos) + return itemstack +end + + +minetest.register_on_placenode(function(pos, newnode, placer, oldnode, itemstack) + return true +end) + + +minetest.register_on_newplayer(function(player) + player:setpos({ x = 0, y = 5, z = 0 }) +-- player:get_inventory():add_item('main', 'default:stick') + player:get_inventory():add_item('main', 'default:stone') + player:get_inventory():add_item('main', 'default:meseblock') + player:get_inventory():add_item('main', 'default:wood') + player:get_inventory():add_item('main', 'default:dirt') + player:get_inventory():add_item('main', 'default:dirt_with_grass') +-- player:get_inventory():add_item('main', 'default:chest') + minetest.chat_send_player("singleplayer", "Du hast Startitems bekommen!") + + local privs = minetest.get_player_privs(player:get_player_name()) + privs.interact = true + privs.fly = true + privs.fast = true + minetest.set_player_privs(player:get_player_name(), privs) +end) diff --git a/mods/do_initial_stuff/mod.conf b/mods/do_initial_stuff/mod.conf new file mode 100644 index 0000000..ea28988 --- /dev/null +++ b/mods/do_initial_stuff/mod.conf @@ -0,0 +1,3 @@ +name = do_initial_stuff +description = Runs commands on player registration +depends = default diff --git a/mods/do_initial_stuff/textures/splash.png b/mods/do_initial_stuff/textures/splash.png new file mode 100644 index 0000000..24aa4a3 Binary files /dev/null and b/mods/do_initial_stuff/textures/splash.png differ diff --git a/mods/do_initial_stuff/textures/splash.xcf b/mods/do_initial_stuff/textures/splash.xcf new file mode 100644 index 0000000..8803d20 Binary files /dev/null and b/mods/do_initial_stuff/textures/splash.xcf differ