forked from minetest/minetest_game
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.
This commit is contained in:
parent
5e9e3f7e84
commit
0664570d22
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user