wormball-wip-/init.lua

81 lines
2.2 KiB
Lua
Raw Permalink Normal View History

2021-01-19 18:46:28 -08:00
wormball = {}
dofile(minetest.get_modpath("wormball") .. "/globals.lua")
2021-01-19 18:46:28 -08:00
arena_lib.register_minigame("wormball", {
prefix = "[Wormball] ",
--hub_spawn_point = { x = 0, y = 20, z = 0 },
show_minimap = false,
2021-01-26 14:51:09 -08:00
time_mode = 'decremental',
2021-01-19 18:46:28 -08:00
load_time = 5,
min_players = 1,
max_players = 10,
2021-02-01 10:47:46 -08:00
2021-01-19 18:46:28 -08:00
join_while_in_progress = false,
keep_inventory = false,
in_game_physics = {
2021-02-02 21:47:08 -08:00
speed = 1,
jump = 1,
2021-01-19 18:46:28 -08:00
sneak = false,
2021-01-21 17:08:40 -08:00
gravity = 1,
2021-01-19 18:46:28 -08:00
},
2021-02-01 10:47:46 -08:00
show_nametags = false,
2021-01-19 18:46:28 -08:00
hotbar = {
slots = 1,
2021-01-19 18:46:28 -08:00
},
2021-01-26 14:51:09 -08:00
celebration_time =10,
2021-01-19 18:46:28 -08:00
disabled_damage_types = {"punch","fall"},
properties = {
area_to_clear_after_game_pos_1 = {x = 0, y = 0, z = 0},
area_to_clear_after_game_pos_2 = {x = 0, y = 0, z = 0},
min_food_factor = 2,
min_food = 20,
2021-01-26 15:09:23 -08:00
highscores = {
{'pl_name_placeholder',0},
{'pl_name_placeholder',0},
{'pl_name_placeholder',0},
{'pl_name_placeholder',0},
{'pl_name_placeholder',0},
{'pl_name_placeholder',0},
{'pl_name_placeholder',0},
{'pl_name_placeholder',0},
{'pl_name_placeholder',0},
{'pl_name_placeholder',0},
2021-01-26 14:51:09 -08:00
2021-01-26 15:09:23 -08:00
},
2021-01-19 18:46:28 -08:00
},
2021-01-21 17:08:40 -08:00
temp_properties = {
mode = 'singleplayer',
2021-01-26 12:58:50 -08:00
dots = {},
2021-01-26 14:51:09 -08:00
num_players = 0,
2021-01-21 17:08:40 -08:00
},
2021-01-26 14:51:09 -08:00
initial_time = 300,
2021-01-21 17:08:40 -08:00
2021-01-19 18:46:28 -08:00
player_properties = {
alive = true,
direction = {x=0,y=1,z=0},
2021-01-21 17:08:40 -08:00
old_direction = {x=0,y=1,z=0},
2021-01-19 18:46:28 -08:00
nodes = {},
score = 1,
color = "",
apple = false,
2021-01-21 17:08:40 -08:00
--textures= {},
2021-01-26 12:58:50 -08:00
move = true,
attached = false,
2021-01-19 18:46:28 -08:00
},
})
if not minetest.get_modpath("lib_chatcmdbuilder") then
dofile(minetest.get_modpath("wormball") .. "/chatcmdbuilder.lua")
end
dofile(minetest.get_modpath("wormball") .. "/commands.lua")
--nodes includes the attachment entity, also there are creative decorative worm body parts for decorating minigame hubs
2021-01-19 18:46:28 -08:00
dofile(minetest.get_modpath("wormball") .. "/nodes.lua")
dofile(minetest.get_modpath("wormball") .. "/privs.lua")
--minigame_manager simply runs all the files in the folder minigame_manager
dofile(minetest.get_modpath("wormball") .. "/minigame_manager.lua")