Skip to content

Commit

Permalink
General mod maintenance (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
sys4-fr committed Jun 26, 2022
1 parent b5205e4 commit 4345462
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion description.txt

This file was deleted.

5 changes: 4 additions & 1 deletion init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -48,6 +49,7 @@ 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",
Expand All @@ -68,6 +70,7 @@ 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",
Expand Down Expand Up @@ -96,4 +99,4 @@ if minetest.get_modpath("farming") and minetest.get_modpath("wool") then
{"farming:cotton", "farming:cotton", "farming:cotton"}
}
})
end
end
1 change: 1 addition & 0 deletions mod.conf
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
name = jumping
description = adds trampolines, cushions, ...

0 comments on commit 4345462

Please sign in to comment.