From 02dd16c2bcb16638ddbd17d7687dbe8e1ab13c65 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Wed, 9 Mar 2022 17:50:27 +0000 Subject: [PATCH] add handlebar moustache helmet --- README.md | 4 ++-- blocks.lua | 16 +++++++++++++++- depends.txt | 1 + mod.conf | 2 +- textures/lucky_handlebar_helmet.png | Bin 0 -> 342 bytes textures/lucky_handlebar_helmet.png_ | Bin 0 -> 309 bytes textures/lucky_handlebar_helmet_inv.png | Bin 0 -> 170 bytes textures/lucky_handlebar_helmet_preview.png | Bin 0 -> 212 bytes 8 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 textures/lucky_handlebar_helmet.png create mode 100644 textures/lucky_handlebar_helmet.png_ create mode 100644 textures/lucky_handlebar_helmet_inv.png create mode 100644 textures/lucky_handlebar_helmet_preview.png diff --git a/README.md b/README.md index a5d8074..02ba4e0 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,6 @@ Changelog: - 1.0 - Added ability for custom lucky blocks to use their own block list - 1.1 - Spawning mobs can now select randomly from a table or single string - 1.2 - Code tidy and fixed wishing well replacements -- 1.3 - Add lightning staff as rare drop, tidy code, lightning fire check +- 1.3 - Add lightning staff as rare drop, tidy code, lightning fire check, moustache helmet -Lucky Blocks: 260 (depending on mods enabled) +Lucky Blocks: 261 (depending on mods enabled) diff --git a/blocks.lua b/blocks.lua index cac53a4..32738af 100644 --- a/blocks.lua +++ b/blocks.lua @@ -524,6 +524,19 @@ end -- 3D Armor mod if minetest.get_modpath("3d_armor") then + +armor:register_armor("lucky_block:helmet_handlebar", { + description = "Handlebar Moustache", + inventory_image = "lucky_handlebar_helmet_inv.png", + groups = { + armor_head = 1, armor_heal = 12, armor_use = 200, + physics_speed = 0.2, physics_jump = 0.2 + }, + armor_groups = {fleshy = 10}, + damage_groups = {cracky = 2, snappy = 2, choppy = 2, level = 2}, + texture = "lucky_handlebar_helmet.png" +}) + lucky_block:add_blocks({ {"dro", {"3d_armor:boots_wood"}}, {"dro", {"3d_armor:leggings_wood"}}, @@ -548,6 +561,7 @@ lucky_block:add_blocks({ {"dro", {"3d_armor:chestplate_bronze"}}, {"dro", {"3d_armor:helmet_bronze"}}, {"lig"}, + {"dro", {"3d_armor:helmet_handlebar"}} }) end @@ -559,7 +573,7 @@ lucky_block:add_blocks({ {"dro", {"shields:shield_gold"}}, {"dro", {"shields:shield_cactus"}}, {"dro", {"shields:shield_bronze"}}, - {"exp", 2}, + {"exp", 2} }) end diff --git a/depends.txt b/depends.txt index a853965..0f57d40 100644 --- a/depends.txt +++ b/depends.txt @@ -2,3 +2,4 @@ default tnt? screwdriver? intllib? +3d_armor? diff --git a/mod.conf b/mod.conf index f0424c3..9fb7532 100644 --- a/mod.conf +++ b/mod.conf @@ -1,4 +1,4 @@ name = lucky_block depends = default -optional_depends = tnt, screwdriver, intllib +optional_depends = tnt, screwdriver, intllib, 3d_armor description = Adds lucky blocks into the game which may give good, bad, hurtful items when open :) diff --git a/textures/lucky_handlebar_helmet.png b/textures/lucky_handlebar_helmet.png new file mode 100644 index 0000000000000000000000000000000000000000..82a88345b37cfac717be284a8efe694fefc215e3 GIT binary patch literal 342 zcmeAS@N?(olHy`uVBq!ia0y~yU;;838JL)X)Q*2@Uw{;6fKP}kNR)-4p`oE`;~YN_ zrzFTPn8D%MjWi(Vx2KC^NX4zU*Y@TfHV|M7Xo}s^&Q(2Mxg|ui*C#QB{i|NCpQKjT z!(+Y-%{rgr76&i&|Fd@rP$L{vY>heZf2xnKuqvo*i(6$-*__6UjQ5ltl|L)i*1yYq zCQzO+Z{rvKfKSQ?uHUjhu*^?0?^9 zt^ED}{H?yG+uMZOzAy{Qf8Qt}_&{J|dD6~f6Z$l+SLwf=Fi!yPTqxr~|31dJIRB~5 RiV|KRAx~F7mvv4FO#nh&gD?O9 literal 0 HcmV?d00001 diff --git a/textures/lucky_handlebar_helmet.png_ b/textures/lucky_handlebar_helmet.png_ new file mode 100644 index 0000000000000000000000000000000000000000..f491458209d4195699a0cb823d08998dc26ee24d GIT binary patch literal 309 zcmeAS@N?(olHy`uVBq!ia0y~yU;;838CaNsl=;5PAwY^hz$e5NNJ9W43xiyJJ%70< z8<5Xf666=m;PC858jy3v)5S5Q;?~>ij$F+SJggTQV?0j$eIF)rFwjYJ$EzoMV>kbf z=Y1&wH3x$_;63x_=aP$mT(4EFY6$)O{M!sS%hlTd#KTM)T4f6kKmTYGFbZK?N9Qprmbv#&2G!)Klsnk|DAK35wqHFGTH5fCeqSzdwR0t|r<$L&_?8c*44^4{HI BU%~(Y literal 0 HcmV?d00001 diff --git a/textures/lucky_handlebar_helmet_inv.png b/textures/lucky_handlebar_helmet_inv.png new file mode 100644 index 0000000000000000000000000000000000000000..d38b436ae4f81eb33114d451dac3bc73a266fe5c GIT binary patch literal 170 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnH3?%tPCZz)@o&cW^R|X~q7Ir3XKCY?Lr>Gu| zFawH5db&7~>8OpWg7ix$nU9pPA>4L+P3S z|K%Bk+$CgoH1=>ioH_7!{>+C=%*^%^PM-TPl`-Q&Xj=ta$4$O1CB{9B3=^N;UzgW? RLIh|DgQu&X%Q~loCIEVBHUaastlO` zq7A-(+fY2gRlK=N;BV-Pn@Kf~xV6G`3iKLOPJ3>MzqnoRwCig>$M6RtmUo=&Iaq6L zW>vIu+?BhvCcpKd*Ewr#gZc8NmG-Ts*MGAqfxx2oca=KX@~wV)eF56d;OXk;vd$@? F2>{T1MxOux literal 0 HcmV?d00001