Version MFF.
1
.gitignore
vendored
@ -1 +0,0 @@
|
||||
*~
|
34
jumping/init.lua → init.lua
Normal file → Executable 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
|
Before Width: | Height: | Size: 284 B |
Before Width: | Height: | Size: 618 B |
Before Width: | Height: | Size: 451 B |
Before Width: | Height: | Size: 216 B |
Before Width: | Height: | Size: 185 B |
Before Width: | Height: | Size: 188 B |
Before Width: | Height: | Size: 178 B |
Before Width: | Height: | Size: 180 B |
Before Width: | Height: | Size: 176 B |
Before Width: | Height: | Size: 171 B |
Before Width: | Height: | Size: 539 B |
BIN
textures/jumping_cushion_sides.png
Executable file
After Width: | Height: | Size: 268 B |
BIN
textures/jumping_cushion_tb.png
Executable file
After Width: | Height: | Size: 621 B |
BIN
textures/jumping_trampoline_bottom.png
Executable file
After Width: | Height: | Size: 232 B |
BIN
textures/jumping_trampoline_sides.png
Executable file
After Width: | Height: | Size: 164 B |
BIN
textures/jumping_trampoline_sides_overlay_1.png
Executable file
After Width: | Height: | Size: 110 B |
BIN
textures/jumping_trampoline_sides_overlay_2.png
Executable file
After Width: | Height: | Size: 114 B |
BIN
textures/jumping_trampoline_sides_overlay_3.png
Executable file
After Width: | Height: | Size: 113 B |
BIN
textures/jumping_trampoline_sides_overlay_4.png
Executable file
After Width: | Height: | Size: 111 B |
BIN
textures/jumping_trampoline_sides_overlay_5.png
Executable file
After Width: | Height: | Size: 120 B |
BIN
textures/jumping_trampoline_sides_overlay_6.png
Executable file
After Width: | Height: | Size: 105 B |
BIN
textures/jumping_trampoline_top.png
Executable file
After Width: | Height: | Size: 240 B |