COWMODSКаталог модов

Sable: Sublevel Detection

Adds a sensor that provides redstone feedback to whether or not the Sable sublevel it is placed on is occupied by a player. CC: Tweaked compatibility adds advanced functions.

Автор: GreyTSS391обновлён 6 сент. 2026 г.
ТехнологииУтилиты

Описание

Sable: Sublevel Detection

Dead Man's Switch

Sable 2.0.0+ Required (Tested 2.0.5)

This mod adds a new redstone component called the "Occupancy Sensor." This sensor, when placed on a Sable sublevel, provides Redstone signal if any player is occupying that sublevel. The sensor can also be inverted with an empty-handed right-click, to provide a redstone signal when a sublevel is unoccupied.

Occupancy Sensor

This mod was developed around the concept of a Dead Man's Switch. Simply place the Occupancy Sensor next to a clutch, providing rotational power to your mode of propulsion, and set it to inverted mode. Now when you leave the vessel, it will register as unoccupied and the redstone signal from the sensor will shut off power from your engine.

While this may seem simple, the possibility for usage goes deeper than it seems, especially when augmented with the optional CC: Tweaked support. If CC: Tweaked is installed, you can wrap the occupancy sensor through the Peripheral API and gain access to 5 new functions in CraftOS.

• getOccupancyCount() - Returns an integer of how many players are currently occupying the sublevel.
• getOccupantsNames() - Returns a table containing every occupant's in-game name.
• getOccupantsUUIDs() - Returns a table containing every occupant's UUID.
• getInversionState() - Returns a boolean denoting whether the sensor is currently inverted.
• setInversionState(boolean) - Alters the inversion state of the sensor.

Using these functions, this sensor transcends simple redstone logic and allows you to use sublevels as a way to query regional game state, automating logistics based on if someone is present and who.

A few examples of this could be:

• A Create: Coasters Simulated rollercoaster that automatically starts a countdown once a specified amount of passengers have boarded

• A cafe that keeps track of new customers waiting to be tended to.

• A parkour course with platforms that start to move as a player lands on them.

• A cockpit whose door only opens once the Captain's UUID is present on board.

• A home where every room's floor is a unique sublevel, allowing a security system to tell you exactly what room an intruder is in.

There are plenty of vessel protocols, minigames, home automations, and roleplay applications that are opened up by this little block.

This is my first mod ever, and as such, there may be some unforeseen bugs. Please provide any relevant details, screenshots, videos, or steps to reproduce it in a GitHub ticket should you stumble across one.

Галерея

Captain Required

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

Все версии →
release

Sable: Sublevel Detection 1.1

1.1
6 сент. 2026 г.27Minecraft: 1.21.1neoforge
Скачать
Что нового
**v1.1** __Added the Seated Sublevel Sensor:__ \* This sensor only detects players that have sat down on a sublevel. \* This sensor has no direct interaction with seat objects, and instead applies to the entire sublevel. \* It contains the same CC: Tweaked methods contained within the Occupancy Sensor. \* It has a very similar recipe to the Occupancy sensor, with a minecart being used in place of the eye of ender. \* I tested five mods, Create, Maccaws, Furnitury, Mr Crayfish, and Jammy Furniture. Only Create and Furnitury were operational. The other 3 proved to have direct incompatibility with Sable completely, likely do to hardcoded worldpos math related to mounting the chair entity. Any other mod that adds sit-able chairs should work provided the mod already is compatible with Sable. __Sensor Swapping:__ The Seated and Normal sensors have a very similar recipe, with one unique item each. The eye of ender for the normal, and a minecart for the seated. Right clicking one sensor with the unique item of another sensor will automatically swap the sensortype to the type that corresponds with the used item. The old item is ejected and able to be reclaimed. __Bugfixes:__ getOccupantsNames() table no longer has literal{} wrapping around index values.
release

Sable: Sublevel Detection 1.0

1.0
27 авг. 2026 г.12Minecraft: 1.21.1neoforge
Скачать