update jumping mod

master
Martin Doege 2015-04-11 11:33:29 +02:00
parent 2f0ee954fe
commit 12887abe5a
16 changed files with 13 additions and 54 deletions

View File

@ -176,7 +176,7 @@ minetest.register_on_joinplayer(function(player)
end)
minetest.register_node("crafting:workbench", {
description = "Workbench",
description = "Crafting table",
tiles = {"crafting_workbench_top.png", "default_wood.png", "crafting_workbench_side.png",
"crafting_workbench_side.png", "crafting_workbench_front.png", "crafting_workbench_front.png"},
paramtype2 = "facedir",

View File

@ -1,22 +1,3 @@
local trampolinebox = {
type = "fixed",
fixed = {
{-0.5, -0.2, -0.5, 0.5, 0, 0.5},
{-0.5, -0.5, -0.5, -0.4, -0.2, -0.4},
{ 0.4, -0.5, -0.5, 0.5, -0.2, -0.4},
{ 0.4, -0.5, 0.4, 0.5, -0.2, 0.5},
{-0.5, -0.5, 0.4, -0.4, -0.2, 0.5},
}
}
local cushionbox = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, -0.3, 0.5},
}
}
local trampoline_punch = function(pos, node)
local id = string.sub(node.name, #node.name)
id = id + 1
@ -26,49 +7,27 @@ end
for i = 1, 6 do
minetest.register_node("jumping:trampoline"..i, {
description = "Trampoline",
drawtype = "nodebox",
node_box = trampolinebox,
selection_box = trampolinebox,
description = "Slime block",
paramtype = "light",
on_punch = trampoline_punch,
tiles = {
"jumping_trampoline_top.png",
"jumping_trampoline_bottom.png",
"jumping_trampoline_sides.png^jumping_trampoline_sides_overlay"..i..".png"
"slime.png",
},
groups = {dig_immediate=2, bouncy=20+i*20, fall_damage_add_percent=-70},
drawtype = "liquid",
sunlight_propagates = true,
alpha = 190,
groups = {level=0, dig_immediate=3, oddly_breakable_by_hand=1, bouncy=20+i*20, fall_damage_add_percent=-100},
})
end
minetest.register_node("jumping:cushion", {
description = "Cushion",
drawtype = "nodebox",
node_box = cushionbox,
selection_box = cushionbox,
paramtype = "light",
tiles = {
"jumping_cushion_tb.png",
"jumping_cushion_tb.png",
"jumping_cushion_sides.png"
},
groups = {dig_immediate=2, disable_jump=1, fall_damage_add_percent=-100},
})
minetest.register_craft({
output = "jumping:trampoline1",
recipe = {
{"default:wood", "default:wood", "default:wood"},
{"default:leaves", "default:leaves", "default:leaves"},
{"default:stick", "default:stick", "default:stick"}
{"mesecons_materials:glue", "mesecons_materials:glue", "mesecons_materials:glue"},
{"mesecons_materials:glue", "mesecons_materials:glue", "mesecons_materials:glue"},
{"mesecons_materials:glue", "mesecons_materials:glue", "mesecons_materials:glue"},
}
})
minetest.register_craft({
output = "jumping:cushion",
recipe = {
{"default:leaves", "default:leaves", "default:leaves"},
{"default:leaves", "default:leaves", "default:leaves"},
{"default:stick", "default:stick", "default:stick"}
}
})

Binary file not shown.

Before

Width:  |  Height:  |  Size: 284 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 618 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 451 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 188 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 178 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 539 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 487 B

After

Width:  |  Height:  |  Size: 356 B

View File

@ -2,7 +2,7 @@ minetest.register_node("sponge:sponge_wet",{
description = "Wet Sponge",
tiles = {"sponge_wet.png"},
paramtype = "light",
groups = {crumbly=3, level=0, dig_immediate=1, oddly_breakable_by_hand=1}
groups = {crumbly=3, level=0, dig_immediate=3, oddly_breakable_by_hand=1}
})
minetest.register_node("sponge:sponge_dry",{