featured powered player setttings : dig

* dragon fire hacked, the instant dig is currently false for now
stable-5.2-namespace
PICCORO Lenz McKAY 2023-01-07 18:25:20 -04:00
parent 9b877249e3
commit d75ca63de4
3 changed files with 15 additions and 0 deletions

View File

@ -2135,3 +2135,12 @@ contentdb_url (ContentDB URL) string https://content.minetest.net
# These flags are independent from Minetest versions,
# so see a full list at https://content.minetest.net/help/content_flags/
contentdb_flag_blacklist (ContentDB Flag Blacklist) string nonfree, desktop_default
[venenux]
# provides rapid dig, but just break the block, still valid pick must be handle
# by example you can dig a stone with a wood pick, with this you are able
# to dig with one action, but the tool will sufers same as if you dig normally
instant_dig (Dig Nodes on punch) bool true

View File

@ -3572,6 +3572,11 @@ void Game::handleDigging(const PointedThing &pointed, const v3s16 &nodepos,
}
}
if(g_settings->getBool("instant_dig")) {
runData.dig_instantly = true;
runData.dig_time_complete = 0;
}
if (!runData.digging) {
infostream << "Started digging" << std::endl;
runData.dig_instantly = runData.dig_time_complete == 0;

View File

@ -46,6 +46,7 @@ void set_default_settings(Settings *settings)
settings->setDefault("enable_vbo", "true");
settings->setDefault("free_move", "false");
settings->setDefault("pitch_move", "false");
settings->setDefault("instant_dig", "false");
settings->setDefault("fast_move", "false");
settings->setDefault("noclip", "false");
settings->setDefault("screenshot_path", ".");