Split default snippets
parent
2e0b551cf0
commit
8a80ebebea
3
init.lua
3
init.lua
|
@ -14,7 +14,8 @@ end
|
|||
|
||||
-- Register core snippets
|
||||
|
||||
dofile(minetest.get_modpath(minetest.get_current_modname()).."/snippets.lua")
|
||||
dofile(minetest.get_modpath(minetest.get_current_modname()).."/snippets_core.lua")
|
||||
dofile(minetest.get_modpath(minetest.get_current_modname()).."/snippets_builtin.lua")
|
||||
|
||||
-- Apply item description updates
|
||||
|
||||
|
|
|
@ -27,16 +27,6 @@ local function get_min_digtime(caps)
|
|||
return mintime, unique
|
||||
end
|
||||
|
||||
-- CORE SNIPPETS --
|
||||
|
||||
-- Custom text (_tt_help)
|
||||
tt.register_snippet(function(itemstring)
|
||||
local def = minetest.registered_items[itemstring]
|
||||
if def._tt_help then
|
||||
return def._tt_help, false
|
||||
end
|
||||
end)
|
||||
|
||||
-- Tool information (digging times, weapon stats)
|
||||
tt.register_snippet(function(itemstring)
|
||||
local def = minetest.registered_items[itemstring]
|
|
@ -0,0 +1,11 @@
|
|||
-- CORE SNIPPETS --
|
||||
|
||||
-- Custom text (_tt_help)
|
||||
tt.register_snippet(function(itemstring)
|
||||
local def = minetest.registered_items[itemstring]
|
||||
if def._tt_help then
|
||||
return def._tt_help, false
|
||||
end
|
||||
end)
|
||||
|
||||
|
Loading…
Reference in New Issue