1
0
鏡像自 https://github.com/sys4-fr/server-nalc.git 已同步 2025-10-24 10:55:21 +02:00

initial commit

subgame + mods
此提交包含在:
Ombridride
2014-10-28 18:01:32 +01:00
父節點 baab1b3f7c
當前提交 232b274c55
共有 6451 個檔案被更改,包括 226156 行新增0 行删除

7
mods/jumping/README.md 可執行檔
查看文件

@@ -0,0 +1,7 @@
Jumping
Jumping is a mod for minetest that adds trampolines, cushions, ...
License: GPLv3
Creator: Jeija

79
mods/jumping/init.lua 可執行檔
查看文件

@@ -0,0 +1,79 @@
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.env: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",
},
drop = "jumping:trampoline_1",
groups = {dig_immediate = 2, bouncy = 16 + i * 16, fall_damage_add_percent = -65, disable_jump = 1},
})
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:trampoline_1",
recipe = {
{"group:ingot", "group:ingot", "group:ingot"},
{"default:leaves", "default:leaves", "default:leaves"},
{"default:stick", "default:stick", "default:stick"},
}
})
minetest.register_craft({
output = "jumping:cushion",
recipe = {
{"default:junglegrass", "default:junglegrass", "default:junglegrass"},
{"default:leaves", "default:leaves", "default:leaves"},
{"default:stick", "default:stick", "default:stick"},
}
})
if minetest.setting_getbool("log_mods") then
minetest.log("action", "Carbone: [jumping] loaded.")
end

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 268 B

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 621 B

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 232 B

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 164 B

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 110 B

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 114 B

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 113 B

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 111 B

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 120 B

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 105 B

未顯示二進位檔案。

之後

寬度:  |  高度:  |  大小: 240 B