the trampoline 1 only is in creative inventory

This commit is contained in:
Alexander Weber 2018-04-23 20:20:55 +02:00 committed by sofar
parent c7223539f6
commit 5559e591a7

View File

@ -47,12 +47,18 @@ for i = 1, 6 do
end,
on_punch = trampoline_punch,
on_rightclick = power_decrease,
drop = "jumping:trampoline1",
tiles = {
"jumping_trampoline_top.png",
"jumping_trampoline_bottom.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