Project MMO

Project MMO

10M Downloads

A Way To Disable Vein Mining Values on an Item

SomewhatDamaged opened this issue ยท 3 comments

commented

Describe the solution you'd like
A method, in datapack, to disable vein mining values.

Why is this feature needed
Because of how the values are generated in a fresh datapack (as 0 and 0.0), even override can't be used because that would disable vein mining for every item by default.

Consequently, there is no way (short of a datapack filter to disable the file from the internal datapack) to stop an item with vein mining stats from having them.

Describe alternatives you've considered
Maybe setting the value to negative would do it? Should be easy to check for.

Additional context
Was asked in 1.18.2 support channel (Discord link)

commented

0.0 is considered "unconfigured" which is used to ignore configurations that generate with nothing. Your best option is to set both to some thing astronomically slow like 0.0000000001 so that it's not zero but so low a user could never exploit it

commented

IIRC this was fixed in later versions but was not backported.

commented

Bonus note: chargeCap should be chargeRate in this line