
This is a fork of the No Tree Punching mod for 1.12.2. Most of the content has been removed, and some additional things have been added.
The only things that are left are:
1. The knapping mechanic - It received a rework; it's now generic and has CraftTweaker support to knap any item into any other ItemStack, configure the sound effect played, and the block you need to aim at.
2. The chopping mechanic - (Soon the be overhauled - it will be generified to allow any tool + block combo as well as CT support)
3. The knife mechanic - (Soon to be overhauled - it will be generified to allow any main hand + offhand item combo as well as CT support)
4. The mechanic preventing you from mining blocks without the right tool (I kept in the config option from the original version of the mod to disable that if you don't want that)
5. The large clay vessel
6. The tools with the exception of the flint tools
This was made for personal modpack reasons, however, feel free to use this in your own pack if you desire similar mechanics.
In the future, there will be a config option to disable the clay vessel and the tools because I kept them in for modpack reasons and people might want to use this fork for the CT mechanics.
CraftTweaker methods:
mods.yesflintknapping.Knapping.add(float chance, float chanceSuccess, IIngredient input, IItemStack... output)
mods.yesflintknapping.Knapping.addCustom(String blockOverride, String soundEvent, float chance, float chanceSuccess, IIngredient input, IItemStack... output)
mods.yesflintknapping.Knapping.remove(IIngredient input)
If you enter "default" for blockOverride and soundEvent, it will use the default. (Material.ROCK and the usual knapping sound respectively.)
Chance just goes from 0.0 to 1.0.
Example code:
import mods.yesflintknapping.Knapping;
Knapping.add(0.6, 0.7, <minecraft:dirt>, <minecraft:diamond>*2, <minecraft:emerald>*5);
// This will knap a dirt block into two diamonds and five emeralds upon a successful knap, which has a 70% chance. An attempt at a knap in the first place has a 60% chance in this example.