diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-06-07 18:34:21 +0200 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-06-07 18:34:21 +0200 |
commit | 20b8961640b6c22d4149f7268d403cb4609a03fb (patch) | |
tree | 0acdb70090ee8db3e77b5a5ad4573cdd13503e8f /lava_cooling.lua | |
parent | cc84f066b001f4ea875b115ace6d533d1bc8b4f3 (diff) | |
download | skycraft-20b8961640b6c22d4149f7268d403cb4609a03fb.tar.xz |
New file Structure
Diffstat (limited to 'lava_cooling.lua')
-rw-r--r-- | lava_cooling.lua | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/lava_cooling.lua b/lava_cooling.lua deleted file mode 100644 index 3494e38..0000000 --- a/lava_cooling.lua +++ /dev/null @@ -1,25 +0,0 @@ -skycraft.ores = skycraft.random:new() -skycraft.ores:add_choice("mcl_core:cobble", 1000) -skycraft.ores:add_choice("mcl_core:stone", 200) -skycraft.ores:add_choice("mcl_core:stone_with_coal", 31) -skycraft.ores:add_choice("mcl_core:stone_with_iron", 25) -skycraft.ores:add_choice("mcl_core:stone_with_gold", 10) -skycraft.ores:add_choice("mcl_core:stone_with_lapis", 10) -skycraft.ores:add_choice("mcl_core:stone_with_redstone", 10) -skycraft.ores:add_choice("mcl_core:stone_with_diamond", 5) -skycraft.ores:calc_csum() - -minetest.register_on_mods_loaded(function() - for k, v in pairs(minetest.registered_abms) do - if v.label == "Lava cooling" then - local old_func = v.action - v.action = function(pos, node, active_object_count, active_object_count_wider) - old_func(pos, node, active_object_count, active_object_count_wider) - if minetest.get_node(pos).name == "mcl_core:cobble" then - minetest.set_node(pos, {name = skycraft.ores:choose()}) - end - end - break - end - end -end) |