From 5559e591a75d53e5624527a4141b2167c68258ff Mon Sep 17 00:00:00 2001 From: Alexander Weber Date: Mon, 23 Apr 2018 20:20:55 +0200 Subject: [PATCH] the trampoline 1 only is in creative inventory --- init.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 28c78ae..2d24113 100644 --- a/init.lua +++ b/init.lua @@ -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