Skip to content
Permalink
Browse files

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.
  • Loading branch information
paramat committed Aug 23, 2016
1 parent 5e9e3f7 commit 0664570d227a4bb12a62816581adb72d9c053b71
Showing with 2 additions and 2 deletions.
  1. +2 −2 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",

0 comments on commit 0664570

Please sign in to comment.
You can’t perform that action at this time.