Compare commits

2 Commits

Author SHA1 Message Date
02eeafdc03 Protect nodes from being overwritten by mapgen (#12) 2024-02-28 17:37:04 +01:00
4345462384 General mod maintenance (#11) 2022-06-26 17:57:40 +02:00
3 changed files with 14 additions and 9 deletions

View File

@ -1 +0,0 @@
adds trampolines, cushions, ...

View File

@ -35,6 +35,7 @@ local power_decrease = function(pos, node)
end
end
local use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or nil
for i = 1, 6 do
minetest.register_node("jumping:trampoline"..i, {
description = "Trampoline",
@ -48,11 +49,13 @@ for i = 1, 6 do
on_punch = trampoline_punch,
on_rightclick = power_decrease,
drop = "jumping:trampoline1",
use_texture_alpha = use_texture_alpha,
tiles = {
"jumping_trampoline_top.png",
"jumping_trampoline_bottom.png",
"jumping_trampoline_sides.png^jumping_trampoline_sides_overlay"..i..".png"
},
is_ground_content = false,
groups = {
dig_immediate = 2,
bouncy = 20 + i * 20,
@ -68,11 +71,13 @@ minetest.register_node("jumping:cushion", {
node_box = cushionbox,
selection_box = cushionbox,
paramtype = "light",
use_texture_alpha = use_texture_alpha,
tiles = {
"jumping_cushion_tb.png",
"jumping_cushion_tb.png",
"jumping_cushion_sides.png"
},
is_ground_content = false,
groups = {dig_immediate=2, disable_jump=1, fall_damage_add_percent=-100},
})

View File

@ -1 +1,2 @@
name = jumping
description = adds trampolines, cushions, ...