mirror of
https://github.com/minetest-mods/jumping.git
synced 2025-07-21 17:20:27 +02:00
Compare commits
6 Commits
master
...
41170cabc4
Author | SHA1 | Date | |
---|---|---|---|
41170cabc4 | |||
9519784885 | |||
93ad0f555f | |||
fb4ba8ff96 | |||
4deba41966 | |||
ca0cbcc333 |
18
init.lua
18
init.lua
@ -7,14 +7,14 @@ local trampolinebox = {
|
||||
{ 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)
|
||||
@ -55,13 +55,12 @@ for i = 1, 6 do
|
||||
"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,
|
||||
fall_damage_add_percent = -70,
|
||||
not_in_creative_inventory = ( i > 1 and 1 or nil),
|
||||
},
|
||||
dig_immediate = 2,
|
||||
bouncy = 20 + i * 20,
|
||||
fall_damage_add_percent = -70,
|
||||
not_in_creative_inventory = ( i > 1 and 1 or nil),
|
||||
},
|
||||
})
|
||||
end
|
||||
|
||||
@ -77,7 +76,6 @@ minetest.register_node("jumping:cushion", {
|
||||
"jumping_cushion_tb.png",
|
||||
"jumping_cushion_sides.png"
|
||||
},
|
||||
is_ground_content = false,
|
||||
groups = {dig_immediate=2, disable_jump=1, fall_damage_add_percent=-100},
|
||||
})
|
||||
|
||||
@ -102,3 +100,5 @@ if minetest.get_modpath("farming") and minetest.get_modpath("wool") then
|
||||
}
|
||||
})
|
||||
end
|
||||
|
||||
minetest.log("action", "[jumping] loaded.")
|
||||
|
Reference in New Issue
Block a user