From a599f6636056e090bae2abcf06389b8003817359 Mon Sep 17 00:00:00 2001 From: cora Date: Sun, 9 Oct 2022 17:37:01 +0200 Subject: [PATCH] move ink sac to mcl_mobitems --- mods/ENTITIES/mobs_mc/glow_squid.lua | 12 +----------- mods/ITEMS/mcl_mobitems/init.lua | 9 +++++++++ .../textures/extra_mobs_glow_ink_sac.png | Bin 0 -> 407 bytes 3 files changed, 10 insertions(+), 11 deletions(-) create mode 100644 mods/ITEMS/mcl_mobitems/textures/extra_mobs_glow_ink_sac.png diff --git a/mods/ENTITIES/mobs_mc/glow_squid.lua b/mods/ENTITIES/mobs_mc/glow_squid.lua index 37bf72eab9..22faaec169 100644 --- a/mods/ENTITIES/mobs_mc/glow_squid.lua +++ b/mods/ENTITIES/mobs_mc/glow_squid.lua @@ -240,14 +240,4 @@ mcl_mobs:spawn_specific( water) -- spawn egg -mcl_mobs:register_egg("mobs_mc:glow_squid", S("Glow Squid"), "#0000FF", "#ffffff", 1) - --- dropped item (used to craft glowing itemframe) - -minetest.register_craftitem("mobs_mc:glow_ink_sac", { - description = S("Glow Ink Sac"), - _doc_items_longdesc = S("Use it to craft the Glow Item Frame."), - _doc_items_usagehelp = S("Use the Glow Ink Sac and the normal Item Frame to craft the Glow Item Frame."), - inventory_image = "extra_mobs_glow_ink_sac.png", - groups = { craftitem = 1 }, -}) +mcl_mobs:register_egg("mobs_mc:glow_squid", S("Glow Squid"), "#0000FF", "#ffffff", 0) diff --git a/mods/ITEMS/mcl_mobitems/init.lua b/mods/ITEMS/mcl_mobitems/init.lua index d5b43058e3..a5c2a42147 100644 --- a/mods/ITEMS/mcl_mobitems/init.lua +++ b/mods/ITEMS/mcl_mobitems/init.lua @@ -390,6 +390,15 @@ minetest.register_alias("mobs_mc:iron_horse_armor", "mcl_mobitems:iron_horse_arm minetest.register_alias("mobs_mc:gold_horse_armor", "mcl_mobitems:gold_horse_armor") minetest.register_alias("mobs_mc:diamond_horse_armor", "mcl_mobitems:diamond_horse_armor") +minetest.register_craftitem("mcl_mobitems:glow_ink_sac", { + description = S("Glow Ink Sac"), + _doc_items_longdesc = S("Use it to craft the Glow Item Frame."), + _doc_items_usagehelp = S("Use the Glow Ink Sac and the normal Item Frame to craft the Glow Item Frame."), + inventory_image = "extra_mobs_glow_ink_sac.png", + groups = { craftitem = 1 }, +}) + + ----------- -- Crafting ----------- diff --git a/mods/ITEMS/mcl_mobitems/textures/extra_mobs_glow_ink_sac.png b/mods/ITEMS/mcl_mobitems/textures/extra_mobs_glow_ink_sac.png new file mode 100644 index 0000000000000000000000000000000000000000..6628e6abb1b239b3ca6c325b131baadbec05f1b6 GIT binary patch literal 407 zcmV;I0cie-P)Px$QAtEWR5*?8kvmHRK@>*MiZ2qgV6lRdI00>puQC!FQ6fI7XiBw>SXx-w+50D~ z)hb{kY9R<}p@G