mirror of
https://github.com/minetest-mods/jumping.git
synced 2024-11-25 00:23:44 +01:00
General mod maintenance (#11)
This commit is contained in:
parent
b5205e4e7d
commit
4345462384
@ -1 +0,0 @@
|
|||||||
adds trampolines, cushions, ...
|
|
3
init.lua
3
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,6 +49,7 @@ 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",
|
||||||
@ -68,6 +70,7 @@ 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",
|
||||||
|
1
mod.conf
1
mod.conf
@ -1 +1,2 @@
|
|||||||
name = jumping
|
name = jumping
|
||||||
|
description = adds trampolines, cushions, ...
|
||||||
|
Loading…
Reference in New Issue
Block a user