mirror of
https://git.0x7be.net/dirk/uniham.git
synced 2024-11-19 22:03:46 +01:00
28 lines
902 B
Lua
28 lines
902 B
Lua
-- Init
|
|
uniham = {}
|
|
uniham.modpath = minetest.get_modpath(minetest.get_current_modname())
|
|
uniham.syspath = uniham.modpath..DIR_DELIM..'system'
|
|
|
|
|
|
-- Register replacements for the hammer. Entry ID is the ID of the node to
|
|
-- replace and entry value is the ID of the node to replace with.
|
|
uniham.replacements = {
|
|
['default:cobble'] = 'default:gravel',
|
|
['default:desert_sandstone'] = 'default:desert_sand',
|
|
['default:gravel'] = 'default:sand',
|
|
['default:obsidian'] = 'default:stone',
|
|
['default:sandstone'] = 'default:sand',
|
|
['default:silver_sandstone'] = 'default:silver_sand',
|
|
['default:stone'] = 'default:cobble',
|
|
}
|
|
|
|
|
|
-- Load mod
|
|
dofile(uniham.syspath..DIR_DELIM..'use_hammer.lua')
|
|
dofile(uniham.syspath..DIR_DELIM..'register_hammer.lua')
|
|
dofile(uniham.syspath..DIR_DELIM..'registry.lua')
|
|
|
|
|
|
-- Clean up
|
|
uniham = nil
|