commit 99480ada4046979cd5a1b76010d87c0efd6f8b8c Author: Henry Date: Wed Nov 7 15:33:15 2012 +0100 Start diff --git a/mod/depends.txt b/mod/depends.txt new file mode 100644 index 0000000..bd5b847 --- /dev/null +++ b/mod/depends.txt @@ -0,0 +1,2 @@ +mesecons +default \ No newline at end of file diff --git a/mod/init.lua b/mod/init.lua new file mode 100644 index 0000000..a309b2e --- /dev/null +++ b/mod/init.lua @@ -0,0 +1,44 @@ +--Henrys Mod V.0.3(Laserschwert,Holz,HolzNichtBrennbar) +minetest.register_tool("mod:laserschwert", { + description = "Laserschwert", + inventory_image = "mod_laser.png", + paramtype=10, + light_source=10, + tool_capabilities = { + full_punch_interval = 1.0, + max_drop_level=3, + groupcaps={ + cracky={times={[1]=0.05, [2]=0.05, [3]=0.05}, uses=0, maxlevel=3}, + crumbly={times={[1]=0.05, [2]=0.05, [3]=0.05}, uses=0, maxlevel=3}, + snappy={times={[1]=0.05, [2]=0.05, [3]=0.05}, uses=0, maxlevel=3} + } + }, +}) +minetest.register_alias("stuff:laser","mod:Laserschwert") + +minetest.register_node("mod:holz",{ +description = "Bodenbelag aus Holz", +inventory_image="mod_wood.png", +wield_image = "mod_wood.png", +tile_images = {"mod_wood.png"}, +drawtype="signlike", +walkable=false, +is_ground_content = true, +groups = {snappy=1,choppy=2,oddly_breakable_by_hand=2},--,mesecon=2 +paramtype = "light", +paramtype2 = "wallmounted", +selection_box = { + type = "wallmounted", + } +} +) +--TEST For nuke mod +--mesecon:register_effector(nil, "mod:holz") + +--mesecon:register_on_signal_on(function(pos, node) +--if node.name == "mod:holz" then +--minetest.env:add_node(pos,{name="default:dirt"}) +--nodeupdate(pos) +--mesecon:get_rules("pressureplate") +--end +--end) \ No newline at end of file diff --git a/mod/nix.txt b/mod/nix.txt new file mode 100644 index 0000000..0e6995f --- /dev/null +++ b/mod/nix.txt @@ -0,0 +1,150 @@ +minetest.env:add_node(pos, {name="mod:stein"}) + + + +minetest.register_entity("mod:stein",{ +physical = false, + visual = "sprite", + textures = {"default_stone.png"}, + collisionbox = {-0.5,-0.5,-0.5, 0.5,0.5,0.5}, + visual = "cube", + + + + }) + + + + +minetest.register_node("mod:stein", { + description = "Stein", + tile_images = {"default_stone.png"}, + is_ground_content = true, + groups = {cracky=3}, + drop = 'default:cobble', + legacy_mineral = true, + sounds = default.node_sound_stone_defaults(), +on_punch=function() +stein="mod:stein" +pos={x=12,y=12,z=12} +valu=minetest.env.setpos(pos) +end, +}) + + + + + + + + + + + + + + + + + + + + + + + +minetest.register_node("mod:leiter", { + description = "leiter", + drawtype = "raillike", + tile_images = {"default_ladder.png"}, + inventory_image = "default_ladder.png", + wield_image = "default_ladder.png", + paramtype = "light", + paramtype2 = "wallmounted", + is_ground_content = true, + walkable = false, + climbable = true, + selection_box = { + type = "wallmounted", + --wall_top = = + --wall_bottom = = + --wall_side = = + }, + groups = {snappy=2,choppy=2,oddly_breakable_by_hand=3,flammable=2}, + legacy_wallmounted = true, + sounds = default.node_sound_wood_defaults(), +}) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +--self.object:setacceleration({x=0, y=-10, z=0}) + +minetest.register_entity("mod:rakete", +{ +physical = true, +walkable = true, +textures={"default_dirt.png"}, + + + +on_punch(self, puncher, time_from_last_punch, tool_capabilities, dir)=function(self,hitter){ +minetest.env:moveto(dir, continuous=false) + +return true +end + + + + collisionbox = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, -- TODO: make better collisionbox + visual = "cube", + climbable = true, + --drawtype = "signlike" +--visual = "cube", + --textures = {"vehicles_cart_top.png", "vehicles_cart_side.png", "vehicles_cart_side.png", "vehicles_cart_side.png", "vehicles_cart_side.png", "vehicles_cart_side.png"}, + attached_to = false, + time = 0.0, + vec = {x = 0, z = 0}, + health = 3, + moving = false, + stopnow = false + + + +}) + +minetest.register_craftitem("mod:rakete",{ +image="default_dirt.png", +on_drop = function(item, dropper, pos) + minetest.env:add_entity({x = round(pos.x), y = round(pos.y), z = round(pos.z)}, "mod:rakete") + return true + end +}) diff --git a/mod/textures/crack.png b/mod/textures/crack.png new file mode 100644 index 0000000..4997839 Binary files /dev/null and b/mod/textures/crack.png differ diff --git a/mod/textures/default_apple.png b/mod/textures/default_apple.png new file mode 100644 index 0000000..9593f28 Binary files /dev/null and b/mod/textures/default_apple.png differ diff --git a/mod/textures/default_book.png b/mod/textures/default_book.png new file mode 100644 index 0000000..176fb6a Binary files /dev/null and b/mod/textures/default_book.png differ diff --git a/mod/textures/default_bookshelf.png b/mod/textures/default_bookshelf.png new file mode 100644 index 0000000..5ecc50f Binary files /dev/null and b/mod/textures/default_bookshelf.png differ diff --git a/mod/textures/default_brick.png b/mod/textures/default_brick.png new file mode 100644 index 0000000..32d77f3 Binary files /dev/null and b/mod/textures/default_brick.png differ diff --git a/mod/textures/default_cactus_side.png b/mod/textures/default_cactus_side.png new file mode 100644 index 0000000..395dd0d Binary files /dev/null and b/mod/textures/default_cactus_side.png differ diff --git a/mod/textures/default_cactus_top.png b/mod/textures/default_cactus_top.png new file mode 100644 index 0000000..60a193c Binary files /dev/null and b/mod/textures/default_cactus_top.png differ diff --git a/mod/textures/default_chest_front.png b/mod/textures/default_chest_front.png new file mode 100644 index 0000000..47b7771 Binary files /dev/null and b/mod/textures/default_chest_front.png differ diff --git a/mod/textures/default_chest_lock.png b/mod/textures/default_chest_lock.png new file mode 100644 index 0000000..f5346f4 Binary files /dev/null and b/mod/textures/default_chest_lock.png differ diff --git a/mod/textures/default_chest_side.png b/mod/textures/default_chest_side.png new file mode 100644 index 0000000..5665168 Binary files /dev/null and b/mod/textures/default_chest_side.png differ diff --git a/mod/textures/default_chest_top.png b/mod/textures/default_chest_top.png new file mode 100644 index 0000000..b4e8a12 Binary files /dev/null and b/mod/textures/default_chest_top.png differ diff --git a/mod/textures/default_clay.png b/mod/textures/default_clay.png new file mode 100644 index 0000000..3557429 Binary files /dev/null and b/mod/textures/default_clay.png differ diff --git a/mod/textures/default_clay_brick.png b/mod/textures/default_clay_brick.png new file mode 100644 index 0000000..e36648e Binary files /dev/null and b/mod/textures/default_clay_brick.png differ diff --git a/mod/textures/default_clay_lump.png b/mod/textures/default_clay_lump.png new file mode 100644 index 0000000..be0bab9 Binary files /dev/null and b/mod/textures/default_clay_lump.png differ diff --git a/mod/textures/default_cloud.png b/mod/textures/default_cloud.png new file mode 100644 index 0000000..24091a3 Binary files /dev/null and b/mod/textures/default_cloud.png differ diff --git a/mod/textures/default_coal_lump.png b/mod/textures/default_coal_lump.png new file mode 100644 index 0000000..bad901e Binary files /dev/null and b/mod/textures/default_coal_lump.png differ diff --git a/mod/textures/default_cobble.png b/mod/textures/default_cobble.png new file mode 100644 index 0000000..bc79696 Binary files /dev/null and b/mod/textures/default_cobble.png differ diff --git a/mod/textures/default_desert_sand.png b/mod/textures/default_desert_sand.png new file mode 100644 index 0000000..9e36263 Binary files /dev/null and b/mod/textures/default_desert_sand.png differ diff --git a/mod/textures/default_desert_stone.png b/mod/textures/default_desert_stone.png new file mode 100644 index 0000000..a1afe6d Binary files /dev/null and b/mod/textures/default_desert_stone.png differ diff --git a/mod/textures/default_dirt.png b/mod/textures/default_dirt.png new file mode 100644 index 0000000..30cd4bf Binary files /dev/null and b/mod/textures/default_dirt.png differ diff --git a/mod/textures/default_dry_shrub.png b/mod/textures/default_dry_shrub.png new file mode 100644 index 0000000..450d5d9 Binary files /dev/null and b/mod/textures/default_dry_shrub.png differ diff --git a/mod/textures/default_fence.png b/mod/textures/default_fence.png new file mode 100644 index 0000000..0b99f0e Binary files /dev/null and b/mod/textures/default_fence.png differ diff --git a/mod/textures/default_furnace_front.png b/mod/textures/default_furnace_front.png new file mode 100644 index 0000000..1620a27 Binary files /dev/null and b/mod/textures/default_furnace_front.png differ diff --git a/mod/textures/default_furnace_side.png b/mod/textures/default_furnace_side.png new file mode 100644 index 0000000..63cb162 Binary files /dev/null and b/mod/textures/default_furnace_side.png differ diff --git a/mod/textures/default_glass.png b/mod/textures/default_glass.png new file mode 100644 index 0000000..ade0196 Binary files /dev/null and b/mod/textures/default_glass.png differ diff --git a/mod/textures/default_grass.png b/mod/textures/default_grass.png new file mode 100644 index 0000000..4e1f0f1 Binary files /dev/null and b/mod/textures/default_grass.png differ diff --git a/mod/textures/default_grass_footsteps.png b/mod/textures/default_grass_footsteps.png new file mode 100644 index 0000000..57e063d Binary files /dev/null and b/mod/textures/default_grass_footsteps.png differ diff --git a/mod/textures/default_grass_side.png b/mod/textures/default_grass_side.png new file mode 100644 index 0000000..6ca1a6f Binary files /dev/null and b/mod/textures/default_grass_side.png differ diff --git a/mod/textures/default_gravel.png b/mod/textures/default_gravel.png new file mode 100644 index 0000000..f08666a Binary files /dev/null and b/mod/textures/default_gravel.png differ diff --git a/mod/textures/default_iron_lump.png b/mod/textures/default_iron_lump.png new file mode 100644 index 0000000..edb9310 Binary files /dev/null and b/mod/textures/default_iron_lump.png differ diff --git a/mod/textures/default_junglegrass.png b/mod/textures/default_junglegrass.png new file mode 100644 index 0000000..eea87c0 Binary files /dev/null and b/mod/textures/default_junglegrass.png differ diff --git a/mod/textures/default_jungletree.png b/mod/textures/default_jungletree.png new file mode 100644 index 0000000..d8c2635 Binary files /dev/null and b/mod/textures/default_jungletree.png differ diff --git a/mod/textures/default_jungletree_top.png b/mod/textures/default_jungletree_top.png new file mode 100644 index 0000000..805272a Binary files /dev/null and b/mod/textures/default_jungletree_top.png differ diff --git a/mod/textures/default_ladder.png b/mod/textures/default_ladder.png new file mode 100644 index 0000000..1105635 Binary files /dev/null and b/mod/textures/default_ladder.png differ diff --git a/mod/textures/default_lava.png b/mod/textures/default_lava.png new file mode 100644 index 0000000..9cf9fa8 Binary files /dev/null and b/mod/textures/default_lava.png differ diff --git a/mod/textures/default_leaves.png b/mod/textures/default_leaves.png new file mode 100644 index 0000000..d0258ed Binary files /dev/null and b/mod/textures/default_leaves.png differ diff --git a/mod/textures/default_mese.png b/mod/textures/default_mese.png new file mode 100644 index 0000000..18d3bcf Binary files /dev/null and b/mod/textures/default_mese.png differ diff --git a/mod/textures/default_mineral_coal.png b/mod/textures/default_mineral_coal.png new file mode 100644 index 0000000..3ff9692 Binary files /dev/null and b/mod/textures/default_mineral_coal.png differ diff --git a/mod/textures/default_mineral_iron.png b/mod/textures/default_mineral_iron.png new file mode 100644 index 0000000..51b15d9 Binary files /dev/null and b/mod/textures/default_mineral_iron.png differ diff --git a/mod/textures/default_mossycobble.png b/mod/textures/default_mossycobble.png new file mode 100644 index 0000000..ca72717 Binary files /dev/null and b/mod/textures/default_mossycobble.png differ diff --git a/mod/textures/default_nc_back.png b/mod/textures/default_nc_back.png new file mode 100644 index 0000000..f09f416 Binary files /dev/null and b/mod/textures/default_nc_back.png differ diff --git a/mod/textures/default_nc_front.png b/mod/textures/default_nc_front.png new file mode 100644 index 0000000..cad9eda Binary files /dev/null and b/mod/textures/default_nc_front.png differ diff --git a/mod/textures/default_nc_rb.png b/mod/textures/default_nc_rb.png new file mode 100644 index 0000000..7ebc993 Binary files /dev/null and b/mod/textures/default_nc_rb.png differ diff --git a/mod/textures/default_nc_side.png b/mod/textures/default_nc_side.png new file mode 100644 index 0000000..f954045 Binary files /dev/null and b/mod/textures/default_nc_side.png differ diff --git a/mod/textures/default_paper.png b/mod/textures/default_paper.png new file mode 100644 index 0000000..ae5c06b Binary files /dev/null and b/mod/textures/default_paper.png differ diff --git a/mod/textures/default_papyrus.png b/mod/textures/default_papyrus.png new file mode 100644 index 0000000..bf0dec7 Binary files /dev/null and b/mod/textures/default_papyrus.png differ diff --git a/mod/textures/default_rail.png b/mod/textures/default_rail.png new file mode 100644 index 0000000..18176d9 Binary files /dev/null and b/mod/textures/default_rail.png differ diff --git a/mod/textures/default_rail_crossing.png b/mod/textures/default_rail_crossing.png new file mode 100644 index 0000000..9846405 Binary files /dev/null and b/mod/textures/default_rail_crossing.png differ diff --git a/mod/textures/default_rail_curved.png b/mod/textures/default_rail_curved.png new file mode 100644 index 0000000..62afa3d Binary files /dev/null and b/mod/textures/default_rail_curved.png differ diff --git a/mod/textures/default_rail_t_junction.png b/mod/textures/default_rail_t_junction.png new file mode 100644 index 0000000..9985f63 Binary files /dev/null and b/mod/textures/default_rail_t_junction.png differ diff --git a/mod/textures/default_sand.png b/mod/textures/default_sand.png new file mode 100644 index 0000000..2a48456 Binary files /dev/null and b/mod/textures/default_sand.png differ diff --git a/mod/textures/default_sandstone.png b/mod/textures/default_sandstone.png new file mode 100644 index 0000000..c4759b4 Binary files /dev/null and b/mod/textures/default_sandstone.png differ diff --git a/mod/textures/default_sapling.png b/mod/textures/default_sapling.png new file mode 100644 index 0000000..d03c3e4 Binary files /dev/null and b/mod/textures/default_sapling.png differ diff --git a/mod/textures/default_scorched_stuff.png b/mod/textures/default_scorched_stuff.png new file mode 100644 index 0000000..9ced2fb Binary files /dev/null and b/mod/textures/default_scorched_stuff.png differ diff --git a/mod/textures/default_sign_wall.png b/mod/textures/default_sign_wall.png new file mode 100644 index 0000000..d5c6dcd Binary files /dev/null and b/mod/textures/default_sign_wall.png differ diff --git a/mod/textures/default_steel_block.png b/mod/textures/default_steel_block.png new file mode 100644 index 0000000..8e20200 Binary files /dev/null and b/mod/textures/default_steel_block.png differ diff --git a/mod/textures/default_steel_ingot.png b/mod/textures/default_steel_ingot.png new file mode 100644 index 0000000..f6c9414 Binary files /dev/null and b/mod/textures/default_steel_ingot.png differ diff --git a/mod/textures/default_stick.png b/mod/textures/default_stick.png new file mode 100644 index 0000000..2d31797 Binary files /dev/null and b/mod/textures/default_stick.png differ diff --git a/mod/textures/default_stone.png b/mod/textures/default_stone.png new file mode 100644 index 0000000..17c3f56 Binary files /dev/null and b/mod/textures/default_stone.png differ diff --git a/mod/textures/default_tnt_bottom.png b/mod/textures/default_tnt_bottom.png new file mode 100644 index 0000000..8ba2fca Binary files /dev/null and b/mod/textures/default_tnt_bottom.png differ diff --git a/mod/textures/default_tnt_side.png b/mod/textures/default_tnt_side.png new file mode 100644 index 0000000..d9a2bc4 Binary files /dev/null and b/mod/textures/default_tnt_side.png differ diff --git a/mod/textures/default_tnt_top.png b/mod/textures/default_tnt_top.png new file mode 100644 index 0000000..a84ffc9 Binary files /dev/null and b/mod/textures/default_tnt_top.png differ diff --git a/mod/textures/default_tool_mesepick.png b/mod/textures/default_tool_mesepick.png new file mode 100644 index 0000000..4828f0f Binary files /dev/null and b/mod/textures/default_tool_mesepick.png differ diff --git a/mod/textures/default_tool_steelaxe.png b/mod/textures/default_tool_steelaxe.png new file mode 100644 index 0000000..0ad23c9 Binary files /dev/null and b/mod/textures/default_tool_steelaxe.png differ diff --git a/mod/textures/default_tool_steelpick.png b/mod/textures/default_tool_steelpick.png new file mode 100644 index 0000000..1d5a2d1 Binary files /dev/null and b/mod/textures/default_tool_steelpick.png differ diff --git a/mod/textures/default_tool_steelshovel.png b/mod/textures/default_tool_steelshovel.png new file mode 100644 index 0000000..ed84138 Binary files /dev/null and b/mod/textures/default_tool_steelshovel.png differ diff --git a/mod/textures/default_tool_steelsword.png b/mod/textures/default_tool_steelsword.png new file mode 100644 index 0000000..036b03f Binary files /dev/null and b/mod/textures/default_tool_steelsword.png differ diff --git a/mod/textures/default_tool_stoneaxe.png b/mod/textures/default_tool_stoneaxe.png new file mode 100644 index 0000000..698ac91 Binary files /dev/null and b/mod/textures/default_tool_stoneaxe.png differ diff --git a/mod/textures/default_tool_stonepick.png b/mod/textures/default_tool_stonepick.png new file mode 100644 index 0000000..71ff0b5 Binary files /dev/null and b/mod/textures/default_tool_stonepick.png differ diff --git a/mod/textures/default_tool_stoneshovel.png b/mod/textures/default_tool_stoneshovel.png new file mode 100644 index 0000000..ba52431 Binary files /dev/null and b/mod/textures/default_tool_stoneshovel.png differ diff --git a/mod/textures/default_tool_stonesword.png b/mod/textures/default_tool_stonesword.png new file mode 100644 index 0000000..8f8191f Binary files /dev/null and b/mod/textures/default_tool_stonesword.png differ diff --git a/mod/textures/default_tool_woodaxe.png b/mod/textures/default_tool_woodaxe.png new file mode 100644 index 0000000..3daa4af Binary files /dev/null and b/mod/textures/default_tool_woodaxe.png differ diff --git a/mod/textures/default_tool_woodpick.png b/mod/textures/default_tool_woodpick.png new file mode 100644 index 0000000..7346630 Binary files /dev/null and b/mod/textures/default_tool_woodpick.png differ diff --git a/mod/textures/default_tool_woodshovel.png b/mod/textures/default_tool_woodshovel.png new file mode 100644 index 0000000..649ab4c Binary files /dev/null and b/mod/textures/default_tool_woodshovel.png differ diff --git a/mod/textures/default_tool_woodsword.png b/mod/textures/default_tool_woodsword.png new file mode 100644 index 0000000..d6c6be3 Binary files /dev/null and b/mod/textures/default_tool_woodsword.png differ diff --git a/mod/textures/default_torch.png b/mod/textures/default_torch.png new file mode 100644 index 0000000..b9444af Binary files /dev/null and b/mod/textures/default_torch.png differ diff --git a/mod/textures/default_torch_on_ceiling.png b/mod/textures/default_torch_on_ceiling.png new file mode 100644 index 0000000..8deef96 Binary files /dev/null and b/mod/textures/default_torch_on_ceiling.png differ diff --git a/mod/textures/default_torch_on_floor.png b/mod/textures/default_torch_on_floor.png new file mode 100644 index 0000000..0b2195f Binary files /dev/null and b/mod/textures/default_torch_on_floor.png differ diff --git a/mod/textures/default_tree.png b/mod/textures/default_tree.png new file mode 100644 index 0000000..ab12501 Binary files /dev/null and b/mod/textures/default_tree.png differ diff --git a/mod/textures/default_tree_top.png b/mod/textures/default_tree_top.png new file mode 100644 index 0000000..6d62006 Binary files /dev/null and b/mod/textures/default_tree_top.png differ diff --git a/mod/textures/default_water.png b/mod/textures/default_water.png new file mode 100644 index 0000000..eb506f1 Binary files /dev/null and b/mod/textures/default_water.png differ diff --git a/mod/textures/default_wood.png b/mod/textures/default_wood.png new file mode 100644 index 0000000..66f2b72 Binary files /dev/null and b/mod/textures/default_wood.png differ diff --git a/mod/textures/heart.png b/mod/textures/heart.png new file mode 100644 index 0000000..6bc183e Binary files /dev/null and b/mod/textures/heart.png differ diff --git a/mod/textures/mod_laser.png b/mod/textures/mod_laser.png new file mode 100644 index 0000000..f31959c Binary files /dev/null and b/mod/textures/mod_laser.png differ diff --git a/mod/textures/mod_wood.png b/mod/textures/mod_wood.png new file mode 100644 index 0000000..66f2b72 Binary files /dev/null and b/mod/textures/mod_wood.png differ diff --git a/mod/textures/player.png b/mod/textures/player.png new file mode 100644 index 0000000..90adf97 Binary files /dev/null and b/mod/textures/player.png differ diff --git a/mod/textures/player_back.png b/mod/textures/player_back.png new file mode 100644 index 0000000..530aa75 Binary files /dev/null and b/mod/textures/player_back.png differ diff --git a/mod/textures/treeprop.png b/mod/textures/treeprop.png new file mode 100644 index 0000000..77ea4d6 Binary files /dev/null and b/mod/textures/treeprop.png differ diff --git a/mod/textures/wieldhand.png b/mod/textures/wieldhand.png new file mode 100644 index 0000000..c4549e5 Binary files /dev/null and b/mod/textures/wieldhand.png differ