ELEKTRIKITY#711
Draft
Seggan wants to merge 69 commits into
Draft
Conversation
This reverts commit 3cae7d2.
# Conflicts: # rebar/build.gradle.kts
# Conflicts: # rebar/build.gradle.kts
# Conflicts: # rebar/src/main/kotlin/io/github/pylonmc/rebar/block/base/RebarFluidBufferBlock.kt # rebar/src/main/kotlin/io/github/pylonmc/rebar/block/base/RebarSimpleMultiblock.kt # rebar/src/main/kotlin/io/github/pylonmc/rebar/block/base/RebarTickingBlock.kt
# Conflicts: # rebar/src/main/kotlin/io/github/pylonmc/rebar/Rebar.kt
# Conflicts: # nms/src/main/kotlin/io/github/pylonmc/rebar/nms/packet/PlayerPacketHandler.kt # rebar/src/main/kotlin/io/github/pylonmc/rebar/Rebar.kt # rebar/src/main/kotlin/io/github/pylonmc/rebar/block/RebarBlock.kt # rebar/src/main/kotlin/io/github/pylonmc/rebar/block/base/RebarGhostBlockHolder.kt # rebar/src/main/kotlin/io/github/pylonmc/rebar/block/base/RebarSimpleMultiblock.kt # rebar/src/main/kotlin/io/github/pylonmc/rebar/command/DualItemRegistryCommandArgument.kt # rebar/src/main/kotlin/io/github/pylonmc/rebar/guide/pages/research/ResearchItemsPage.kt # rebar/src/main/kotlin/io/github/pylonmc/rebar/item/ItemTypeWrapper.kt # rebar/src/main/kotlin/io/github/pylonmc/rebar/item/RebarItemSchema.kt # rebar/src/main/kotlin/io/github/pylonmc/rebar/util/position/BlockPosition.kt
…mc/rebar into seggan/feature/elektrikity
This reverts commit 84df04e
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Rebar part is electricity is most done I think, so y'all can start reviewing it.
How it works:
Electric blocks and the electric system are completely disconnected. The only thing electric blocks are/do is hold "electric nodes" and the entities for them. The electric nodes are what the electric system actually operates on. Electric blocks just hold these nodes and interact with the electricity system by manipulating these nodes. There's 4 node types: producers, connectors, consumers, and acceptors. Producers make electricity, connectors connect nodes, consumers require a specific amount to work, and acceptors eat any surplus electricity that comes along. Electricity itself has 4 numbers: volts, amperes, joules, and watts, although the only ones that actually matter in practice are volts and watts. Amperes follow P=IV, and wires have current limits, so in order to push more watts through a wire, you need wither higher voltage or more wire capacity. Joules is just the static form of watts, ie watt = joule/tick. Machines have a specific voltage range they want, so you cant just run everything on the smallest wires at 15 megavolts or smth.