mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-23 00:20:17 +01:00
manage all handler inits in their own init file
This commit is contained in:
parent
908b408248
commit
fc8621da41
22
homedecor/handlers/init.lua
Normal file
22
homedecor/handlers/init.lua
Normal file
@ -0,0 +1,22 @@
|
||||
local handlerpath = homedecor.modpath .. "/handlers/"
|
||||
|
||||
-- nodebox arithmetics and helpers
|
||||
-- (please keep non-generic nodeboxes with their node definition)
|
||||
dofile(handlerpath.."nodeboxes.lua")
|
||||
|
||||
-- expand and unexpand decor
|
||||
dofile(handlerpath.."expansion.lua")
|
||||
|
||||
-- register nodes that cook stuff
|
||||
dofile(handlerpath.."furnaces.lua")
|
||||
|
||||
-- inventory related functionality, like initialization, ownership and spawning locked versions
|
||||
dofile(handlerpath.."inventory.lua")
|
||||
|
||||
-- glue it all together into a registration function
|
||||
dofile(handlerpath.."registration.lua")
|
||||
|
||||
-- some nodes have particle spawners
|
||||
dofile(handlerpath.."water_particles.lua")
|
||||
|
||||
dofile(handlerpath.."sit.lua")
|
@ -80,20 +80,9 @@ homedecor.white_wood = "(homedecor_generic_wood_plain.png^[colorize:#e0f0ff:200)
|
||||
homedecor.dark_wood = "(homedecor_generic_wood_plain.png^[colorize:#140900:200)^"..
|
||||
"(homedecor_generic_wood_boards_overlay.png^[colorize:#21110180:180)"
|
||||
|
||||
-- nodebox arithmetics and helpers
|
||||
-- (please keep non-generic nodeboxes with their node definition)
|
||||
dofile(modpath.."/handlers/nodeboxes.lua")
|
||||
-- expand and unexpand decor
|
||||
dofile(modpath.."/handlers/expansion.lua")
|
||||
-- register nodes that cook stuff
|
||||
dofile(modpath.."/handlers/furnaces.lua")
|
||||
-- register individual handlers used by the registration function
|
||||
dofile(modpath.."/handlers/inventory.lua")
|
||||
-- glue it all together into a registration function
|
||||
dofile(modpath.."/handlers/registration.lua")
|
||||
-- some nodes have particle spawners
|
||||
dofile(modpath.."/handlers/water_particles.lua")
|
||||
dofile(modpath.."/handlers/sit.lua")
|
||||
|
||||
-- load different handler subsystems
|
||||
dofile(modpath.."/handlers/init.lua")
|
||||
|
||||
-- load various other components
|
||||
dofile(modpath.."/misc-nodes.lua") -- the catch-all for all misc nodes
|
||||
|
Loading…
Reference in New Issue
Block a user