Make the creative mod hand dig 'dig_immediate' nodes fast
authorParamat <paramat@users.noreply.github.com>
Sat, 3 Aug 2019 19:51:58 +0000 (20:51 +0100)
committerGitHub <noreply@github.com>
Sat, 3 Aug 2019 19:51:58 +0000 (20:51 +0100)
Engine change now makes this possible.

mods/creative/init.lua

index 0f8d4dba50e669457b9241862c79361e9b01e355..d1878f6a62e14c179a814c737cddd95d4037122f 100644 (file)
@@ -54,6 +54,9 @@ if creative_mode_cache then
                                snappy  = caps,
                                choppy  = caps,
                                oddly_breakable_by_hand = caps,
+                               -- dig_immediate group doesn't use value 1. Value 3 is instant dig
+                               dig_immediate =
+                                       {times = {[2] = digtime, [3] = 0}, uses = 0, maxlevel = 256},
                        },
                        damage_groups = {fleshy = 10},
                }