Skip to content

Computer Monitor, Crafting Table, and Detector Covers#65

Merged
serenibyss merged 11 commits intomasterfrom
covers
Aug 8, 2021
Merged

Computer Monitor, Crafting Table, and Detector Covers#65
serenibyss merged 11 commits intomasterfrom
covers

Conversation

@TechLord22
Copy link
Copy Markdown
Member

@TechLord22 TechLord22 commented Aug 8, 2021

What:
This PR adds the decorative Computer Monitor cover, the crafting table cover, and the Item/Fluid/Energy Detector covers.

The crafting table cover is a cover version of the Crafting Station, except it does not have the inventory tab and does not scan for adjacent inventories.

The detectors output a redstone signal based on the current stored medium out of the total capacity. They can be inverted with a screwdriver to output based on the empty space, instead of the filled.

How solved:
The crafting table cover code is mostly copied directly from the crafting station.

Capabilities were used to obtain information about the attached block's contents for the detectors. Based on the current stored amount and total capacity, redstone signal is calculated by the formula: current / total * 16. In code it is rearranged in order to ensure floating-point division is performed.

Outcome:
Added Computer Monitor and Detector Covers.

Additional info:
These covers are simple enough to not require any GUI, so they do not have any.

@TechLord22 TechLord22 changed the title Computer Monitor and Detector Covers Computer Monitor, Crafting Table, and Detector Covers Aug 8, 2021
@serenibyss serenibyss merged commit 353d2b7 into master Aug 8, 2021
@serenibyss serenibyss deleted the covers branch August 8, 2021 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants