diff options
Diffstat (limited to 'jumping')
-rw-r--r-- | jumping/init.lua | 74 | ||||
-rw-r--r-- | jumping/textures/jumping_cushion_sides.png | bin | 284 -> 0 bytes | |||
-rw-r--r-- | jumping/textures/jumping_cushion_tb.png | bin | 618 -> 0 bytes | |||
-rw-r--r-- | jumping/textures/jumping_trampoline_bottom.png | bin | 451 -> 0 bytes | |||
-rw-r--r-- | jumping/textures/jumping_trampoline_sides.png | bin | 216 -> 0 bytes | |||
-rw-r--r-- | jumping/textures/jumping_trampoline_sides_overlay1.png | bin | 185 -> 0 bytes | |||
-rw-r--r-- | jumping/textures/jumping_trampoline_sides_overlay2.png | bin | 188 -> 0 bytes | |||
-rw-r--r-- | jumping/textures/jumping_trampoline_sides_overlay3.png | bin | 178 -> 0 bytes | |||
-rw-r--r-- | jumping/textures/jumping_trampoline_sides_overlay4.png | bin | 180 -> 0 bytes | |||
-rw-r--r-- | jumping/textures/jumping_trampoline_sides_overlay5.png | bin | 176 -> 0 bytes | |||
-rw-r--r-- | jumping/textures/jumping_trampoline_sides_overlay6.png | bin | 171 -> 0 bytes | |||
-rw-r--r-- | jumping/textures/jumping_trampoline_top.png | bin | 539 -> 0 bytes |
12 files changed, 0 insertions, 74 deletions
diff --git a/jumping/init.lua b/jumping/init.lua deleted file mode 100644 index 7937c63..0000000 --- a/jumping/init.lua +++ /dev/null @@ -1,74 +0,0 @@ -local trampolinebox = { - type = "fixed", - fixed = { - {-0.5, -0.2, -0.5, 0.5, 0, 0.5}, - - {-0.5, -0.5, -0.5, -0.4, -0.2, -0.4}, - { 0.4, -0.5, -0.5, 0.5, -0.2, -0.4}, - { 0.4, -0.5, 0.4, 0.5, -0.2, 0.5}, - {-0.5, -0.5, 0.4, -0.4, -0.2, 0.5}, - } -} - -local cushionbox = { - type = "fixed", - fixed = { - {-0.5, -0.5, -0.5, 0.5, -0.3, 0.5}, - } -} - -local trampoline_punch = function(pos, node) - local id = string.sub(node.name, #node.name) - id = id + 1 - if id == 7 then id = 1 end - minetest.add_node(pos, {name = string.sub(node.name, 1, #node.name - 1)..id}) -end - -for i = 1, 6 do - minetest.register_node("jumping:trampoline"..i, { - description = "Trampoline", - drawtype = "nodebox", - node_box = trampolinebox, - selection_box = trampolinebox, - paramtype = "light", - on_punch = trampoline_punch, - 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}, - }) -end - -minetest.register_node("jumping:cushion", { - description = "Cushion", - drawtype = "nodebox", - node_box = cushionbox, - selection_box = cushionbox, - paramtype = "light", - tiles = { - "jumping_cushion_tb.png", - "jumping_cushion_tb.png", - "jumping_cushion_sides.png" - }, - groups = {dig_immediate=2, disable_jump=1, fall_damage_add_percent=-100}, -}) - -minetest.register_craft({ - output = "jumping:trampoline1", - recipe = { - {"default:wood", "default:wood", "default:wood"}, - {"default:leaves", "default:leaves", "default:leaves"}, - {"default:stick", "default:stick", "default:stick"} - } -}) - -minetest.register_craft({ - output = "jumping:cushion", - recipe = { - {"default:leaves", "default:leaves", "default:leaves"}, - {"default:leaves", "default:leaves", "default:leaves"}, - {"default:stick", "default:stick", "default:stick"} - } -}) diff --git a/jumping/textures/jumping_cushion_sides.png b/jumping/textures/jumping_cushion_sides.png Binary files differdeleted file mode 100644 index 8c6de57..0000000 --- a/jumping/textures/jumping_cushion_sides.png +++ /dev/null diff --git a/jumping/textures/jumping_cushion_tb.png b/jumping/textures/jumping_cushion_tb.png Binary files differdeleted file mode 100644 index 09b50e8..0000000 --- a/jumping/textures/jumping_cushion_tb.png +++ /dev/null diff --git a/jumping/textures/jumping_trampoline_bottom.png b/jumping/textures/jumping_trampoline_bottom.png Binary files differdeleted file mode 100644 index cd9da65..0000000 --- a/jumping/textures/jumping_trampoline_bottom.png +++ /dev/null diff --git a/jumping/textures/jumping_trampoline_sides.png b/jumping/textures/jumping_trampoline_sides.png Binary files differdeleted file mode 100644 index a5f3689..0000000 --- a/jumping/textures/jumping_trampoline_sides.png +++ /dev/null diff --git a/jumping/textures/jumping_trampoline_sides_overlay1.png b/jumping/textures/jumping_trampoline_sides_overlay1.png Binary files differdeleted file mode 100644 index aebcf05..0000000 --- a/jumping/textures/jumping_trampoline_sides_overlay1.png +++ /dev/null diff --git a/jumping/textures/jumping_trampoline_sides_overlay2.png b/jumping/textures/jumping_trampoline_sides_overlay2.png Binary files differdeleted file mode 100644 index 74f43fa..0000000 --- a/jumping/textures/jumping_trampoline_sides_overlay2.png +++ /dev/null diff --git a/jumping/textures/jumping_trampoline_sides_overlay3.png b/jumping/textures/jumping_trampoline_sides_overlay3.png Binary files differdeleted file mode 100644 index d619fcc..0000000 --- a/jumping/textures/jumping_trampoline_sides_overlay3.png +++ /dev/null diff --git a/jumping/textures/jumping_trampoline_sides_overlay4.png b/jumping/textures/jumping_trampoline_sides_overlay4.png Binary files differdeleted file mode 100644 index f1679e6..0000000 --- a/jumping/textures/jumping_trampoline_sides_overlay4.png +++ /dev/null diff --git a/jumping/textures/jumping_trampoline_sides_overlay5.png b/jumping/textures/jumping_trampoline_sides_overlay5.png Binary files differdeleted file mode 100644 index 2af894d..0000000 --- a/jumping/textures/jumping_trampoline_sides_overlay5.png +++ /dev/null diff --git a/jumping/textures/jumping_trampoline_sides_overlay6.png b/jumping/textures/jumping_trampoline_sides_overlay6.png Binary files differdeleted file mode 100644 index 3c2fa6e..0000000 --- a/jumping/textures/jumping_trampoline_sides_overlay6.png +++ /dev/null diff --git a/jumping/textures/jumping_trampoline_top.png b/jumping/textures/jumping_trampoline_top.png Binary files differdeleted file mode 100644 index a927fdb..0000000 --- a/jumping/textures/jumping_trampoline_top.png +++ /dev/null |