50 lines
1.2 KiB
Lua
50 lines
1.2 KiB
Lua
|
sumo = {}
|
||
|
|
||
|
-- local value settings
|
||
|
|
||
|
local player_speed = 2 -- when in the minigame
|
||
|
local player_jump = 1.3 -- when in the minigame
|
||
|
|
||
|
|
||
|
|
||
|
arena_lib.register_minigame("sumo", {
|
||
|
prefix = "[Sumo] ",
|
||
|
hub_spawn_point = { x = 0, y = 20, z = 0 },
|
||
|
show_minimap = false,
|
||
|
time_mode = 2,
|
||
|
load_time = 1,
|
||
|
celebration_time = 5,
|
||
|
join_while_in_progress = false,
|
||
|
keep_inventory = false,
|
||
|
in_game_physics = {
|
||
|
speed = player_speed,
|
||
|
jump = player_jump,
|
||
|
sneak = false,
|
||
|
},
|
||
|
|
||
|
hotbar = {
|
||
|
slots = 1,
|
||
|
background_image = "sumo_gui_hotbar.png"
|
||
|
},
|
||
|
|
||
|
disabled_damage_types = {"punch","fall"},
|
||
|
|
||
|
player_properties = {
|
||
|
textures = "",
|
||
|
watching = "",
|
||
|
playing = true,
|
||
|
collisionbox = {},
|
||
|
},
|
||
|
})
|
||
|
|
||
|
|
||
|
dofile(minetest.get_modpath("sumo") .. "/commands.lua")
|
||
|
dofile(minetest.get_modpath("sumo") .. "/items.lua")
|
||
|
dofile(minetest.get_modpath("sumo") .. "/minigame_manager.lua")
|
||
|
dofile(minetest.get_modpath("sumo") .. "/nodes.lua")
|
||
|
dofile(minetest.get_modpath("sumo") .. "/privs.lua")
|
||
|
|
||
|
if not minetest.get_modpath("lib_chatcmdbuilder") then
|
||
|
dofile(minetest.get_modpath("sumo") .. "/chatcmdbuilder.lua")
|
||
|
end
|