6 player_movement_state = nil
9 function initialize_all()
10 --declare globals for now
11 weather_intake = minetest.mod_channel_join("weather_intake")
12 weather = minetest.mod_channel_join("weather_nodes")
13 weather_type = minetest.mod_channel_join("weather_type")
14 running_send = minetest.mod_channel_join("running_send")
15 player_movement_state = minetest.mod_channel_join("player.player_movement_state")
16 nether = minetest.mod_channel_join("nether_teleporters")
17 aether = minetest.mod_channel_join("aether_teleporters")
19 --next we load everything seperately because it's easier to work on individual files than have everything jammed into one file
20 --not into seperate mods because that is unnecessary and cumbersome
21 local path = minetest.get_modpath("crafter_client")
22 dofile(path.."/player_input.lua")
23 dofile(path.."/weather_handling.lua")
24 dofile(path.."/environment_effects.lua")
25 dofile(path.."/nether.lua")
26 dofile(path.."/aether.lua")
29 --we must delay initialization until the player exists in the world
30 local function recursive_startup_attempt()
31 local ready_to_go = minetest.localplayer
37 minetest.after(0,function()
38 recursive_startup_attempt()
43 --begin initial attempt
44 recursive_startup_attempt()