From 217fd70ee5aea3dac4d01ba5554f15b5ed1dbca3 Mon Sep 17 00:00:00 2001 From: flyc0r Date: Mon, 5 Oct 2020 04:21:29 +0200 Subject: [PATCH] autominer: further optimization. almost 0 damage now --- clientmods/autominer/init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clientmods/autominer/init.lua b/clientmods/autominer/init.lua index 9ebafe1f9..88bc71378 100644 --- a/clientmods/autominer/init.lua +++ b/clientmods/autominer/init.lua @@ -7,7 +7,8 @@ local dmg=false local digging=false local radius=15 -nodes={'mcl_core:stone_with_coal','mcl_core:stone_with_gold','mcl_core:stone_with_iron','mcl_core:stone_with_diamond','mcl_core:stone_with_redstone','mcl_core:stone_with_lapis'} +--nodes={'mcl_core:stone_with_coal','mcl_core:stone_with_gold','mcl_core:stone_with_iron','mcl_core:stone_with_diamond','mcl_core:stone_with_redstone','mcl_core:stone_with_lapislazuli'} +nodes={'mcl_core:stone_with_coal','mcl_core:stone_with_gold','mcl_core:stone_with_iron','mcl_core:stone_with_diamond','mcl_core:stone_with_lapis_lazuli','mcl_core:stone_with_lapislazuli'} nextpos={} local function sleep(n) -- seconds local t0 = os.clock() @@ -100,7 +101,7 @@ local function dighead() local hp=minetest.localplayer:get_hp() local hn=get_hnode() if (hp > 17) then - autominer.aminer() + minetest.after(0.2,autominer.aminer ) else minetest.display_chat_message("taken too much damage. stop.") local ppos=vector.add(minetest.localplayer:get_pos(),{x=0,y=1,z=0})