promotional bannermobile promotional banner
premium banner
A simple lib that allows cycling between block groups with an interaction like the Hammer. Completely configurable

Description

TinkersNTools

A simple utility mod allowing you to define a cycle group and then a custom interaction that lets you cycle the block you are looking at based on the group it is present in

This adds a new interaction for mod developers to utilize: CycleBlockGroup. It also adds a new registry called "CycleCategory"

You can create an object inside CycleCategory like

{
   "blocks": [ /* list of block IDs */]
   "category": /*category */
}

and then inside your Interaction of type "CycleBlockType" set the Cycle Category to the string of the category.

When triggering the interaction, the mod will cycle the block you are interacting with based on the group it is a part of.

This lets you cycle between, say, wool colors, custom stair types, etc

github: https://github.com/ItsRiprod/tinkersntools PRs are welcome.