Added MaxHP and mob drops.
|
@ -52,6 +52,7 @@ doc.add_entry("epic_server", "maxhp", {
|
|||
data = { text = ('In an attempt to dissuade people from killing themselves in lava to make a messes on the server I wrote this mod. Every time you die you\'ll loose one of your max HP down to 25.\n\n'..
|
||||
'You can gain max HP back by consuming a variety of items, with more to be added soon.\n'..
|
||||
'Eating a chocolate block will increase your max HP by 1, up to a max of 45.\n'..
|
||||
'Eating a golden carrot will increase your max HP by 1, up to a max of 60.\n')
|
||||
'Eating a golden carrot will increase your max HP by 1, up to a max of 60.\n'..
|
||||
'Some mobs will drop potions that will increase your Max HP by 5, with different caps.\n')
|
||||
}
|
||||
})
|
||||
|
|
|
@ -56,7 +56,8 @@ mobs:register_mob('fantasy_mobs:cavefreak_fire', {
|
|||
drops = {
|
||||
{name = 'scorpion:shell', chance = 2, min = 1, max = 6},
|
||||
{name = 'epic:huntite', chance = 10, min = 0, max = 15},
|
||||
{name = 'tnt:gunpowder', chance = 3, min = 4, max = 20}
|
||||
{name = 'tnt:gunpowder', chance = 3, min = 4, max = 20},
|
||||
{name = 'maxhp:lifeforce4', chance = 20, min = 0, max = 2}
|
||||
},
|
||||
animation = {
|
||||
die_start = 140,
|
||||
|
@ -104,7 +105,8 @@ mobs:register_mob('fantasy_mobs:cavefreak_slash', {
|
|||
view_range = 8,
|
||||
drops = {
|
||||
{name = 'scorpion:shell', chance = 2, min = 1, max = 6},
|
||||
{name = 'epic:huntite', chance = 2, min = 0 , max = 1}
|
||||
{name = 'epic:huntite', chance = 2, min = 0 , max = 1},
|
||||
{name = 'maxhp:lifeforce4', chance = 20, min = 0, max = 2}
|
||||
},
|
||||
animation = {
|
||||
die_start = 140,
|
||||
|
|
|
@ -25,6 +25,8 @@ mobs:register_mob('fantasy_mobs:larva', {
|
|||
},
|
||||
drops = {
|
||||
{name = 'fantasy_mobs:larva_egg', chance = 100, min = 0, max = 1},
|
||||
{name = 'maxhp:lifeforce1', chance = 10, min = 0, max = 3},
|
||||
{name = 'maxhp:lifeforce5', chance = 150, min = 0, max = 1},
|
||||
},
|
||||
runaway_from = {'fantasy_mobs:larva_pet'},
|
||||
animation = {
|
||||
|
|
|
@ -21,7 +21,8 @@ mobs:register_mob("fantasy_mobs:lava_titan", {
|
|||
jump_height=0,
|
||||
drops = {
|
||||
{name = "bucket:bucket_lava", chance = 2, min = 1, max = 3,},
|
||||
{name = "epic:slicer", chance = 2, min = 1, max = 2},
|
||||
{name = "epic:slicer", chance = 3, min = 1, max = 2},
|
||||
{name = 'maxhp:lifeforce5', chance = 150, min = 0, max = 1},
|
||||
},
|
||||
armor = 20,
|
||||
drawtype = "front",
|
||||
|
|
|
@ -348,7 +348,7 @@ minetest.register_tool("farming:scythe", {
|
|||
minetest.set_node(pos, {name = "air"})
|
||||
end
|
||||
if not farming.is_creative(name) then
|
||||
itemstack:add_wear(65535 / 150) -- 150 uses
|
||||
itemstack:add_wear(65535 / 450)
|
||||
return itemstack
|
||||
end
|
||||
end,
|
||||
|
|
|
@ -1,10 +1,71 @@
|
|||
minetest.register_craftitem('maxhp:lifeforce', {
|
||||
minetest.register_craftitem('maxhp:lifeforce1', { --Dropped by Zombies, Nether Larva,
|
||||
_doc_items_longdesc = "Increases max HP by 5 up to 50.",
|
||||
description = 'Life Force',
|
||||
inventory_image = 'maxhp_lifeforce.png',
|
||||
description = 'Low-tier Life Force',
|
||||
inventory_image = 'maxhp_lifeforce1.png',
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
if maxhp.max_hp_change(user, 5, 50) then
|
||||
itemstack:take_item(1); return itemstack
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_craftitem('maxhp:lifeforce2', { --Dropped by Oerkki, Dungeon Master
|
||||
_doc_items_longdesc = "Increases max HP by 5 up to 65.",
|
||||
description = 'Low-tier Life Force',
|
||||
inventory_image = 'maxhp_lifeforce2.png',
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
if maxhp.max_hp_change(user, 5, 65) then
|
||||
itemstack:take_item(1); return itemstack
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_craftitem('maxhp:lifeforce3', { --Dropped by big Scorpion
|
||||
_doc_items_longdesc = "Increases max HP by 5 up to 80.",
|
||||
description = 'Mid-tier Life Force',
|
||||
inventory_image = 'maxhp_lifeforce3.png',
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
if maxhp.max_hp_change(user, 5, 80) then
|
||||
itemstack:take_item(1); return itemstack
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_craftitem('maxhp:lifeforce4', { --Cavefreaks
|
||||
_doc_items_longdesc = "Increases max HP by 5 up to 95.",
|
||||
description = 'Mid-tier Life Force',
|
||||
inventory_image = 'maxhp_lifeforce4.png',
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
if maxhp.max_hp_change(user, 5, 95) then
|
||||
itemstack:take_item(1); return itemstack
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_craftitem('maxhp:lifeforce5', { --Nether Larva, Lava Titan
|
||||
_doc_items_longdesc = "Increases max HP by 5 up to 110.",
|
||||
description = 'Mid-tier Life Force',
|
||||
inventory_image = 'maxhp_lifeforce5.png',
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
if maxhp.max_hp_change(user, 5, 110) then
|
||||
itemstack:take_item(1); return itemstack
|
||||
end
|
||||
end
|
||||
})
|
||||
|
||||
minetest.register_craftitem('maxhp:lifeforce6', { --Viron
|
||||
_doc_items_longdesc = "Increases max HP by 5 up to 125.",
|
||||
description = 'Hi-tier Life Force',
|
||||
inventory_image = 'maxhp_lifeforce6.png',
|
||||
groups = {not_in_creative_inventory = 1},
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
if maxhp.max_hp_change(user, 5, 125) then
|
||||
itemstack:take_item(1); return itemstack
|
||||
end
|
||||
end
|
||||
})
|
||||
|
|
Before Width: | Height: | Size: 628 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.2 KiB |
|
@ -45,6 +45,7 @@ mobs:register_mob("mobs_monster:dungeon_master", {
|
|||
{name = "commoditymarkget:gold_coins", chance = 10, min = 30, max = 200},
|
||||
{name = "stations:scroll_teleport", chance = 40, min = 1, max = 1},
|
||||
{name = "stations:scroll_healing", chance = 50, min = 1, max = 1},
|
||||
{name = 'maxhp:lifeforce2', chance = 9, min = 0, max = 2}
|
||||
},
|
||||
water_damage = 1,
|
||||
lava_damage = 1,
|
||||
|
|
|
@ -34,6 +34,7 @@ mobs:register_mob("mobs_monster:oerkki", {
|
|||
{name = "default:gold_lump", chance = 2, min = 0, max = 2},
|
||||
{name = 'epic:bloodstone', chance = 6, min = 1, max = 3},
|
||||
{name = "commoditymarket:gold_coins", chance = 3, min = 6, max = 94},
|
||||
{name = 'maxhp:lifeforce2', chance = 10, min = 0, max = 2}
|
||||
},
|
||||
water_damage = 2,
|
||||
lava_damage = 4,
|
||||
|
|
|
@ -29,6 +29,7 @@ mobs:register_mob('scorpion:big', {
|
|||
drops = {
|
||||
{name = 'mobs:meat_raw', chance = 1, min = 5, max = 20},
|
||||
{name = 'scorpion:shell', chance = 1, min = 5, max = 20},
|
||||
{name = 'maxhp:lifeforce3', chance = 12, min = 0, max = 2},
|
||||
},
|
||||
water_damage = 2,
|
||||
lava_damage = 60,
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
local news = {
|
||||
'7/10/20',
|
||||
'Added some new drops to mobs.',
|
||||
'',
|
||||
'7/9/20',
|
||||
'Boosted the durability of the titanium scythe.',
|
||||
'Added maxhp. You can learn more about it in the encyclopedia, or by running /helpform',
|
||||
'',
|
||||
'7/8/20',
|
||||
|
|
|
@ -6,6 +6,7 @@ local mob_drops = {
|
|||
{name = 'default:mese_crystal', chance = 6, min = 1, max = 1},
|
||||
{name = 'default:diamond', chance = 5, min = 1, max = 1},
|
||||
{name = 'default:diamond_block', chance = 20, min = 1, max = 1},
|
||||
{name = 'maxhp:lifeforce6', chance = 20, min = 1, max = 1},
|
||||
}
|
||||
|
||||
local viron_queen_drops = {
|
||||
|
@ -16,6 +17,7 @@ local viron_queen_drops = {
|
|||
{name = 'default:mese_crystal', chance = 3, min = 1, max = 5},
|
||||
{name = 'default:diamond', chance = 2, min = 1, max = 2},
|
||||
{name = 'default:diamond_block', chance = 2, min = 1, max = 3},
|
||||
{name = 'maxhp:lifeforce6', chance = 20, min = 1, max = 1},
|
||||
}
|
||||
|
||||
local viron_selection_box = {-0.3, -0.3, -0.3, 0.3, 1.5, 0.3}
|
||||
|
|
|
@ -24,6 +24,7 @@ local inventory = {
|
|||
{name = 'default:clay_lump', chance = 10, min = 1, max = 4},
|
||||
{name = 'bonemeal:bone', chance = 3, min = 0, max = 10},
|
||||
{name = 'zombies:tooth', chance = 10, min = 0, max = 3},
|
||||
{name = 'maxhp:lifeforce1', chance = 7, min = 0, max = 4},
|
||||
{name = 'commoditymarket:gold_coins', chance = 50, min = 1, max = 20},
|
||||
{name = 'epic:float_crystal_shard', chance = 100, min = 1, max = 2},
|
||||
{name = 'epic:burlap_tattered', chance = 4, min = 1, max = 3},
|
||||
|
|