12 Commits

Author SHA1 Message Date
35601d5c66 Merge remote-tracking branch 'upstream/master' 2024-09-15 09:18:31 +02:00
02eeafdc03 Protect nodes from being overwritten by mapgen (#12) 2024-02-28 17:37:04 +01:00
75d0b9b9ed Merge remote-tracking branch 'upstream/master' 2022-08-26 15:03:56 +02:00
4345462384 General mod maintenance (#11) 2022-06-26 17:57:40 +02:00
41170cabc4 Merge branch 'github' 2022-06-26 16:25:15 +02:00
9519784885 Remove warnings about use_texture_alpha 2022-06-26 16:20:30 +02:00
93ad0f555f Remove description.txt and update mod.conf 2022-06-26 14:28:25 +02:00
fb4ba8ff96 Merge remote-tracking branch 'upstream/master' 2021-11-06 09:21:27 +01:00
b5205e4e7d opt-depend on default [squash] (#9)
* more detailed dep checks for recipes

* remove (opt-) depends on default

Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
2021-11-02 19:45:07 +01:00
4deba41966 Merge remote-tracking branch 'upstream/master' 2021-02-13 14:12:03 +01:00
811847b0e7 Update mod.conf
Fix typo
2021-02-12 08:00:56 +01:00
f375986e33 Update mod.conf
Fix #8
2021-02-12 08:00:25 +01:00
4 changed files with 34 additions and 25 deletions

View File

@ -1 +0,0 @@
default

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,14 +71,18 @@ 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 = {
@ -83,7 +90,9 @@ minetest.register_craft({
{"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 = {
@ -92,5 +101,6 @@ minetest.register_craft({
{"farming:cotton", "farming:cotton", "farming:cotton"}
}
})
end
minetest.log("action", "[jumping] loaded.")

View File

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