1 Commits

Author SHA1 Message Date
ca0cbcc333 Ajoute message de chargement du mod dans le journal "action" 2018-12-26 00:08:41 +01:00
4 changed files with 27 additions and 34 deletions

1
depends.txt Normal file
View File

@ -0,0 +1 @@
default

1
description.txt Normal file
View File

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

View File

@ -35,7 +35,6 @@ 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",
@ -49,13 +48,11 @@ 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,
@ -71,18 +68,14 @@ 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},
})
-- register recipes if the corresponding mods are present
if minetest.get_modpath("default") then
minetest.register_craft({
output = "jumping:trampoline1",
recipe = {
@ -90,9 +83,7 @@ if minetest.get_modpath("default") then
{"default:steel_ingot", "", "default:steel_ingot"}
}
})
end
if minetest.get_modpath("farming") and minetest.get_modpath("wool") then
minetest.register_craft({
output = "jumping:cushion",
recipe = {
@ -101,4 +92,5 @@ if minetest.get_modpath("farming") and minetest.get_modpath("wool") then
{"farming:cotton", "farming:cotton", "farming:cotton"}
}
})
end
minetest.log("action", "[jumping] loaded.")

View File

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