From df62a3aac188e48e998ceea72e487f6998386ffd Mon Sep 17 00:00:00 2001 From: Michieal Date: Sun, 13 Nov 2022 00:07:28 +0000 Subject: [PATCH] Initial code comit --- mods/ITEMS/hamburger.png | Bin 0 -> 1804 bytes mods/ITEMS/hamburger_alt.png | Bin 0 -> 4885 bytes mods/ITEMS/init.lua | 85 +++++++++++++++++++++++++++++++++++ mods/ITEMS/mod.conf | 4 ++ mods/ITEMS/readme.txt | 36 +++++++++++++++ 5 files changed, 125 insertions(+) create mode 100644 mods/ITEMS/hamburger.png create mode 100644 mods/ITEMS/hamburger_alt.png create mode 100644 mods/ITEMS/init.lua create mode 100644 mods/ITEMS/mod.conf create mode 100644 mods/ITEMS/readme.txt diff --git a/mods/ITEMS/hamburger.png b/mods/ITEMS/hamburger.png new file mode 100644 index 0000000000000000000000000000000000000000..e69df027c6ab703726d8122c58ee2614d1681bb1 GIT binary patch literal 1804 zcmaJ?c~BEq99}FURghY5q_|zE9giHFCD%fLB%1(A7#gAk1$C2MV1eBYn?(Y&NU23d zQ7h_DtSz=`y(y?19v~joR7D-BB3f^YH??@sYM~Pf>K`57%$s@hd*Ao{-uHXIH*axl zOoaDf-@yO?ct=HIMgRcbb4^bV0072!_TT^jjOBG^K8{W1vvH0D)C6lG!6+I}A&n$X zo<0j?1e=CI+`bdm=xWD3QoppJcw5J(X!C|+t1 z8*ExKm5R*e$hh1XlQlQpswAMWP%y-SI%peB@;K>E%h7{U?B zs1eim<>H8B6_m>JHdG|a&dwHQBSMx-5y48O(xoAh2sk2HV9#NA+#z7>0sRUXX}5Be zji*=!bSdH%Hj7t5P`?G*W~5S5dHXAI#@<&fD@%(UxJ?8L#Uid3?DK#ca4wxBRFEFeu#>$T1_O$* z)-0N2_$W*TIcS@Zpa@hfmn&piF``7IIvCc8m1-DKC@`5+hv_5|ow}bJ#n^eAv6B5< z>NQvLRxYaLNStRm6U%1wH$!YH%d_@W)&^?h5HOx%2sYd9x~JZ9q8Q0h^GHI^u{79Q zGL(8FdsY@jplU6wm*^A-A_-DsdKgx#H43d1QHn8zR3p_OP#=+a!*VZCtHh8XrA!v2 zMzk0P!y2(dti$sh_4^?iLIrV9SZKjF z-YWp$9c2`zHaXgsmR@3qM~wKnF{!e$%3Arbb-OnlIB~_9z>%4Uj;3wgs#$bq^QmcW z(<42nhk)H~-GvQ*9t`l=Vf250i`yQfyZgI~7cB8C3E${8Q69ZJ=E0`>nWAa|x%KJA(J6B$pwFX$9gppdG*Vv^swcSp<9&*cP$sP>gBO`NfagYC0Fu)m zEHU--uNy93-wAps2h1rU^CHmPBINTL^O3`uZkJlt@41(@Z3Z*7qkEEbW!KWOmyuq@ z!j$r%V~U*BR}Svk`PI1y=B!o%^OfSyy-v@?!t6$|1t& zM+INp3_er3mTA7#Xm2;1!va_RVJxan{DC?%yTu&5ePDfE;{>*;I=a^PVbh=;&Hs26 zc{K=1=FOQIka&u=l-8|ybUJkZ{QIrWv%9)?&;BAUX#LpYbYj-1xoy{udpa}=JT1?f zSV2NnijyfgF@IFRcel%GYe#kcc`C~Of z&OFDx<1Za^_Bk`X6!oM<=)2d9wwCOO9vZhiU(?l`=RU&QYYQ{%?yb=$BRxlk4SIOo zZF{Y6T@TZFqy6dmtYxwrKV3HYKPIRAXpHsP`=RH6mCg-$2W4`3RZUHiW_>~Jk|nVt z2L75ha^Wdp6_uclG28p)2nYgP?@O`MHB`UjL^|k?*Fxp49bik9)gi-EnjA zQ^zBxzCO?pyd37U#0*_t4_Xt&XlA v7hE7>zHeXHbgW`YY1jNJgW>Ms#sOZya?`HbX{rgsT>n#)E(Y7FnOpcTo+i%q literal 0 HcmV?d00001 diff --git a/mods/ITEMS/hamburger_alt.png b/mods/ITEMS/hamburger_alt.png new file mode 100644 index 0000000000000000000000000000000000000000..1ba0a04b7cefca6c24c87bfab9a1d9523223e739 GIT binary patch literal 4885 zcmV+w6YA`VP)Z8?@hr2rLp)EM-f}F#d&EPm zBo~NJh+~`%NPH`F#p5@@MUTG(^IUcj@Qa>Ov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RqtPcCuw!qLk~K5pwMK@#C}&8#WOB5n6F^v1k!a+s>M4cQ3nb z^n&CjOv}5D;~B;+`w@Muul2RQ*4O%4U+Zgqt*`a9-fw>cMV_?5=5cvN00000NkvXX Hu0mjf7wvz! literal 0 HcmV?d00001 diff --git a/mods/ITEMS/init.lua b/mods/ITEMS/init.lua new file mode 100644 index 000000000..50d9e2fcc --- /dev/null +++ b/mods/ITEMS/init.lua @@ -0,0 +1,85 @@ +--- +--- Generated by EmmyLua(https://github.com/EmmyLua) +--- Created by michieal. +--- DateTime: 10/23/22 4:50 AM +--- +-- LOCALIZATION +local S = minetest.get_translator("hamburger_mod") + +local modname = minetest.get_current_modname() +local modpath = minetest.get_modpath(modname) + +local table = table +local DEBUG = false +hamburger_mod = {} + +-- quick api for hamburgers. call to register your hamburger. +function hamburger_mod.register_burger_craft( hamburger_item, cooked_meat, use_alt) + + if use_alt == nil or use_alt == "" then + use_alt = false + end + + minetest.register_craft({ + type = "fuel", + recipe = "hamburger_mod:hamburger" .. hamburger_item, + burntime = 2, + }) + + -- register crafts (actual recipe) + if minetest.get_modpath(modname) then + + local itemstring = "hamburger_mod:hamburger" + + minetest.register_craft({ + output = itemstring .. hamburger_item, + recipe = { + { "mcl_farming:bread"}, + { cooked_meat }, -- "mcl_mobitems:cooked_beef" for a reg hamburger. grind up clowns for a McDonald's hambeurger + { "mcl_farming:bread" }, + }, + }) + end + + if use_alt == false then + minetest.register_craftitem("hamburger_mod:hamburger" .. hamburger_item, { + description = S("Hamburger"), + _doc_items_longdesc = S("A tasty hamburger that is sure to lure villagers around like a LEASH. 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"), + inventory_image = "hamburger.png", + wield_image = "hamburger.png", + on_place = minetest.item_eat(8), + on_secondary_use = minetest.item_eat(8), + groups = { food = 2, eatable = 8 }, + _mcl_saturation = 12.8, + stack_max = 64, + }) + else + minetest.register_craftitem("hamburger_mod:hamburger" .. hamburger_item, { + description = S("Hamburger"), + _doc_items_longdesc = S("A tasty hamburger that is sure to lure villagers around like a LEASH. 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"), + inventory_image = "hamburger_alt.png", + wield_image = "hamburger_alt.png", + on_place = minetest.item_eat(8), + on_secondary_use = minetest.item_eat(8), + groups = { food = 2, eatable = 8 }, + _mcl_saturation = 12.8, + stack_max = 64, + }) + end + + +end + +-- make the villagers follow the hamburger item +minetest.registered_entities["mobs_mc:villager"].nofollow = nil + +hamburger_mod.register_burger_craft( "", "mcl_mobitems:cooked_beef") +table.insert(minetest.registered_entities["mobs_mc:villager"].follow,"hamburger_mod:hamburger") + +if DEBUG then + minetest.log (dump(minetest.registered_entities["mobs_mc:villager"].follow)) +end \ No newline at end of file diff --git a/mods/ITEMS/mod.conf b/mods/ITEMS/mod.conf new file mode 100644 index 000000000..8eb71d200 --- /dev/null +++ b/mods/ITEMS/mod.conf @@ -0,0 +1,4 @@ +name = hamburger_mod +description = A cute (and easy to use) replacement for not having leashes in MC2 +depends = mcl_core, mcl_sounds, mobs_mc, mcl_mobitems +optional_depends = doc diff --git a/mods/ITEMS/readme.txt b/mods/ITEMS/readme.txt new file mode 100644 index 000000000..6ab18ef56 --- /dev/null +++ b/mods/ITEMS/readme.txt @@ -0,0 +1,36 @@ +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. + + +If you can't or don't want to provide attribution, please +purchase a royalty-free license. + + +I'm unavailable for custom icon design work. But your +suggestions are always welcome! + + +------------------------------------------------------------ + + +Note: there's an alt image that is licensed as "Only for personal use" as it is the original BurgerTime arcade game's +burger image. And it is copyright Data East, 1982 and Bally Midway. + +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 +manufacturer’s name on the title screen and by the marquee and cabinet artworks, as the game itself is identical.