Start
|
@ -0,0 +1,2 @@
|
|||
mesecons
|
||||
default
|
|
@ -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)
|
|
@ -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
|
||||
})
|
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 203 B |
After Width: | Height: | Size: 292 B |
After Width: | Height: | Size: 597 B |
After Width: | Height: | Size: 604 B |
After Width: | Height: | Size: 763 B |
After Width: | Height: | Size: 682 B |
After Width: | Height: | Size: 769 B |
After Width: | Height: | Size: 871 B |
After Width: | Height: | Size: 714 B |
After Width: | Height: | Size: 628 B |
After Width: | Height: | Size: 613 B |
After Width: | Height: | Size: 249 B |
After Width: | Height: | Size: 210 B |
After Width: | Height: | Size: 118 B |
After Width: | Height: | Size: 933 B |
After Width: | Height: | Size: 744 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 517 B |
After Width: | Height: | Size: 888 B |
After Width: | Height: | Size: 450 B |
After Width: | Height: | Size: 539 B |
After Width: | Height: | Size: 246 B |
After Width: | Height: | Size: 236 B |
After Width: | Height: | Size: 978 B |
After Width: | Height: | Size: 794 B |
After Width: | Height: | Size: 856 B |
After Width: | Height: | Size: 925 B |
After Width: | Height: | Size: 591 B |
After Width: | Height: | Size: 936 B |
After Width: | Height: | Size: 672 B |
After Width: | Height: | Size: 751 B |
After Width: | Height: | Size: 865 B |
After Width: | Height: | Size: 395 B |
After Width: | Height: | Size: 772 B |
After Width: | Height: | Size: 451 B |
After Width: | Height: | Size: 299 B |
After Width: | Height: | Size: 952 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 303 B |
After Width: | Height: | Size: 410 B |
After Width: | Height: | Size: 203 B |
After Width: | Height: | Size: 260 B |
After Width: | Height: | Size: 242 B |
After Width: | Height: | Size: 366 B |
After Width: | Height: | Size: 507 B |
After Width: | Height: | Size: 555 B |
After Width: | Height: | Size: 545 B |
After Width: | Height: | Size: 542 B |
After Width: | Height: | Size: 732 B |
After Width: | Height: | Size: 772 B |
After Width: | Height: | Size: 358 B |
After Width: | Height: | Size: 233 B |
After Width: | Height: | Size: 617 B |
After Width: | Height: | Size: 219 B |
After Width: | Height: | Size: 207 B |
After Width: | Height: | Size: 182 B |
After Width: | Height: | Size: 558 B |
After Width: | Height: | Size: 161 B |
After Width: | Height: | Size: 186 B |
After Width: | Height: | Size: 264 B |
After Width: | Height: | Size: 341 B |
After Width: | Height: | Size: 927 B |
After Width: | Height: | Size: 322 B |
After Width: | Height: | Size: 216 B |
After Width: | Height: | Size: 306 B |
After Width: | Height: | Size: 931 B |
After Width: | Height: | Size: 365 B |
After Width: | Height: | Size: 203 B |
After Width: | Height: | Size: 301 B |
After Width: | Height: | Size: 927 B |
After Width: | Height: | Size: 307 B |
After Width: | Height: | Size: 203 B |
After Width: | Height: | Size: 255 B |
After Width: | Height: | Size: 252 B |
After Width: | Height: | Size: 245 B |
After Width: | Height: | Size: 232 B |
After Width: | Height: | Size: 706 B |
After Width: | Height: | Size: 843 B |
After Width: | Height: | Size: 384 B |
After Width: | Height: | Size: 387 B |
After Width: | Height: | Size: 308 B |
After Width: | Height: | Size: 242 B |
After Width: | Height: | Size: 387 B |
After Width: | Height: | Size: 212 B |
After Width: | Height: | Size: 201 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 384 B |