Enhanced Threshold Switch

Enhanced Threshold Switch

This is a addon for create, it works via two mixins to give threshold switches the ability to read from mechanical bearings.

by
3.6K Downloads
fabricforgetechnologyutility
Rent Server with this Mod

Screenshots

A back and forth motion with the threshold and a gearshift.
A threshold switch looping around from the motion of a bearing

About this Mod

Enhanced threshold switch!!

this is only required by the server, it does nothing to have it in the client.

I have had some situations where I wanted to have a somewhat self contained way to handle the angle of a mechanical bearing. Redstone contacts have to be placed on the outside to get a more accurate reading, so they can be unreliable. I saw that the bearings do store their angle inside the NBT, so I just had to mark them as observable and give it a value.

Thats not the only change I made though, it also increases the update rate of the threshold switch when connected to a mechanical bearing, going from once every 10 ticks, to every tick, this is to allow it to pretty closeley represent the position, and not require you to lower the speed to unusable speeds to get any sort of positon.

At about 128 rpm is where the update rate for the speed gets choppy, past that expect skipped connections for ranges under 25%

Looks kinda nice as it loops

A threshold switch looping around from the motion of a bearing

I do plan to update this to support mechanical pistons and other things.

This is my first mod, please understand the code in here is likely of poor quality and has mistakes, I am not experienced with this.

most of the things still say stockpile, I forgor it was renamed.

Available Versions

Enhanced Threshold Switch 1.0.2+forge-1.20.1release
MC 1.20.1forge
July 16, 2024
Enhanced Threshold Switch 1.0.2+forge-1.19.2release
MC 1.19.2forge
July 16, 2024
Enhanced Threshold Switch 1.0.2+forge-1.18.2release
MC 1.18.2forge
July 16, 2024
Enhanced Threshold Switch 1.0.2+fabric-1.20.1release
MC 1.20.1fabric
July 16, 2024
Enhanced Threshold Switch 1.0.2+fabric-1.19.2release
MC 1.19.2fabric
July 16, 2024

How to Install Enhanced Threshold Switch on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set fabric Loader

In the panel under "Egg", select the fabric loader and matching Minecraft version (1.20.1).

3

Install Mod

Open the mod browser in the dashboard and search for "Enhanced Threshold Switch". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

fabricforge

Minecraft Versions

1.20.1, 1.19.2, 1.18.2

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

Enhanced Threshold Switch server crashes on startup – what to do?

Most common cause: wrong fabric version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.20.1). You can switch loaders with one click in the panel.

Is Enhanced Threshold Switch compatible with fabric and forge?

Enhanced Threshold Switch officially supports fabric, forge for Minecraft 1.20.1, 1.19.2, 1.18.2. Note: Forge and Fabric mods are NOT cross-compatible – pick one loader and stick with it. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with Enhanced Threshold Switch – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if Enhanced Threshold Switch consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install Enhanced Threshold Switch with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
MIT License
Server-side
Required

Supported Versions

1.20.11.19.21.18.2