Mods / whetstone
Author: OmegaHaxors
Side: Both
Created: Nov 12th 2022 at 1:59 AM
Last modified: Nov 12th 2022 at 1:21 PM
Downloads: 1576
Follow Unfollow 24
Latest file for v1.17.9:
whetstone.zip
1-click install
Adds the foundation for sharpness, a mechanic which allows you to sacrifice durability for extra tool speed. Creative players can access it by using the /sharpness command. It also comes bundled with a craftable whetstone block which you can place and use to convert 1 point of durability for 1 point of sharpness, capping out at 100 sharpness. Every time you use a sharpness point it gets consumed, meaning your tool will dull over time and require more sharpening to maintain its edge. Sharpened tools have this benefit at max sharpness: Double rock/ore digging speed, skinning speed, and double damage.
The calculation for the bonus is equal to the square root of the sharpness points divided by 10.
In other words, at 100 points (the square root of 100 is 10) you will have a bonus of 100%
At 50 points (the square root of 50 is ~7) you have a bonus of 70% etc etc
For modders, adding sharpness to an item is as easy as giving it the "sharpness" integer attribute. You can set it to anything you want but going into the negatives will cause a NaN (I will fix this later) and due to the nonlinear nature of squaring, higher values have a diminishing return. Any item with this attribute will automatically apply the bonuses and deduct points of sharpness on use.
Version | For Game version | Downloads | Release date | Changelog | Download | 1-click mod install* |
---|---|---|---|---|---|---|
v1.1.1 | 1159 | Nov 12th 2022 at 1:21 PM | Show | whetstone.zip | Install now | |
v1.1.0 | 211 | Nov 12th 2022 at 9:10 AM | Show | whetstone.zip | Install now | |
v1.0.0 | 206 | Nov 12th 2022 at 2:01 AM | Show | whetstone.zip | Install now |
Tedi
Should just work.
When will the mod be updated to 1.18.15 or 1.19? OmegaHaxors
Neitronus
Any object can be given sharpness but right now the whetstone is hard coded to only allow sharpening of pickaxes (for dig speed) knives (for skinning speed) and falx (for attack damage) Yes this means you can apply sharpness to any item you can carry in your inventory, even ones where it makes no sense to have it (such as berries or a stick)
If you want to be able to sharpen a mod tool you should either create your own whetstone capable of doing so, or patching the existing one to be compatible.
How it works internally is basically the mod checks the item in your hand and if you're holding an itemstack with a sharpness attribute, if you have it gives you bonuses to the three stats then deducts one point of sharpness for each 'use' of the tool. It's -1 sharpness for each stone dug, -1 sharpness for each attack done, and -1 sharpness for each carcass skinned. Obviously this process will not happen if the sharpness is 0 because if it went below that you would start having to deal with imaginary numbers, and those don't produce anything of value. Another little fun fact is that these three stats are possible because of the preexisting class attributes, as the sharpness system plugs into those to give you the bonuses. That's why you can't sharpen shovels: the mine speed increase only increases the speed of breaking stone blocks as it was intended for use with the blackguard.
Does this work with modded items or they should include sharpness field in their definition first in order for whetstone to be able to access it via ingame interaction?
Zeorik
Yeah it's something I wanted but isn't something I know how to do.
Due to the nonlinear nature of sharpness you should notice when your tool is dull, at least.
It will maintain its edge for most of the time but then suddenly start dropping off hard.
There's also always the debug menu which shows you all attributes, including sharpness.
The only complaint/ request I could make is a tooltip addition perhaps? So that you can tell how 'sharp' any givewn tool is, instead of guesswork.
Omega, you've been on a grind lately. Good you're adding these awesome and useful things to the game via mods.
Yes, that's good too. So great what you are doing for us. You can think of a lot of things. I wish you success .
znatik I was actually going to make that effect stronger but I heard they were going to buff tiered knives so I kept it to 2x.
Oh, how cool the atoms are tired of sawing the carcasses of animals for half an hour. Very useful mod. Thank you.
Thanks NESHK0
I'll put it in the next update
ru.json
{
"whetstone:block-whetstone": "Точильный камень",
"blockdesc-whetstone": "Позволяет затачивать ваши инструменты за счет прочности (максимум 100 раз). Инструмент теряет 1 значение заточки после каждого использования. Бонус (в %) к скорости инструмента равен корню (Очки заточки) * 10. <br><br> Не все инструменты могут быть заточены, а так же, если прочность ниже текущего значения заточки."
}