forked from minetest-mods/jumping
Compare commits
7 Commits
fb4ba8ff96
...
master
Author | SHA1 | Date | |
---|---|---|---|
35601d5c66 | |||
02eeafdc03 | |||
75d0b9b9ed | |||
4345462384 | |||
41170cabc4 | |||
9519784885 | |||
93ad0f555f |
@ -1 +0,0 @@
|
|||||||
adds trampolines, cushions, ...
|
|
5
init.lua
5
init.lua
@ -35,6 +35,7 @@ local power_decrease = function(pos, node)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local use_texture_alpha = minetest.features.use_texture_alpha_string_modes and "clip" or nil
|
||||||
for i = 1, 6 do
|
for i = 1, 6 do
|
||||||
minetest.register_node("jumping:trampoline"..i, {
|
minetest.register_node("jumping:trampoline"..i, {
|
||||||
description = "Trampoline",
|
description = "Trampoline",
|
||||||
@ -48,11 +49,13 @@ for i = 1, 6 do
|
|||||||
on_punch = trampoline_punch,
|
on_punch = trampoline_punch,
|
||||||
on_rightclick = power_decrease,
|
on_rightclick = power_decrease,
|
||||||
drop = "jumping:trampoline1",
|
drop = "jumping:trampoline1",
|
||||||
|
use_texture_alpha = use_texture_alpha,
|
||||||
tiles = {
|
tiles = {
|
||||||
"jumping_trampoline_top.png",
|
"jumping_trampoline_top.png",
|
||||||
"jumping_trampoline_bottom.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"
|
||||||
},
|
},
|
||||||
|
is_ground_content = false,
|
||||||
groups = {
|
groups = {
|
||||||
dig_immediate = 2,
|
dig_immediate = 2,
|
||||||
bouncy = 20 + i * 20,
|
bouncy = 20 + i * 20,
|
||||||
@ -68,11 +71,13 @@ minetest.register_node("jumping:cushion", {
|
|||||||
node_box = cushionbox,
|
node_box = cushionbox,
|
||||||
selection_box = cushionbox,
|
selection_box = cushionbox,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
use_texture_alpha = use_texture_alpha,
|
||||||
tiles = {
|
tiles = {
|
||||||
"jumping_cushion_tb.png",
|
"jumping_cushion_tb.png",
|
||||||
"jumping_cushion_tb.png",
|
"jumping_cushion_tb.png",
|
||||||
"jumping_cushion_sides.png"
|
"jumping_cushion_sides.png"
|
||||||
},
|
},
|
||||||
|
is_ground_content = false,
|
||||||
groups = {dig_immediate=2, disable_jump=1, fall_damage_add_percent=-100},
|
groups = {dig_immediate=2, disable_jump=1, fall_damage_add_percent=-100},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user