From 443ddf136885109f52d53220104e6321f3c51932 Mon Sep 17 00:00:00 2001 From: oilboi <47129783+oilboi@users.noreply.github.com> Date: Thu, 28 May 2020 15:20:04 -0400 Subject: [PATCH] Snowmen now drop a carrot, coal, stick, or snowball --- README.md | 2 ++ mods/mob/init.lua | 2 +- mods/mob/items.lua | 7 +++++++ mods/mob/textures/attributes.txt | 3 ++- mods/mob/textures/carrot.png | Bin 0 -> 201 bytes 5 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 mods/mob/textures/carrot.png diff --git a/README.md b/README.md index 74e926e..7a43407 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,8 @@ enable_mod_channels = true - Fixed wrong variable for durability assigned to all swords - Fix bug in experience - Fully implemented bows and arrows +- Tuned the bow and arrows even further +- Snowmen now drop a carrot, coal, stick, or snowball --- diff --git a/mods/mob/init.lua b/mods/mob/init.lua index abcc7fe..9f75b75 100644 --- a/mods/mob/init.lua +++ b/mods/mob/init.lua @@ -179,7 +179,7 @@ mobs.register_mob( state = 0, view_distance = 15, - item_drop = "weather:snowball", + item_drop = {"weather:snowball","main:coal","mob:carrot","main:stick"}, standing_frame = {x=0,y=0}, moving_frame = {x=0,y=0}, animation_multiplier = 10, diff --git a/mods/mob/items.lua b/mods/mob/items.lua index 7ad1adf..49a83f9 100644 --- a/mods/mob/items.lua +++ b/mods/mob/items.lua @@ -22,6 +22,13 @@ minetest.register_food("mob:egg",{ hunger=2, }) +minetest.register_food("mob:carrot",{ + description = "Carrot", + texture = "carrot.png", + satiation=2, + hunger=2, +}) + minetest.register_craftitem("mob:slimeball", { description = "Slimeball", inventory_image = "slimeball.png", diff --git a/mods/mob/textures/attributes.txt b/mods/mob/textures/attributes.txt index 03aa87b..d123121 100644 --- a/mods/mob/textures/attributes.txt +++ b/mods/mob/textures/attributes.txt @@ -2,4 +2,5 @@ mob skins - 22i https://github.com/22i gunpowder, porkchop - https://github.com/minetest-texture-packs/Pixel-Perfection string, slimeball - oil_boi egg - Mineclone -feather - Mineclone \ No newline at end of file +feather - Mineclone +carrot - Mineclone \ No newline at end of file diff --git a/mods/mob/textures/carrot.png b/mods/mob/textures/carrot.png new file mode 100644 index 0000000000000000000000000000000000000000..7c916fce4ac5a8592351706250bf2e843a618d93 GIT binary patch literal 201 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!73?$#)eFPFv5AX?b{r~^JQn+knjhjJ~j(36W z)*OeGzLpm!MNPNX)%Q_8QSW_sdFF;#t3_9w{s6Twl?3?(Gcc4*K5GHw`FpxJhEy;n zCkU`GvMC58Bm@OC8O)eFM}db;m6@a2^rqw?j{X@uiEHeRF{Et>o7-TpW1E_TWVVz- uPr(8qgXB=ADU4GZ4H}FD3K|$$85oXr^NCHp^g|hFG=rzBpUXO@geCw|iaqN9 literal 0 HcmV?d00001 -- 2.44.0