1
0
mirror of https://bitbucket.org/minetest_gamers/x_enchanting.git synced 2025-06-30 23:00:24 +02:00

Initial commit

This commit is contained in:
Juraj Vajda
2022-11-08 10:43:16 -05:00
commit 1e4d8d0663
79 changed files with 4270 additions and 0 deletions

22
init.lua Normal file
View File

@ -0,0 +1,22 @@
-- X Enchanting
-- by SaKeL
local path = minetest.get_modpath('x_enchanting')
local mod_start_time = minetest.get_us_time()
dofile(path .. '/api.lua')
dofile(path .. '/table.lua')
minetest.register_on_mods_loaded(function()
for name, tool_def in pairs(minetest.registered_tools) do
if XEnchanting:has_tool_group(name) then
XEnchanting:set_tool_enchantability(tool_def)
-- print(name, dump(minetest.registered_tools[name]._x_enchanting))
-- print(name, dump(minetest.registered_tools[name].groups))
end
end
end)
local mod_end_time = (minetest.get_us_time() - mod_start_time) / 1000000
print('[Mod] x_enchanting loaded.. [' .. mod_end_time .. 's]')