axon/sources.lua
Leslie Krause b3d1079259 Build 04
- minor code reorganization
- renamed 'class' to 'propagator' for consistency
- added compatibility layer for Minetest S3 engine
- implemented emission propagator with example code
- updated README.txt with dependency information
2020-05-15 12:06:08 -04:00

21 lines
975 B
Lua

-- This is a sample source definition file. You will want to modify this for your particular game.
axon.register_source( "group:lava_source", {
{ group = "heat_stim", propagator = "radiation", intensity = 10, chance = 1, period = 1.5, radius = 5.0, power = 0.3 },
{ group = "lava_stim", propagator = "immersion", intensity = 10, chance = 1, period = 0.5 },
} )
axon.register_source( "group:water_source", {
{ group = "water_stim", propagator = "immersion", intensity = 10, chance = 1, period = 0.5 },
} )
axon.register_source( "group:heat_source", {
{ group = "heat_stim", propagator = "contact", intensity = 3, chance = 2, period = 1.0, power = 0.8 },
} )
axon.register_source_group( "lava_source", { "default:lava_source", "default:lava_flowing" } )
axon.register_source_group( "heat_source", { "default:torch", "default:furnace_active", "fire:permanent_flame" } )
axon.register_source_group( "water_source", { "default:water_source", "default:water_flowing" } )