Tweaked lavacooling

master
NathanSalapat 2020-07-21 08:19:32 -05:00
parent 58c718a372
commit 866e0312c9
7 changed files with 59 additions and 9 deletions

View File

@ -138,7 +138,16 @@ default.cool_lava = function(pos, node)
if node.name == "default:lava_source" then
minetest.set_node(pos, {name = "default:obsidian"})
else -- Lava flowing
minetest.set_node(pos, {name = "default:stone"})
local chance = math.random(7)
if chance == 1 then
minetest.set_node(pos, {name = "nether:basalt"})
elseif chance == 2 then
minetest.set_node(pos, {name = "nether:lava_crust"})
elseif chance == 3 or chance == 4 then
minetest.set_node(pos, {name = "darkage:basalt"})
else
minetest.set_node(pos, {name = "default:stone"})
end
end
minetest.sound_play("default_cool_lava",
{pos = pos, max_hear_distance = 16, gain = 0.25}, true)

View File

@ -37,6 +37,8 @@ dungeon_loot.registered_loot = {
{name = "stations:scroll_chitin", chance = 0.6},
{name = "stations:scroll_sulfur_dust", chance = 0.6},
{name = "stations:scroll_poison", chance = 0.2},
{name = "stations:scroll_lifeforce_potion", chance = 0.01},
{name = "stations:scroll_lifeforce_potion2", chance = 0.09},
--illuminati
{name = "illuminati:core_off", chance = 0.1},

View File

@ -1,6 +1,6 @@
minetest.register_craftitem('maxhp:lifeforce1', { --Dropped by Zombies, Nether Larva,
_doc_items_longdesc = "Increases max HP by 5 up to 50.",
description = 'Low-tier Life Force',
description = 'Low-tier Life Force\n+5, Max 50',
inventory_image = 'maxhp_lifeforce1.png',
groups = {not_in_creative_inventory = 1},
on_use = function(itemstack, user, pointed_thing)
@ -12,7 +12,7 @@ minetest.register_craftitem('maxhp:lifeforce1', { --Dropped by Zombies, Nether L
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',
description = 'Low-tier Life Force\n+5, Max 65',
inventory_image = 'maxhp_lifeforce2.png',
groups = {not_in_creative_inventory = 1},
on_use = function(itemstack, user, pointed_thing)
@ -24,7 +24,7 @@ minetest.register_craftitem('maxhp:lifeforce2', { --Dropped by Oerkki, Dungeon M
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',
description = 'Mid-tier Life Force\n+5, Max 80',
inventory_image = 'maxhp_lifeforce3.png',
groups = {not_in_creative_inventory = 1},
on_use = function(itemstack, user, pointed_thing)
@ -36,7 +36,7 @@ minetest.register_craftitem('maxhp:lifeforce3', { --Dropped by big Scorpion
minetest.register_craftitem('maxhp:lifeforce4', { --Cavefreaks
_doc_items_longdesc = "Increases max HP by 5 up to 95.",
description = 'Mid-tier Life Force',
description = 'Mid-tier Life Force\n+5, Max 95',
inventory_image = 'maxhp_lifeforce4.png',
groups = {not_in_creative_inventory = 1},
on_use = function(itemstack, user, pointed_thing)
@ -48,7 +48,7 @@ minetest.register_craftitem('maxhp:lifeforce4', { --Cavefreaks
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',
description = 'Mid-tier Life Force\n+5, Max 110',
inventory_image = 'maxhp_lifeforce5.png',
groups = {not_in_creative_inventory = 1},
on_use = function(itemstack, user, pointed_thing)
@ -60,7 +60,7 @@ minetest.register_craftitem('maxhp:lifeforce5', { --Nether Larva, Lava Titan
minetest.register_craftitem('maxhp:lifeforce6', { --Viron
_doc_items_longdesc = "Increases max HP by 5 up to 125.",
description = 'Hi-tier Life Force',
description = 'Hi-tier Life Force\n+5, Max 125',
inventory_image = 'maxhp_lifeforce6.png',
groups = {not_in_creative_inventory = 1},
on_use = function(itemstack, user, pointed_thing)

View File

@ -1,5 +1,6 @@
local news = {
'7/20/20',
'Cooling lava now has a few options of what node will place.',
'Cleaned up the hangglider mod.',
'Fixed orange tree spawning.',
'',

View File

@ -87,3 +87,11 @@ stations.dual_register_recipe('mortar', {
},
output = 'farming:cornstarch',
})
stations.dual_register_recipe('mortar', {
input = {
['nyancat:nyancat_rainbow'] = 1,
['vessels:glass_bottle'] = 1,
},
output = 'maxhp:lifeforce2',
})

View File

@ -124,6 +124,32 @@ local scroll_coffee_grounds = --gnomes,
'item_image_button[4,1.5;1,1;stations:mortar;mortar;]'..
'item_image_button[4,4;1,1;stations:coffee_grounds 4;output;]'
local scroll_lifeforce_potion1 = --dungeon loot
'size[6,6]'..
'no_prepend[]'..
'bgcolor[#080808BB;true]'..
'background[0,0;6,6;stations_scroll_bg.png]'..
'hypertext[0,.2;6.5,1;;<center><style color=black size=32>~~ Lifeforce Potion ~~</style></center>]'..
'hypertext[0.75,.75;5,1;;<left><style color=black size=20>Used to create lifeforce potions.</style></left>]'..
'item_image_button[1,1.5;1,1;vessels:glass_bottle;1;]'..
'item_image_button[1,2.5;1,1;caverealms:fungus;2;]'..
'item_image_button[1,3.5;1,1;default:mese_crystal_fragment;3;]'..
'item_image_button[1,4.5;1,1;epic:healing_powder;4;]'..
'item_image_button[4,1.5;1,1;stations:mortar;mortar;]'..
'item_image_button[4,4;1,1;maxhp:lifeforce2;output;]'
local scroll_lifeforce_potion2 = --dungeon loot
'size[6,6]'..
'no_prepend[]'..
'bgcolor[#080808BB;true]'..
'background[0,0;6,6;stations_scroll_bg.png]'..
'hypertext[0,.2;6.5,1;;<center><style color=black size=32>~~ Lifeforce Potion ~~</style></center>]'..
'hypertext[0.75,.75;5,1;;<left><style color=black size=20>Used to create lifeforce potions.</style></left>]'..
'item_image_button[1,1.5;1,1;vessels:glass_bottle;1;]'..
'item_image_button[1,2.5;1,1;nyancat:nyancat_rainbow;2;]'..
'item_image_button[4,1.5;1,1;stations:mortar;mortar;]'..
'item_image_button[4,4;1,1;maxhp:lifeforce2;output;]'
local all_scrolls = {
{'teleport', 'Teleport powder', scroll_teleport},
{'healing', 'Healing powder', scroll_healing},
@ -135,6 +161,8 @@ local all_scrolls = {
{'gunpowder', 'Gunpowder', scroll_gunpowder},
{'poison', 'Poison', scroll_poison},
{'coffee_grounds', 'Coffee Grounds', scroll_coffee_grounds},
{'lifeforce_potion', 'Lifeforce Potion', scroll_lifeforce_potion1},
{'lifeforce_potion2', 'Lifeforce Potion', scroll_lifeforce_potion2},
}
for i in ipairs (all_scrolls) do

View File

@ -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 = 'stations:scroll_lifeforce_potion', chance = 15, min = 0, max = 1},
{name = 'maxhp:lifeforce6', chance = 20, min = 1, max = 1},
}
@ -17,6 +18,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 = 'stations:scroll_lifeforce_potion', chance = 5, min = 0, max = 1},
{name = 'maxhp:lifeforce6', chance = 20, min = 1, max = 1},
}
@ -25,7 +27,7 @@ local viron_visual_size = {x = 1, y = 1}
mobs:register_mob('viron:viron_mob', {
type = 'monster',
hp_min = 35,
hp_min = 25,
hp_max = 80,
armor = 75,
passive = false,
@ -148,7 +150,7 @@ mobs:register_mob('viron:viron_queen', {
},
pushable = true,
view_range = 15,
damage = 90,
damage = 10,
damage_chance = 250,
knock_back = true,
fear_height = 20,