Skip to content

Commit

Permalink
Creative: Make dig times near-identical for nodes of all levels
Browse files Browse the repository at this point in the history
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 Sep 3, 2016
1 parent 5e9e3f7 commit 0664570
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mods/creative/init.lua
Expand Up @@ -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",
Expand Down

0 comments on commit 0664570

Please sign in to comment.