Download Yes Flint Knapping — Minecraft Mods — MetaMods

Yes Flint Knapping

Active

Downloads

0

Last update

2 years ago
Client
Addons

Yes Flint Knapping

This is a fork of the No Tree Punching mod for version 1.12.2. In this version, most of the original content has been removed while some additional features have been implemented.

Preserved Elements

1. Knapping Mechanics This system has been completely overhauled. It now functions as a universal tool with CraftTweaker support, allowing the conversion of any items into other ItemStacks. There's also the ability to configure the sound effect played and define the block that needs to be targeted.

2. Tree Chopping Mechanics A major update is planned - the system will be generalized to work with any tool and block combination with additional CraftTweaker support.

3. Knife Usage Mechanics Also awaiting significant rework - functionality will be generalized to work with any item combinations in main and offhand slots with CraftTweaker integration.

4. Protection Against Mining Blocks with Wrong Tool The option from the original mod version to disable this function through configuration settings has been preserved if needed.

5. Large Clay Vessel 6. Tools Except Flint Tools

In the future, a configuration option to disable the clay vessel and tools will be added, as they were kept solely for modpack development requirements.

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)

Notes:

  • blockOverride and soundEvent values can be set to "default" to use standard parameters (Material.ROCK and standard knapping sound respectively)
  • chance parameter accepts values from 0.0 to 1.0

Usage Example:

import mods.yesflintknapping.Knapping;

Knapping.add(0.6, 0.7, <minecraft:dirt>, <minecraft:diamond>2, <minecraft:emerald>5);
// This code will allow converting dirt blocks into two diamonds and five emeralds upon successful knapping with a 70% probability.
// The chance of the knapping attempt itself is 60% in this example

This project was originally created for use in custom modpacks, but you can freely use it in your own projects if the presented functionality suits your needs.

Project members
Gliese_832_c

Gliese_832_c

Created: 11 Aug 2023

ID: 93126