Version MFF.

This commit is contained in:
sys4-fr 2018-09-07 23:37:47 +02:00
parent 47df671545
commit 8d480f4cff
26 changed files with 22 additions and 13 deletions

1
.gitignore vendored
View File

@ -1 +0,0 @@
*~

0
README.md Normal file → Executable file
View File

34
jumping/init.lua → init.lua Normal file → Executable file
View File

@ -24,9 +24,14 @@ local trampoline_punch = function(pos, node)
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",
local u = 6
local bounces = {90, 100, 110, 120, 130, 140}
for i = 1, u do
local bnc_pct = bounces[i]
minetest.register_node("jumping:trampoline_" .. i, {
description = "Trampoline (bounce : " .. bnc_pct .. "%)",
drawtype = "nodebox",
node_box = trampolinebox,
selection_box = trampolinebox,
@ -35,9 +40,10 @@ for i = 1, 6 do
tiles = {
"jumping_trampoline_top.png",
"jumping_trampoline_bottom.png",
"jumping_trampoline_sides.png^jumping_trampoline_sides_overlay"..i..".png"
"jumping_trampoline_sides.png^jumping_trampoline_sides_overlay_" .. i .. ".png",
},
groups = {dig_immediate=2, bouncy=20+i*20, fall_damage_add_percent=-70},
drop = "jumping:trampoline_1",
groups = {dig_immediate = 2, bouncy = bnc_pct, fall_damage_add_percent = -95},
})
end
@ -50,25 +56,29 @@ minetest.register_node("jumping:cushion", {
tiles = {
"jumping_cushion_tb.png",
"jumping_cushion_tb.png",
"jumping_cushion_sides.png"
"jumping_cushion_sides.png",
},
groups = {dig_immediate=2, disable_jump=1, fall_damage_add_percent=-100},
groups = {dig_immediate = 2, disable_jump = 1, fall_damage_add_percent = -100},
})
minetest.register_craft({
output = "jumping:trampoline1",
output = "jumping:trampoline_1",
recipe = {
{"default:wood", "default:wood", "default:wood"},
{"group:ingot", "group:ingot", "group:ingot"},
{"default:leaves", "default:leaves", "default:leaves"},
{"default:stick", "default:stick", "default:stick"}
{"default:stick", "default:stick", "default:stick"},
}
})
minetest.register_craft({
output = "jumping:cushion",
recipe = {
{"default:junglegrass", "default:junglegrass", "default:junglegrass"},
{"default:leaves", "default:leaves", "default:leaves"},
{"default:leaves", "default:leaves", "default:leaves"},
{"default:stick", "default:stick", "default:stick"}
{"default:stick", "default:stick", "default:stick"},
}
})
if minetest.setting_getbool("log_mods") then
minetest.log("action", "Carbone: [jumping] loaded.")
end

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

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 268 B

BIN
textures/jumping_cushion_tb.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 164 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 113 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 B