create a mod that adds a few blocks. You may look at the justdirethings 26.1.2 repository. I want you to add a clicker. The clicker should be togglable with a gui like the justdirethings advanced clicker. You may toggle the exact xyz coordinates the clicker acts, and it can right click or left click or shift right click or shift left click depending on what the player toggled. Not only that, it can hold the above mentioned clicks for a chosen interval if toggled, by ticks, and the interval between each click/hold can be toggled by ticks
KodariNov 7 at 10:58 am 6
PrecisionClicker
Adds a configurable clicker block that simulates player clicks at specified coordinates. The block features a GUI allowing players to toggle exact X, Y, Z target coordinates and select between left click, right click, shift left click, or shift right click actions. Players can enable click holding for a configurable duration in ticks and set the interval between each click or hold action in ticks. The block operates automatically once configured, performing the selected mouse action at the designated position with precise timing control.
Add a survival-obtainable Clicker block with saved XYZ, action mode, enabled/hold toggles, and tick timing.
Build its owo configuration screen and server-synced controls.
Add the block’s item, textures, recipe, loot/tool tags, and names.
Added the Clicker block with a custom texture and an owo GUI. Configure its XYZ target, choose one of the four click modes, toggle it on or off, and set hold duration and interval in ticks. Settings persist when the world is saved.
It performs clicks server-side and only acts when the target chunk is already loaded. Right-clicks use an empty hand; left-clicks attempt to break the target with an empty hand.
Survival recipe: 4 iron ingots, 2 redstone dust, and 1 dropper. The block drops itself when mined with an iron-tier pickaxe or better.
Kodari can make mistakes. Review important code before using.
package com.kodari.tickclicker;
import net.fabricmc.api.ModInitializer;
public final class TickClickerMod implements ModInitializer {
public static final String MOD_ID = "tickclicker";
@Override
public void onInitialize() {
ClickerContent.initialize();
ClickerNetwork.initializeCommon();
}
}