add ':' to modname once

This commit is contained in:
chmodsayshello 2023-06-21 10:53:41 +02:00
parent bb2ce9ef92
commit 2665980007
1 changed files with 7 additions and 7 deletions

View File

@ -1,14 +1,14 @@
local modname = minetest.get_current_modname()
local S = minetest.get_translator(modname)
local mod_registername = minetest.get_current_modname() .. ":"
local S = minetest.get_translator(modname)
for _, template_name in pairs(mcl_armor_trims.overlays) do
minetest.register_craftitem(modname .. ":" .. template_name, {
minetest.register_craftitem(mod_registername .. template_name, {
description = S("Smithing Template '@1'", template_name),
inventory_image = template_name .. "_armor_trim_smithing_template.png",
})
minetest.register_craft({
output = modname .. ":" .. template_name .. " 2",
output = mod_registername .. template_name .. " 2",
recipe = {
{"mcl_core:diamond",modname .. ":" .. template_name,"mcl_core:diamond"},
{"mcl_core:diamond","mcl_core:cobble","mcl_core:diamond"},
@ -19,7 +19,7 @@ end
--temp craft recipies, missing structures
minetest.register_craft({
output = modname .. ":eye",
output = mod_registername .. "eye",
recipe = {
{"mcl_core:diamond","mcl_end:ender_eye","mcl_core:diamond"},
{"mcl_core:diamond","mcl_end:ender_eye","mcl_core:diamond"},
@ -28,7 +28,7 @@ minetest.register_craft({
})
minetest.register_craft({
output = modname .. ":ward",
output = mod_registername .. "ward",
recipe = {
{"mcl_core:diamond","mcl_core:diamond","mcl_core:diamond"},
{"mcl_core:diamond","mcl_core:apple_gold_enchanted","mcl_core:diamond"},
@ -37,7 +37,7 @@ minetest.register_craft({
})
minetest.register_craft({
output = modname .. ":snout",
output = mod_registername .. "snout",
recipe = {
{"mcl_core:diamond","mcl_core:diamond","mcl_core:diamond"},
{"mcl_core:diamond","mcl_core:goldblock","mcl_core:diamond"},