mirror of
https://github.com/minetest-mods/jumping.git
synced 2024-11-26 00:53:49 +01:00
the trampoline 1 only is in creative inventory
This commit is contained in:
parent
c7223539f6
commit
5559e591a7
8
init.lua
8
init.lua
@ -47,12 +47,18 @@ for i = 1, 6 do
|
|||||||
end,
|
end,
|
||||||
on_punch = trampoline_punch,
|
on_punch = trampoline_punch,
|
||||||
on_rightclick = power_decrease,
|
on_rightclick = power_decrease,
|
||||||
|
drop = "jumping:trampoline1",
|
||||||
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"
|
||||||
},
|
},
|
||||||
groups = {dig_immediate=2, bouncy=20+i*20, fall_damage_add_percent=-70},
|
groups = {
|
||||||
|
dig_immediate = 2,
|
||||||
|
bouncy = 20 + i * 20,
|
||||||
|
fall_damage_add_percent = -70,
|
||||||
|
not_in_creative_inventory = ( i > 1 and 1 or nil),
|
||||||
|
},
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user