forked from VoxeLibre/VoxeLibre
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:
parent
496360a1c4
commit
018814c362
|
@ -153,13 +153,20 @@ table.insert(stray.drops, {
|
|||
local chance = 0.5
|
||||
for i = 1, lvl do
|
||||
if chance > 1 then
|
||||
return 1
|
||||
return 1 -- TODO verify this logic, I think this is not how chance works
|
||||
end
|
||||
chance = chance + (1 - chance) / 2
|
||||
end
|
||||
return chance
|
||||
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)
|
||||
|
||||
|
|
|
@ -608,6 +608,8 @@ local professions = {
|
|||
{
|
||||
{ { "mcl_nether:nether_wart_item", 22, 22 }, E1 },
|
||||
{ { "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
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -114,6 +114,8 @@ local fish = function(itemstack, player, pointed_thing)
|
|||
{ itemstring = "mcl_mobitems:saddle", },
|
||||
{ itemstring = "mcl_flowers:waterlily", },
|
||||
{ itemstring = "mcl_mobitems:nautilus_shell", },
|
||||
{ itemstring = "mcl_mobitems:spectre_membrane", },
|
||||
{ itemstring = "mcl_mobitems:crystalline_drop", },
|
||||
},
|
||||
stacks_min = 1,
|
||||
stacks_max = 1,
|
||||
|
|
|
@ -231,6 +231,46 @@ minetest.register_craftitem("mcl_mobitems:string",{
|
|||
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", {
|
||||
description = S("Blaze Rod"),
|
||||
_doc_items_longdesc = S("This is a crafting component dropped from dead blazes."),
|
||||
|
|
|
@ -401,14 +401,14 @@ local awkward_table = {
|
|||
|
||||
["mcl_flowers:fourleaf_clover"] = "mcl_potions:luck",
|
||||
["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_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 absorption - water element?
|
||||
-- TODO turtle master - earth element?
|
||||
-- TODO frost - frost element?
|
||||
-- TODO haste - air element?
|
||||
}
|
||||
-- API
|
||||
-- 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 |
Loading…
Reference in New Issue