1
0
Fork 0

Clean code a bit, add template for locale

some interesting update comming soon... ;)
This commit is contained in:
Mikita Wiśniewski 2022-03-20 19:37:52 +07:00
parent b9a6198b07
commit ef36c40e2e
3 changed files with 11 additions and 7 deletions

View File

@ -1,6 +1,6 @@
-- Mineclone 2 (5) MoreFood mod
-- by rudzik8
-- Licensed under Unlicense
-- Licensed under Unlicense, more info here: <https://unlicense.org/>
local S = minetest.get_translator(minetest.get_current_modname())
local mofood_longdesc = S("This is a food item which can be eaten.")
@ -14,9 +14,8 @@ minetest.register_craftitem("mcl_morefood:sandwich", {
on_place = minetest.item_eat(14),
on_secondary_use = minetest.item_eat(14),
})
minetest.register_craftitem("mcl_morefood:chocolate_bar", {
description = S("Chocolate bar"),
description = S("Chocolate Bar"),
_doc_items_longdesc = mofood_longdesc,
inventory_image = "mcl_morefood_chocolate_bar.png",
groups = {food=2, eatable=6},
@ -24,9 +23,8 @@ minetest.register_craftitem("mcl_morefood:chocolate_bar", {
on_place = minetest.item_eat(6),
on_secondary_use = minetest.item_eat(6),
})
minetest.register_craftitem("mcl_morefood:fried_egg", {
description = S("Fried egg"),
description = S("Fried Egg"),
_doc_items_longdesc = mofood_longdesc,
inventory_image = "mcl_morefood_fried_egg.png",
groups = {food=2, eatable=8},
@ -108,4 +106,4 @@ minetest.register_craft({
{"mcl_mobitems:milk_bucket", "mcl_buckets:bucket_empty"},
},
cooktime = 12,
})
})

6
locale/template.txt Normal file
View File

@ -0,0 +1,6 @@
# textdomain: mcl_morefood
Sandwich=
Chocolate Bar=
Fried Egg=
Cheese=
Sweet Berry Pie=

View File

@ -1,4 +1,4 @@
name = mcl_morefood
author = rudzik8
depends = mcl_core, mcl_farming, mcl_buckets, mcl_dye, mcl_mobitems, mcl_throwing
description = This mod adds five more food items to the Mineclone 2 (5) game!
description = This mod adds five more food items to the Mineclone 2 (5) game!