From 81fa7cf74ca2a37766a87608826bd1bee67a0cb2 Mon Sep 17 00:00:00 2001 From: Michieal Date: Sun, 20 Nov 2022 01:39:54 -0500 Subject: [PATCH] Removed outdated translate files. made new translation template. Changed _alt image. Updated the readme.txt to reflect the changes. Added a secondary crafting recipe for the Hamburger. --- .idea/.gitignore | 3 ++ .idea/MineClone2-mcl_hamburger.iml | 9 ++++++ .idea/misc.xml | 6 ++++ .idea/modules.xml | 8 ++++++ .idea/vcs.xml | 6 ++++ mods/ITEMS/mcl_hamburger/init.lua | 26 ++++++++++++++++-- .../mcl_hamburger/locale/mcl_signs.de.tr | 9 ------ .../mcl_hamburger/locale/mcl_signs.es.tr | 8 ------ .../mcl_hamburger/locale/mcl_signs.fr.tr | 9 ------ .../mcl_hamburger/locale/mcl_signs.pl.tr | 9 ------ .../mcl_hamburger/locale/mcl_signs.ru.tr | 9 ------ .../mcl_hamburger/locale/mcl_signs.zh_TW.tr | 9 ------ mods/ITEMS/mcl_hamburger/locale/template.txt | 19 +++++++------ mods/ITEMS/mcl_hamburger/mod.conf | 6 ++-- .../textures/mcl_hamburger_alt.png | Bin 1411 -> 640 bytes 15 files changed, 69 insertions(+), 67 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/MineClone2-mcl_hamburger.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml delete mode 100644 mods/ITEMS/mcl_hamburger/locale/mcl_signs.de.tr delete mode 100644 mods/ITEMS/mcl_hamburger/locale/mcl_signs.es.tr delete mode 100644 mods/ITEMS/mcl_hamburger/locale/mcl_signs.fr.tr delete mode 100644 mods/ITEMS/mcl_hamburger/locale/mcl_signs.pl.tr delete mode 100644 mods/ITEMS/mcl_hamburger/locale/mcl_signs.ru.tr delete mode 100644 mods/ITEMS/mcl_hamburger/locale/mcl_signs.zh_TW.tr diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 000000000..26d33521a --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/.idea/MineClone2-mcl_hamburger.iml b/.idea/MineClone2-mcl_hamburger.iml new file mode 100644 index 000000000..d6ebd4805 --- /dev/null +++ b/.idea/MineClone2-mcl_hamburger.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 000000000..639900d13 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 000000000..4dfb6100b --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 000000000..35eb1ddfb --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/mods/ITEMS/mcl_hamburger/init.lua b/mods/ITEMS/mcl_hamburger/init.lua index cb0d0d425..bc95f0248 100644 --- a/mods/ITEMS/mcl_hamburger/init.lua +++ b/mods/ITEMS/mcl_hamburger/init.lua @@ -17,13 +17,17 @@ local modname = minetest.get_current_modname() local modpath = minetest.get_modpath(modname) local table = table -local DEBUG = false +local DEBUG = true local enable_burger = minetest.settings:get_bool("mcl_enable_hamburger",true) local use_alt = minetest.settings:get_bool("mcl_hamburger_alt_texture",false) mcl_hamburger = {} +if DEBUG then + minetest.log("MCL_Hamburger::START.") +end + -- call to register your hamburger. function mcl_hamburger.register_burger_craft(cooked_meat) minetest.register_craft({ @@ -40,6 +44,14 @@ function mcl_hamburger.register_burger_craft(cooked_meat) { "mcl_farming:bread" }, }, }) + minetest.register_craft({ + output = "mcl_hamburger:hamburger", + recipe = { + -- "mcl_mobitems:cooked_beef" for a reg hamburger. Grind up clowns for a Big Mac. + { "mcl_farming:bread", cooked_meat, "mcl_farming:bread"}, + }, + }) + end local hamburger_def = { @@ -73,7 +85,7 @@ local function register_achievements() awards.register_achievement("mcl_hamburger:hamburger", { title = S("Burger Time!"), description = S("Craft a Hamburger."), - icon = "mcl_hamburger.png", + icon = "mcl_hamburger_alt.png", trigger = { type = "craft", item = "mcl_hamburger:hamburger", @@ -85,6 +97,15 @@ local function register_achievements() end +local function register_doc_entry() + + -- register Doc entry + if minetest.get_modpath("doc") then + doc.add_entry_alias("craftitems", "mcl_hamburger:hamburger", "craftitems", "mcl_hamburger:hamburger") + end + +end + if enable_burger then -- make the villagers follow the item minetest.registered_entities["mobs_mc:villager"].nofollow = false @@ -94,5 +115,6 @@ if enable_burger then mcl_hamburger.register_burger_craft("mcl_mobitems:cooked_beef") -- add in the super cool achievement(s)! register_achievements() + register_doc_entry() end diff --git a/mods/ITEMS/mcl_hamburger/locale/mcl_signs.de.tr b/mods/ITEMS/mcl_hamburger/locale/mcl_signs.de.tr deleted file mode 100644 index a7513659b..000000000 --- a/mods/ITEMS/mcl_hamburger/locale/mcl_signs.de.tr +++ /dev/null @@ -1,9 +0,0 @@ -# textdomain: mcl_signs -Sign=Schild -Signs can be written and come in two variants: Wall sign and sign on a sign post. Signs can be placed on the top and the sides of other blocks, but not below them.=Schilder können beschrieben werden und kommen in zwei Varianten: Wandschild und stehendes Schild. Sie können auf und an den Seiten von anderen Blöclen platziert werden, aber nicht unter ihnen. -After placing the sign, you can write something on it. You have 4 lines of text with up to 15 characters for each line; anything beyond these limits is lost. Not all characters are supported. The text can not be changed once it has been written; you have to break and place the sign again.=Nachdem das Schild platziert wurde, kann man etwas darauf schreiben. 4 Zeilen mit je 15 Zeichen pro Zeile sind verfügbar, alles darüber geht verloren. Es werden nicht alle Zeichen unterstützt. Der Text kann nicht geändert werden, sobald er geschrieben wurde; man muss das Schild erneut platzieren. -Enter sign text:=Schildtext eingeben: -Maximum line length: 15=Maximale Zeilenlänge: 15 -Maximum lines: 4=Maximale Zeilen: 4 -Done=Fertig -Can be written=Kann beschriftet werden diff --git a/mods/ITEMS/mcl_hamburger/locale/mcl_signs.es.tr b/mods/ITEMS/mcl_hamburger/locale/mcl_signs.es.tr deleted file mode 100644 index d67e2da0d..000000000 --- a/mods/ITEMS/mcl_hamburger/locale/mcl_signs.es.tr +++ /dev/null @@ -1,8 +0,0 @@ -# textdomain: mcl_signs -Sign=Firmar -Signs can be written and come in two variants: Wall sign and sign on a sign post. Signs can be placed on the top and the sides of other blocks, but not below them.=Los letreros se pueden escribir y vienen en dos variantes: letrero de muro y letrero en un poste de letrero. Los letreros se pueden colocar en la parte superior y en los costados de otros bloques, pero no debajo de ellos. -After placing the sign, you can write something on it. You have 4 lines of text with up to 15 characters for each line; anything beyond these limits is lost. Not all characters are supported. The text can not be changed once it has been written; you have to break and place the sign again.=Después de colocar el letrero, puede escribir algo en él. Tiene 4 líneas de texto con hasta 15 caracteres para cada línea; todo lo que esté más allá de estos límites se pierde. No todos los personajes son compatibles. El texto no se puede cambiar una vez que se ha escrito; tienes que romper y colocar el letrero nuevamente. -Enter sign text:=Inserte el texto del letrero: -Maximum line length: 15=Longitud máxima de línea: 15 -Maximum lines: 4=Líneas máximas: 4 -Done=Escribir cartel diff --git a/mods/ITEMS/mcl_hamburger/locale/mcl_signs.fr.tr b/mods/ITEMS/mcl_hamburger/locale/mcl_signs.fr.tr deleted file mode 100644 index 158640dae..000000000 --- a/mods/ITEMS/mcl_hamburger/locale/mcl_signs.fr.tr +++ /dev/null @@ -1,9 +0,0 @@ -# textdomain: mcl_signs -Sign=Panneau -Signs can be written and come in two variants: Wall sign and sign on a sign post. Signs can be placed on the top and the sides of other blocks, but not below them.=Les panneaux peuvent être écrits et se déclinent en deux variantes: panneau mural et panneau sur poteau. Des panneaux peuvent être placés en haut et sur les côtés des autres blocs, mais pas en dessous. -After placing the sign, you can write something on it. You have 4 lines of text with up to 15 characters for each line; anything beyond these limits is lost. Not all characters are supported. The text can not be changed once it has been written; you have to break and place the sign again.=Après avoir placé le panneau, vous pouvez écrire quelque chose dessus. Vous avez 4 lignes de texte avec jusqu'à 15 caractères pour chaque ligne; tout ce qui dépasse ces limites est perdu. Tous les caractères ne sont pas pris en charge. Le texte ne peut pas être modifié une fois qu'il a été écrit; vous devez casser et placer à nouveau le panneau. -Enter sign text:=Saisir le texte du panneau: -Maximum line length: 15=Longueur maximum des lignes: 15 -Maximum lines: 4=Nombre maximum de lignes: 4 -Done=Terminé -Can be written=Peut être écrit diff --git a/mods/ITEMS/mcl_hamburger/locale/mcl_signs.pl.tr b/mods/ITEMS/mcl_hamburger/locale/mcl_signs.pl.tr deleted file mode 100644 index bf3bbf3c8..000000000 --- a/mods/ITEMS/mcl_hamburger/locale/mcl_signs.pl.tr +++ /dev/null @@ -1,9 +0,0 @@ -# textdomain: mcl_signs -Sign=Znak -Signs can be written and come in two variants: Wall sign and sign on a sign post. Signs can be placed on the top and the sides of other blocks, but not below them.=Na znakach można pisać i postawić je w dwóch wariantach: znak ścienny i znak na patyku. Znaki mogą być stawiane na górze i na bokach bloków, ale nie pod nimi. -After placing the sign, you can write something on it. You have 4 lines of text with up to 15 characters for each line; anything beyond these limits is lost. Not all characters are supported. The text can not be changed once it has been written; you have to break and place the sign again.=Po postawieniu znaku możesz coś na nim napisać. Masz miejsce na cztery linie tekstu po 15 znaków każda; cokolwiek poza limitami będzie utracone. Nie wszystkie znaki są wspierane. Tekstu nie można zmienić po napisaniu; musisz zniszczyć znak i postawić go ponownie. -Enter sign text:=Wpisz tekst znaku: -Maximum line length: 15=Maksymalna długość linii: 15 -Maximum lines: 4=Maksymalna liczba linii: 4 -Done=Skończone -Can be written=Można na nim coś napisać diff --git a/mods/ITEMS/mcl_hamburger/locale/mcl_signs.ru.tr b/mods/ITEMS/mcl_hamburger/locale/mcl_signs.ru.tr deleted file mode 100644 index 354e556a8..000000000 --- a/mods/ITEMS/mcl_hamburger/locale/mcl_signs.ru.tr +++ /dev/null @@ -1,9 +0,0 @@ -# textdomain: mcl_signs -Sign=Табличка -Signs can be written and come in two variants: Wall sign and sign on a sign post. Signs can be placed on the top and the sides of other blocks, but not below them.=На табличках можно писать. Таблички бывают двух видов: настенные и отдельно стоящие. Таблички можно размещать на верхушках и сторонах блоков, но не под блоками. -After placing the sign, you can write something on it. You have 4 lines of text with up to 15 characters for each line; anything beyond these limits is lost. Not all characters are supported. The text can not be changed once it has been written; you have to break and place the sign again.=После установки таблички вы можете написать на ней что-то. Вам доступны 4 строки текста, до 15 символов в каждой; всё, что вы напишете сверх лимита, потеряется. Поддерживаются не все символы. Текст нельзя изменить. Чтобы изменить его, вам придётся сломать табличку и подписать её снова. -Enter sign text:=Текст на табличке: -Maximum line length: 15=Максимальная длина строки: 15 -Maximum lines: 4=Максимум строк: 4 -Done=Готово -Can be written=Может быть подписана diff --git a/mods/ITEMS/mcl_hamburger/locale/mcl_signs.zh_TW.tr b/mods/ITEMS/mcl_hamburger/locale/mcl_signs.zh_TW.tr deleted file mode 100644 index 62994bc3d..000000000 --- a/mods/ITEMS/mcl_hamburger/locale/mcl_signs.zh_TW.tr +++ /dev/null @@ -1,9 +0,0 @@ -# textdomain: mcl_signs -Sign=告示牌 -Signs can be written and come in two variants: Wall sign and sign on a sign post. Signs can be placed on the top and the sides of other blocks, but not below them.=告示牌可以寫字,有兩種變體:牆上的告示牌和柱上的告示牌。告示牌可以放在其他方塊的頂部和側面,但不能放在下面。 -After placing the sign, you can write something on it. You have 4 lines of text with up to 15 characters for each line; anything beyond these limits is lost. Not all characters are supported. The text can not be changed once it has been written; you have to break and place the sign again.=放置告示牌後,你可以在上面寫東西。你最多可以寫4行文字,每行最多可以寫15個字符;超過這些限制的文字就會丟失。不是所有的字符都被支持。文字一旦寫完就不能更改;你必須打破並重新放置標誌。 -Enter sign text:=輸入告示牌文字: -Maximum line length: 15=每行最多可以寫15個字符 -Maximum lines: 4=最多可以寫4行文字 -Done=確認 -Can be written=可以寫字 diff --git a/mods/ITEMS/mcl_hamburger/locale/template.txt b/mods/ITEMS/mcl_hamburger/locale/template.txt index 7336db4f4..850ff62b0 100644 --- a/mods/ITEMS/mcl_hamburger/locale/template.txt +++ b/mods/ITEMS/mcl_hamburger/locale/template.txt @@ -1,9 +1,10 @@ -# textdomain: mcl_signs -Sign= -Signs can be written and come in two variants: Wall sign and sign on a sign post. Signs can be placed on the top and the sides of other blocks, but not below them.= -After placing the sign, you can write something on it. You have 4 lines of text with up to 15 characters for each line; anything beyond these limits is lost. Not all characters are supported. The text can not be changed once it has been written; you have to break and place the sign again. Can be colored and made to glow.= -Enter sign text:= -Maximum line length: 15= -Maximum lines: 4= -Done= -Can be written= +# textdomain: mcl_hamburger +A Hamburger= + +A tasty hamburger that is sure to lure villagers around like a lead. Can be eaten.= + +A tasty hamburger that is sure to lure villagers. 'I'll gladly pay you Tuesday, for a hamburger today.' - Wimpy.= + +Burger Time!= +Craft a Hamburger.= +Wield this item to pull villagers to you.= diff --git a/mods/ITEMS/mcl_hamburger/mod.conf b/mods/ITEMS/mcl_hamburger/mod.conf index 205b3c558..32a5ad542 100644 --- a/mods/ITEMS/mcl_hamburger/mod.conf +++ b/mods/ITEMS/mcl_hamburger/mod.conf @@ -1,4 +1,4 @@ name = mcl_hamburger -description = A cute (and easy to use) replacement for not having leashes in MC2. Also adds in a new food item. -depends = mcl_core, mcl_sounds, mobs_mc, mcl_mobitems -optional_depends = doc, awards +description = A cute (and easy to use) replacement for not having leashes in MC2 +depends = mcl_core, mcl_sounds, mobs_mc, mcl_mobitems, awards +optional_depends = doc diff --git a/mods/ITEMS/mcl_hamburger/textures/mcl_hamburger_alt.png b/mods/ITEMS/mcl_hamburger/textures/mcl_hamburger_alt.png index 022fc1c02111fa5184f20961f4ea30c527629c1a..70fd29448db5271f310b6224c6e9301f8f19f466 100644 GIT binary patch literal 640 zcmV-`0)PF9P)FN1P1zs&BNz@Xq!txKiwu>h2tgu>AleGy&PA&hg0zxA+Ez<* zA(hp}O(K#Q35D4pl{49><7oHI%)9Ts+v4Roh^;$t;oNh-``z=Ma}WG))3ydid*bR} z;EVlf?d82aM%%-m&PL2A2aI&rsY9o4P#K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