RS Linking - Block Linking Tool
This mod provides players with a special tool for creating connections between various blocks in Minecraft.
How the Linking Tool Works
The usage process is very simple: first right-click on an emitter block from the allowed list - the tool will remember its coordinates. Then click on a receiver block, and the tool will automatically configure their NBT data to create a connection between them. If you click on a block that is not in the allowed list, the existing connection will be broken, allowing you to create a new connection with another block.
Usage as a Library
RS Linking works with two block tags: "forge/neoforge:rs_linkable_blocks_emisor" for emitters and "forge/neoforge:rs_linkable_blocks_receiver" for receivers. Simply add the desired blocks to these tags to make them linkable.
After successfully linking two blocks, the emitter's coordinates are written to the receiver as numerical NBT tags: "linked_x", "linked_y" and "linked_z".