Sokomine / replacer

tool that replaces nodes by clicking on them (Mod for Minetest)
8 stars 21 forks source link

mining with node replacer #6

Open 00c opened 6 years ago

00c commented 6 years ago

Is it possible to disable mining with node replace tool, Or make it work only in protected land/area. Its kinda cheating as node replacer does not wear off.

HybridDog commented 6 years ago

It's possible to add a setting which makes replacing a node only possible if it can be dug by hand.

00c commented 6 years ago

Is it possible to make it work only in protected land. So you can't use it undergrond

HybridDog commented 6 years ago

minetest.is_protected tests whether an area is protected; you could test if the area is protected for another player and not for you. So yes, it's possible. My fork of the replacer mod offers field replacing which allows replacing a whole wall at once, a setting to make it only work in areas protected by the player may reduce the great impact on gameplay caused by field replacing.

However, some player could go underground with replacer and protection block, place the protector node, mine with replacer and in the end mine the protection block with it.

00c commented 6 years ago

I use landrush mod, you can't protect underground caves Your mod is great but too powerfull, its like compact WE.

Sokomine commented 6 years ago

I doubt that mining with the tool is an efficient way to get ressources. However, if you are still afraid it might be used that way, you can now use the new blacklist functionality: [code]replacer.blacklist[ "default:diamond_block"] = true[/code]

00c commented 6 years ago

Thanks Sokomine, the main issue player replace stone with something transparent. Like Power Plant.

Why i can't open issue in HybridDog fork.

HybridDog commented 6 years ago

Why i can't open issue in HybridDog fork.

Issues are disabled by default when forking. I enabled them, thanks for informing me.

00c commented 6 years ago

Is it possible to disable node replace tool below y -100. This would prevent mining cheat.

HybridDog commented 6 years ago

This would be a workaround, you couldn't longer use the replacer for underground buildings. For any reason someone once built a diamond castle deep underground, disabling it additionally only for ore nodes is an alternative workaround.

00c commented 6 years ago

On my server underground buildings can not be protected. I have seen players remove ores with replacer, then dig ores with pickaxe.

HybridDog commented 6 years ago

You could also make the replacer very expensive, e.g. use diamond blocks for crafting. Because the tool is very useful and doesn't wear, people would still craft and use it but they wouldn't use it for mining because it's much less convenient than mining with a diamond pick (afaIk).

00c commented 6 years ago

That could work, but i guess many players got many of node "replacer" would make them expensive, while it was made from sticks/wood.

SwissalpS commented 4 years ago

if you use XP, you could limit to a certain rank. However I don't see why the base mod should include any of these suggestions. They are rather game-dependent and thus for each server to use a fork/branch that suits their type of game-structure. Maybe provide a hook to check using an override-able function.

S-S-X commented 3 years ago

This thing could be easily done with any conditions by simply making another custom protection mod, basically just few lines to add callback to standard minetest.is_protected chain. Then simply return if player is underground and is wielding replacer and does not have exactly 42 apples in inventory.

Standard protection system can protect from many things, it is not limited just to basic node digging or placing. You can for example protect just apples that are still in tree and force players to get apples by removing tree (or leaves).

I think this is something that belong to server specific customization mod because trying to make special whitelist or blacklist system for replacer while keeping everyone happy does not sound very good idea.

Custom protection mod:

SwissalpS commented 2 years ago

On my fork, it is possible to override/extend a checker function to implement all kinds of arbitrary restrictions. Since commit: https://github.com/SwissalpS/replacer/commit/8fb9db6e99c7da4fb45e563ed7eb37dde3a70ed0