Merge pull request 'Epic hamburger fight PR' (#2959) from mcl_hamburger into master

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2959
This commit is contained in:
cora 2022-11-28 02:06:48 +00:00
commit 5e022ef083
13 changed files with 247 additions and 0 deletions

@ -0,0 +1,120 @@
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by michieal.
--- DateTime: 11/19/22 7:13 AM
---
---
--- Generated by EmmyLua(https://github.com/EmmyLua)
--- Created by michieal.
--- DateTime: 10/23/22 4:50 AM
---
-- LOCALIZATION
local S = minetest.get_translator("mcl_hamburger")
local modname = minetest.get_current_modname()
local modpath = minetest.get_modpath(modname)
local table = table
local DEBUG = false
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({
type = "fuel",
recipe = "mcl_hamburger:hamburger",
burntime = 2,
})
minetest.register_craft({
output = "mcl_hamburger:hamburger",
recipe = {
{ "mcl_farming:bread"},
{ cooked_meat }, -- "mcl_mobitems:cooked_beef" for a reg hamburger. Grind up clowns for a Big Mac.
{ "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 = {
description = S("A Hamburger"),
_doc_items_longdesc = S("A tasty hamburger that is sure to lure villagers around like a lead. Can be eaten."),
_doc_items_usagehelp = S("Wield this item to pull villagers to you."),
_tt_help = S("A tasty hamburger that is sure to lure villagers. 'I'll gladly pay you Tuesday, for a hamburger today.' - Wimpy."),
inventory_image = "mcl_hamburger.png",
wield_image = "mcl_hamburger.png",
on_place = minetest.item_eat(8),
on_secondary_use = minetest.item_eat(8),
groups = { food = 2, eatable = 8 },
_mcl_saturation = 13.8,
}
if not enable_burger then
hamburger_def.groups.not_in_creative_inventory = 1
end
if use_alt == false then
minetest.register_craftitem("mcl_hamburger:hamburger", hamburger_def)
else
local hamburger_alt = table.copy(hamburger_def)
hamburger_alt.inventory_image = "mcl_hamburger_alt.png"
hamburger_alt.wield_image = "mcl_hamburger_alt.png"
minetest.register_craftitem("mcl_hamburger:hamburger", hamburger_alt)
end
local function register_achievements()
awards.register_achievement("mcl_hamburger:hamburger", {
title = S("Burger Time!"),
description = S("Craft a Hamburger."),
icon = "mcl_hamburger_alt.png",
trigger = {
type = "craft",
item = "mcl_hamburger:hamburger",
target = 1
},
type = "Advancement",
group = "Overworld",
})
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
-- add it to the follow items.
table.insert(minetest.registered_entities["mobs_mc:villager"].follow,"mcl_hamburger:hamburger")
-- register the item and crafting recipe.
mcl_hamburger.register_burger_craft("mcl_mobitems:cooked_beef")
-- add in the super cool achievement(s)!
register_achievements()
register_doc_entry()
end

@ -0,0 +1,10 @@
# textdomain: mcl_hamburger
A Hamburger=Ein Hamburger
A tasty hamburger that is sure to lure villagers around like a lead. Can be eaten.=Ein leckerer Hamburger, der die Dorfbewohner sicher wie eine Leine anlocken wird. Kann gegessen werden.
A tasty hamburger that is sure to lure villagers. 'I'll gladly pay you Tuesday, for a hamburger today.' - Wimpy.=Ein leckerer Hamburger, der die Dorfbewohner anlocken wird. "Ich bezahle dir gerne den Dienstag, für heute einen Hamburger." - Wimpy.
Burger Time!=Burgerzeit!
Craft a Hamburger.=Stelle einen Hamburger her.
Wield this item to pull villagers to you.=Benutze diesen Gegenstand, um Dorfbewohner zu dir zu ziehen.

@ -0,0 +1,10 @@
# textdomain: mcl_hamburger
A Hamburger=Una hamburguesa
A tasty hamburger that is sure to lure villagers around like a lead. Can be eaten.=Una sabrosa hamburguesa que seguramente atraerá a los aldeanos como una pista. Se puede comer.
A tasty hamburger that is sure to lure villagers. 'I'll gladly pay you Tuesday, for a hamburger today.' - Wimpy.=Una sabrosa hamburguesa que seguramente atraerá a los aldeanos. 'Con gusto te pago el martes, por una hamburguesa hoy.' - Wimpy.
Burger Time!=¡Tiempo de hamburguesas!
Craft a Hamburger.=Elabora una hamburguesa.
Wield this item to pull villagers to you.=Utiliza este objeto para atraer a los aldeanos hacia ti.

@ -0,0 +1,10 @@
# textdomain: mcl_hamburger
A Hamburger=Un hamburger
A tasty hamburger that is sure to lure villagers around like a lead. Can be eaten.=Un hamburger savoureux qui ne manquera pas d'attirer les villageois comme une piste. Peut être mangé.
A tasty hamburger that is sure to lure villagers. 'I'll gladly pay you Tuesday, for a hamburger today.' - Wimpy.=Un hamburger savoureux qui ne manquera pas d'attirer les villageois. «Je vous paierai volontiers mardi, pour un hamburger aujourd'hui.» - Wimpy.
Burger Time!=L'heure des burgers!
Craft a Hamburger.=Fabriquez un hamburger.
Wield this item to pull villagers to you.=Maniez cet objet pour attirer les villageois vers vous.

@ -0,0 +1,10 @@
# textdomain: mcl_hamburger
A Hamburger=Hamburger
A tasty hamburger that is sure to lure villagers around like a lead. Can be eaten.=Smaczny hamburger, który zwabi wieśniaków jak trop. Można jeść.
A tasty hamburger that is sure to lure villagers. 'I'll gladly pay you Tuesday, for a hamburger today.' - Wimpy.=Smaczny hamburger, który z pewnością zwabi wieśniaków. - Chętnie zapłacę we wtorek za hamburgera dzisiaj. - Mięczak (Wimpy).
Burger Time!=Czas na burgery!
Craft a Hamburger.=Stwórz hamburgera.
Wield this item to pull villagers to you.=Chwyć ten przedmiot, aby przyciągnąć wieśniaków do siebie.

@ -0,0 +1,10 @@
# 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.=Используйте этот предмет, чтобы притягивать к себе жителей деревни.

@ -0,0 +1,16 @@
# 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.=使用此物品將村民拉到你身邊。

@ -0,0 +1,10 @@
# 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.=

@ -0,0 +1,5 @@
name = mcl_hamburger
author = Michieal
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

@ -0,0 +1,43 @@
Tags: Hamburger
Icon set: Fugue 16px Additional Icons
Author: Yusuke Kamiyamane
License: CC Attribution 3.0 Unported
Readme file
Commercial usage: Allowed
Posted: November 22, 2011
Icon Readme file:
Fugue Icons
(C) 2011 Yusuke Kamiyamane. All rights reserved.
These icons are licensed under a Creative Commons
Attribution 3.0 License.
<http://creativecommons.org/licenses/by/3.0/>
If you can't or don't want to provide attribution, please
purchase a royalty-free license.
<http://p.yusukekamiyamane.com/>
I'm unavailable for custom icon design work. But your
suggestions are always welcome!
<mailto:p@yusukekamiyamane.com>
------------------------------------------------------------
The images contained within have been altered to be more legible within the game and not rendered with weird
antialiasing by Michieal. All extraneous information in the images have been removed to decrease file size.
This mod is licensed under CC-BY-SA 3, with the intent of it being used by the Mineclone 2 game for Minetest.
This code was written by Michieal, with additions included by Cora.
The achievement "Burger Time!" is an homage to the classic coin-op arcade game BurgerTime, by Data East (1982) and
Bally Midway.
Information about the BurgerTime Arcade Game:
From https://thepinballgameroom.com/product/burgertime-arcade-machine/ on the original game:
BurgerTime Arcade Machine, originally released as Hamburger in Japan, is a 1982 arcade game developed by Data East
initially for its DECO Cassette System. In the United States, Data East USA licensed BurgerTime Arcade Machine for
distribution by Bally Midway as a standard dedicated arcade game. Data East also released its own version of BurgerTime
in the United States through its DECO Cassette System. The Data East and Midway versions are distinguished by the
manufacturers name on the title screen and by the marquee and cabinet artworks, as the game itself is identical.

Binary file not shown.

After

Width:  |  Height:  |  Size: 767 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 640 B

@ -225,6 +225,9 @@ mcl_enable_fapples (Enable swiftness on enchanted golden apples) bool true
# All tameable mobs listen to the "sit" righclick like dogs # All tameable mobs listen to the "sit" righclick like dogs
mcl_extended_pet_control (Extended pet control) bool true mcl_extended_pet_control (Extended pet control) bool true
# Enable hamburgers for villagers to follow
mcl_enable_hamburger (Enable Hamburger) bool true
[Debugging] [Debugging]
# If enabled, this will show the itemstring of an item in the description. # If enabled, this will show the itemstring of an item in the description.
mcl_item_id_debug (Item ID Debug) bool false mcl_item_id_debug (Item ID Debug) bool false