Add "jumping" mod.

This commit is contained in:
AntumDeluge 2016-08-05 19:19:48 -07:00
parent ee4e7318d8
commit a291a5767f
14 changed files with 83 additions and 0 deletions

View File

@ -76,6 +76,7 @@ The following mods are also included:
* 3d_armor_stand ([3d_armor modpack][3d_armor])
* [character_creator][] ([WTFPL/CC-BY-SA](mods/player/character_creator/LICENSE.md))
* hazmat_suit ([3d_armor modpack][3d_armor])
* [jumping][] ([GPL](mods/player/jumping/README.md))
* [playeranim][] ([WFTLPL](mods/player/playeranim/LICENSE.txt) / [BSD](mods/player/playeranim/LICENSE-original.txt))
* shields ([3d_armor modpack][3d_armor])
* technic_armor ([3d_armor modpack][3d_armor])
@ -130,6 +131,7 @@ The following mods are also included:
[homedecor]: https://forum.minetest.net/viewtopic.php?t=2041
[intllib]: https://forum.minetest.net/viewtopic.php?t=4929
[inventory_plus]: https://forum.minetest.net/viewtopic.php?t=3100
[jumping]: https://forum.minetest.net/viewtopic.php?t=2957
[kpgmobs]: https://forum.minetest.net/viewtopic.php?t=8798
[lightning]: https://forum.minetest.net/viewtopic.php?t=13886
[mesecons]: https://forum.minetest.net/viewtopic.php?t=628

View File

@ -0,0 +1,7 @@
Jumping
Jumping is a mod for minetest that adds trampolines, cushions, ...
License: GPLv3
Creator: Jeija

View File

@ -0,0 +1,74 @@
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
if id == 7 then id = 1 end
minetest.add_node(pos, {name = string.sub(node.name, 1, #node.name - 1)..id})
end
for i = 1, 6 do
minetest.register_node("jumping:trampoline"..i, {
description = "Trampoline",
drawtype = "nodebox",
node_box = trampolinebox,
selection_box = trampolinebox,
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"
},
groups = {dig_immediate=2, bouncy=20+i*20, fall_damage_add_percent=-70},
})
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"}
}
})
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.

After

Width:  |  Height:  |  Size: 284 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 618 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 451 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 539 B