Скачать Enhanced Threshold Switch — Minecraft Моды — ModStock
Enhanced Threshold Switch

Enhanced Threshold Switch

Активный

Установок

18

Последнее обновление

11 месяцев назад

Версии

1.18.2 — 1.20.1
Сервер
Fabric
Forge
Технологические
Утилиты

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.

Участники проекта
PalTheTaur

PalTheTaur

Разработчик