master
Henry 2012-11-07 15:33:15 +01:00
commit 99480ada40
92 changed files with 196 additions and 0 deletions

2
mod/depends.txt Normal file
View File

@ -0,0 +1,2 @@
mesecons
default

44
mod/init.lua Normal file
View File

@ -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)

150
mod/nix.txt Normal file
View File

@ -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 = = <default>
--wall_bottom = = <default>
--wall_side = = <default>
},
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
})

BIN
mod/textures/crack.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 597 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 604 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 763 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 682 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 769 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 871 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 714 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 628 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 613 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 210 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 933 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 744 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 517 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 888 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 450 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 978 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 794 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 856 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 925 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 591 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 936 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 672 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 751 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 865 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 395 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 772 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 451 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 299 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 952 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 507 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 555 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 545 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 542 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 732 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 772 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 358 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 233 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 617 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 558 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 186 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 927 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 931 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 927 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 307 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 706 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 843 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 B

BIN
mod/textures/heart.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 308 B

BIN
mod/textures/mod_laser.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

BIN
mod/textures/mod_wood.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 387 B

BIN
mod/textures/player.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 B

BIN
mod/textures/treeprop.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
mod/textures/wieldhand.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 B