forked from Minetest/dripstone
Make lava trickle down slower
parent
c8c11d6539
commit
05f093b0ce
45
init.lua
45
init.lua
|
@ -43,7 +43,8 @@ end
|
||||||
-- Constants
|
-- Constants
|
||||||
local speed_factor = 30
|
local speed_factor = 30
|
||||||
local seconds_per_growth = 10 * speed_factor
|
local seconds_per_growth = 10 * speed_factor
|
||||||
local seconds_per_trickle = 1 * speed_factor
|
local seconds_per_water_trickle = 1 * speed_factor
|
||||||
|
local seconds_per_lava_trickle = 6 * speed_factor
|
||||||
local samples_per_interval = 10
|
local samples_per_interval = 10
|
||||||
|
|
||||||
-- Namespaced node names
|
-- Namespaced node names
|
||||||
|
@ -612,32 +613,32 @@ end
|
||||||
|
|
||||||
-- ABSORB LIQUIDS
|
-- ABSORB LIQUIDS
|
||||||
|
|
||||||
make_abm(dry_dripstone_block, seconds_per_trickle, absorb_liquid)
|
make_abm(dry_dripstone_block, seconds_per_water_trickle, absorb_liquid)
|
||||||
make_abm(molten_dripstone_block, seconds_per_trickle, harden(function ()
|
make_abm(molten_dripstone_block, seconds_per_lava_trickle, harden(function ()
|
||||||
return noordstar_dripstone.water_nodes
|
return noordstar_dripstone.water_nodes
|
||||||
end))
|
end))
|
||||||
make_abm(watered_dripstone_block, seconds_per_trickle, harden(function ()
|
make_abm(watered_dripstone_block, seconds_per_water_trickle, harden(function ()
|
||||||
return noordstar_dripstone.lava_nodes
|
return noordstar_dripstone.lava_nodes
|
||||||
end))
|
end))
|
||||||
|
|
||||||
-- TRICKLE DOWN
|
-- TRICKLE DOWN
|
||||||
|
|
||||||
make_abm(molten_dripstone_block, seconds_per_trickle, trickle_down(lava_trickle_down, dry_dripstone_block))
|
make_abm(molten_dripstone_block, seconds_per_lava_trickle, trickle_down(lava_trickle_down, dry_dripstone_block))
|
||||||
make_abm(watered_dripstone_block, seconds_per_trickle, trickle_down(water_trickle_down, dry_dripstone_block))
|
make_abm(watered_dripstone_block, seconds_per_water_trickle, trickle_down(water_trickle_down, dry_dripstone_block))
|
||||||
make_abm(molten_dripstone_huge, seconds_per_trickle, trickle_down(lava_trickle_down, dry_dripstone_huge))
|
make_abm(molten_dripstone_huge, seconds_per_lava_trickle, trickle_down(lava_trickle_down, dry_dripstone_huge))
|
||||||
make_abm(watered_dripstone_huge, seconds_per_trickle, trickle_down(water_trickle_down, dry_dripstone_huge))
|
make_abm(watered_dripstone_huge, seconds_per_water_trickle, trickle_down(water_trickle_down, dry_dripstone_huge))
|
||||||
make_abm(molten_dripstone_large, seconds_per_trickle, trickle_down(lava_trickle_down, dry_dripstone_large))
|
make_abm(molten_dripstone_large, seconds_per_lava_trickle, trickle_down(lava_trickle_down, dry_dripstone_large))
|
||||||
make_abm(watered_dripstone_large, seconds_per_trickle, trickle_down(water_trickle_down, dry_dripstone_large))
|
make_abm(watered_dripstone_large, seconds_per_water_trickle, trickle_down(water_trickle_down, dry_dripstone_large))
|
||||||
make_abm(molten_dripstone_great, seconds_per_trickle, trickle_down(lava_trickle_down, dry_dripstone_great))
|
make_abm(molten_dripstone_great, seconds_per_lava_trickle, trickle_down(lava_trickle_down, dry_dripstone_great))
|
||||||
make_abm(watered_dripstone_great, seconds_per_trickle, trickle_down(water_trickle_down, dry_dripstone_great))
|
make_abm(watered_dripstone_great, seconds_per_water_trickle, trickle_down(water_trickle_down, dry_dripstone_great))
|
||||||
make_abm(molten_dripstone_medium, seconds_per_trickle, trickle_down(lava_trickle_down, dry_dripstone_medium))
|
make_abm(molten_dripstone_medium, seconds_per_lava_trickle, trickle_down(lava_trickle_down, dry_dripstone_medium))
|
||||||
make_abm(watered_dripstone_medium, seconds_per_trickle, trickle_down(water_trickle_down, dry_dripstone_medium))
|
make_abm(watered_dripstone_medium, seconds_per_water_trickle, trickle_down(water_trickle_down, dry_dripstone_medium))
|
||||||
make_abm(molten_dripstone_small, seconds_per_trickle, trickle_down(lava_trickle_down, dry_dripstone_small))
|
make_abm(molten_dripstone_small, seconds_per_lava_trickle, trickle_down(lava_trickle_down, dry_dripstone_small))
|
||||||
make_abm(watered_dripstone_small, seconds_per_trickle, trickle_down(water_trickle_down, dry_dripstone_small))
|
make_abm(watered_dripstone_small, seconds_per_water_trickle, trickle_down(water_trickle_down, dry_dripstone_small))
|
||||||
make_abm(molten_dripstone_tiny, seconds_per_trickle, trickle_down(lava_trickle_down, dry_dripstone_tiny))
|
make_abm(molten_dripstone_tiny, seconds_per_lava_trickle, trickle_down(lava_trickle_down, dry_dripstone_tiny))
|
||||||
make_abm(watered_dripstone_tiny, seconds_per_trickle, trickle_down(water_trickle_down, dry_dripstone_tiny))
|
make_abm(watered_dripstone_tiny, seconds_per_water_trickle, trickle_down(water_trickle_down, dry_dripstone_tiny))
|
||||||
make_abm(molten_dripstone_spike, seconds_per_trickle, trickle_down(lava_trickle_down_spike, dry_dripstone_spike))
|
make_abm(molten_dripstone_spike, seconds_per_lava_trickle, trickle_down(lava_trickle_down_spike, dry_dripstone_spike))
|
||||||
make_abm(watered_dripstone_spike, seconds_per_trickle, trickle_down(water_trickle_down_spike, dry_dripstone_spike))
|
make_abm(watered_dripstone_spike, seconds_per_water_trickle, trickle_down(water_trickle_down_spike, dry_dripstone_spike))
|
||||||
|
|
||||||
-- GROW
|
-- GROW
|
||||||
|
|
||||||
|
@ -656,5 +657,5 @@ make_abm(watered_dripstone_spike, seconds_per_growth*(4*4 - 2*2), grow_to(dry_dr
|
||||||
|
|
||||||
-- DROP DOWN
|
-- DROP DOWN
|
||||||
|
|
||||||
make_abm(molten_dripstone_spike, seconds_per_trickle, drop_down_to(lava_drop_down, dry_dripstone_spike))
|
make_abm(molten_dripstone_spike, seconds_per_lava_trickle, drop_down_to(lava_drop_down, dry_dripstone_spike))
|
||||||
make_abm(watered_dripstone_spike, seconds_per_trickle, drop_down_to(water_drop_down, dry_dripstone_spike))
|
make_abm(watered_dripstone_spike, seconds_per_water_trickle, drop_down_to(water_drop_down, dry_dripstone_spike))
|
Loading…
Reference in New Issue