MineClone2/mods/CORE/mcl_enchanting/init.lua

23 lines
732 B
Lua
Raw Normal View History

2020-10-27 16:37:25 +01:00
local modpath = minetest.get_modpath("mcl_enchanting")
mcl_enchanting = {
book_offset = vector.new(0, 0.75, 0),
roman_numerals = dofile(modpath .. "/roman_numerals.lua"), -- https://exercism.io/tracks/lua/exercises/roman-numerals/solutions/73c2fb7521e347209312d115f872fa49
2020-11-01 13:44:05 +01:00
enchantments = {},
2020-11-09 18:59:08 +01:00
weighted_enchantments = {},
accumulated_weight = 0,
2020-11-02 17:22:03 +01:00
debug = false,
2020-10-27 16:37:25 +01:00
}
2020-11-02 13:38:17 +01:00
dofile(modpath .. "/engine.lua")
2020-10-27 16:37:25 +01:00
dofile(modpath .. "/enchantments.lua")
2020-10-27 18:19:49 +01:00
dofile(modpath .. "/command.lua")
dofile(modpath .. "/tt.lua")
dofile(modpath .. "/book.lua")
2020-10-27 16:37:25 +01:00
-- dofile(modpath .. "/ui.lua")
-- dofile(modpath .. "/fx.lua")
-- dofile(modpath .. "/book.lua")
-- dofile(modpath .. "/table.lua")
2020-11-01 13:44:05 +01:00
minetest.register_on_mods_loaded(mcl_enchanting.initialize)