Added a few mobitems

* one droppable from strays
* the rest will get their mobs in a later update
* added alternative ways to get the items
* added recipes for potions that use these items
This commit is contained in:
the-real-herowl 2024-05-02 04:09:39 +02:00
parent 496360a1c4
commit 018814c362
10 changed files with 57 additions and 6 deletions

View File

@ -153,13 +153,20 @@ table.insert(stray.drops, {
local chance = 0.5 local chance = 0.5
for i = 1, lvl do for i = 1, lvl do
if chance > 1 then if chance > 1 then
return 1 return 1 -- TODO verify this logic, I think this is not how chance works
end end
chance = chance + (1 - chance) / 2 chance = chance + (1 - chance) / 2
end end
return chance return chance
end, end,
}) })
table.insert(stray.drops, {
name = "mcl_mobitems:shiny_ice_crystal",
chance = 3,
min = 1,
max = 2,
looting = "rare",
})
mcl_mobs.register_mob("mobs_mc:stray", stray) mcl_mobs.register_mob("mobs_mc:stray", stray)

View File

@ -608,6 +608,8 @@ local professions = {
{ {
{ { "mcl_nether:nether_wart_item", 22, 22 }, E1 }, { { "mcl_nether:nether_wart_item", 22, 22 }, E1 },
{ { "mcl_core:emerald", 3, 3 }, { "mcl_experience:bottle", 1, 1 } }, { { "mcl_core:emerald", 3, 3 }, { "mcl_experience:bottle", 1, 1 } },
{ { "mcl_core:emerald", 15, 15 }, { "mcl_mobitems:aery_charge", 1, 1 } }, -- TODO reconsider
{ { "mcl_core:emerald", 15, 15 }, { "mcl_mobitems:earthen_ash", 1, 1 } }, -- TODO reconsider
}, },
}, },
}, },

View File

@ -114,6 +114,8 @@ local fish = function(itemstack, player, pointed_thing)
{ itemstring = "mcl_mobitems:saddle", }, { itemstring = "mcl_mobitems:saddle", },
{ itemstring = "mcl_flowers:waterlily", }, { itemstring = "mcl_flowers:waterlily", },
{ itemstring = "mcl_mobitems:nautilus_shell", }, { itemstring = "mcl_mobitems:nautilus_shell", },
{ itemstring = "mcl_mobitems:spectre_membrane", },
{ itemstring = "mcl_mobitems:crystalline_drop", },
}, },
stacks_min = 1, stacks_min = 1,
stacks_max = 1, stacks_max = 1,

View File

@ -231,6 +231,46 @@ minetest.register_craftitem("mcl_mobitems:string",{
groups = { craftitem = 1 }, groups = { craftitem = 1 },
}) })
minetest.register_craftitem("mcl_mobitems:spectre_membrane",{
description = S("Spectre Membrane"),
_doc_items_longdesc = S("This is a crafting component dropped from dead spectres."),
inventory_image = "vl_mobitems_spectre_membrane.png",
groups = { craftitem = 1, brewitem = 1 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:shiny_ice_crystal",{
description = S("Shiny Ice Crystal"),
_doc_items_longdesc = S("This item is mainly used for crafting."),
inventory_image = "vl_mobitems_ice_crystal.png",
groups = { craftitem = 1, brewitem = 1 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:aery_charge",{
description = S("Aery Charge"),
_doc_items_longdesc = S("This item is mainly used for crafting."), -- TODO shoot?
inventory_image = "vl_mobitems_aery_charge.png",
groups = { craftitem = 1, brewitem = 1 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:crystalline_drop",{
description = S("Crystalline Drop"),
_doc_items_longdesc = S("This item is mainly used for crafting."), -- TODO other uses?
inventory_image = "vl_mobitems_crystalline_drop.png",
groups = { craftitem = 1, brewitem = 1 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:earthen_ash",{
description = S("Earthen Ash"),
_doc_items_longdesc = S("This item is mainly used for crafting."), -- TODO other uses?
inventory_image = "vl_mobitems_earthen_ash.png",
groups = { craftitem = 1, brewitem = 1 },
stack_max = 64,
})
minetest.register_craftitem("mcl_mobitems:blaze_rod", { minetest.register_craftitem("mcl_mobitems:blaze_rod", {
description = S("Blaze Rod"), description = S("Blaze Rod"),
_doc_items_longdesc = S("This is a crafting component dropped from dead blazes."), _doc_items_longdesc = S("This is a crafting component dropped from dead blazes."),

View File

@ -401,14 +401,14 @@ local awkward_table = {
["mcl_flowers:fourleaf_clover"] = "mcl_potions:luck", ["mcl_flowers:fourleaf_clover"] = "mcl_potions:luck",
["mcl_farming:potato_item_poison"] = "mcl_potions:nausea", ["mcl_farming:potato_item_poison"] = "mcl_potions:nausea",
["mcl_mobitems:phantom_membrane"] = "mcl_potions:slow_falling", -- TODO add phantom membranes ["mcl_mobitems:spectre_membrane"] = "mcl_potions:slow_falling",
["mcl_core:apple_gold"] = "mcl_potions:resistance", ["mcl_core:apple_gold"] = "mcl_potions:resistance",
["mcl_mobitems:aery_charge"] = "mcl_potions:haste",
["mcl_mobitems:crystalline_drop"] = "mcl_potions:absorption",
["mcl_mobitems:earthen_ash"] = "mcl_potions:stone_cloak",
["mcl_mobitems:shiny_ice_crystal"] = "mcl_potions:frost",
-- TODO darkness - sculk? -- TODO darkness - sculk?
-- TODO absorption - water element?
-- TODO turtle master - earth element?
-- TODO frost - frost element?
-- TODO haste - air element?
} }
-- API -- API
-- register a potion recipe brewed from awkward potion -- register a potion recipe brewed from awkward potion

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 341 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 167 B