sumo-cd2025/init.lua

40 lines
1.0 KiB
Lua
Raw Normal View History

-- local value settings
2020-12-19 13:55:23 +01:00
local player_speed = 2 -- when in the minigame
local player_jump = 1.3 -- when in the minigame
2020-12-19 13:55:23 +01:00
arena_lib.register_minigame("sumo", {
prefix = "[Sumo] ",
hub_spawn_point = { x = 0, y = 20, z = 0 },
show_minimap = false,
time_mode = 2,
join_while_in_progress = false,
keep_inventory = false,
in_game_physics = {
speed = player_speed,
jump = player_jump,
sneak = false,
},
2020-12-15 21:38:45 +00:00
2020-12-19 13:55:23 +01:00
hotbar = {
slots = 1,
background_image = "sumo_gui_hotbar.png"
},
2020-12-15 21:38:45 +00:00
2020-12-19 18:15:55 +00:00
disabled_damage_types = {"punch","fall"},
2020-12-15 21:38:45 +00:00
2020-12-19 13:55:23 +01:00
--player_properties = {},
})
2020-12-15 21:38:45 +00:00
2020-12-19 13:55:23 +01:00
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")
2020-12-15 21:38:45 +00:00
2020-12-19 13:55:23 +01:00
if not minetest.get_modpath("lib_chatcmdbuilder") then
dofile(minetest.get_modpath("sumo") .. "/chatcmdbuilder.lua")
end