Skip to content

Datapack Modifiers

KnightMiner edited this page Dec 12, 2023 · 2 revisions

In addition to the many modifiers used as traits, upgrades, and abilities, Tinkers' Construct provides several unused modifiers which may be useful for modpack makers adding either custom materials or modifiers.

Bonus Modifier Slots

As of 1.18.2, you can add custom modifiers using datapacks by placing JSON under data/<your datapack>/tinkering/modifiers. See writable for an example of such a modifier. You can adjust the type of slot granted under "name", as shown by draconic.

Note that in addition to adding the modifier, you will need to add a recipe and translation key for it. For an example recipe for one of these modifiers, see the recipe for the writable modifier. Note it is set up to allow at most 1 level of the modifier, meaning writable cannot be applied multiple times. A future wiki page is planned to cover that info.

If for some reason you would rather reuse the existing modifiers, it is also possible to increase the max level on existing modifiers such as tconstruct:writable to allow applying them multiple times, either by changing the max_level field or by adding a second recipe in the same way the luck modifier recipes work. Either case, the result is the tool will end up with "Writable II" or a similarly named second level of a modifier.

1.16.5

Click this text to reveal the outdated info on how to do this in 1.16.5 before custom modifiers were added.

Three modifiers are registered under the IDs tconstruct:red_extra_upgrade, tconstruct:green_extra_upgrade, and tconstruct:blue_extra_upgrade which all grant +1 upgrade slot in a similar vein to tconstruct:writable or tconstruct:harmonious. In addition, a modifier is registered as tconstruct:extra_ability which provides +1 ability slot like the tconstruct:draconic modifier. The intention with these modifiers is to allow a modpack to add additional modifier recipes for single use bonus modifier slots based on content in the pack (such as extra dimensions). Note that in addition to adding the recipes, it is encouraged to provide a resource pack to change the extra modifier names based on the recipe you provide.

In 1.18.2, those modifiers were removed as you can easily add custom modifiers yourself as described above.

Unused Modifiers

There are several modifiers that are registered in Tinkers' Construct that are not currently being used, which are ideal for using either as a material trait. In addition, if your pack lacks one of the materials Tinkers' Construct provides automatic compat for, you can reuse it's trait on another material without duplicating traits.

The following modifiers are unused by default:

  • tconstruct:fortune: Provides +1 looting per level, increasing block drops like the vanilla enchantment. Stacks with the Luck ability.
  • tconstruct:looting: Provides +1 looting per level, increasing mob drops like the vanilla enchantment. Stacks with the Luck ability

The following modifiers are used exclusively on a compatibility material:

  • tconstruct:heavy: Increases attack damage by 10% and reduces movement speed by 10%. Used by lead by default.
  • tconstruct:ductile: Increases attack damage, attack speed, durability, and mining speed by 4% each. Used by steel by default.
  • tconstruct:maintained_2: Boosts the mining speed of a tool at high durability. Uses a different formula than the Tinkers' bronze trait. Used by bronze by default.
  • tconstruct:temperate: Boosts mining speed of a tool in extreme temperatures. Used by constantan by default.
Clone this wiki locally