From 0664570d227a4bb12a62816581adb72d9c053b71 Mon Sep 17 00:00:00 2001 From: paramat Date: Tue, 23 Aug 2016 20:33:37 +0100 Subject: [PATCH] Creative: Make dig times near-identical for nodes of all levels Dig time is modified according to difference (leveldiff) between tool 'maxlevel' and node 'level'. Digtime is divided by the larger of leveldiff and 1. In creative mode, where the hand is redefined to have maxlevel 3, this results in higher level nodes taking significantly longer to break. Now, to speed up digging, hand 'maxlevel' and 'digtime' have been increased such that nodes of differing levels have an insignificant effect on digtime. Dig time for all nodes is now identical to that of, for example, dirt nodes. --- mods/creative/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/creative/init.lua b/mods/creative/init.lua index cc7f81c8..3affc3d9 100644 --- a/mods/creative/init.lua +++ b/mods/creative/init.lua @@ -222,8 +222,8 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) end) if creative_mode then - local digtime = 0.5 - local caps = {times = {digtime, digtime, digtime}, uses = 0, maxlevel = 3} + local digtime = 42 + local caps = {times = {digtime, digtime, digtime}, uses = 0, maxlevel = 256} minetest.register_item(":", { type = "none", -- 2.25.1