Skip to content

Releases: Fluffyalien1422/bedrock-energistics-core

Bedrock Energistics Core v0.6.0

22 Dec 22:22
Compare
Choose a tag to compare

Requires Minecraft 1.21.40+.
This update is released alongside Bedrock Energistics Core API v0.5.0.

New

  • Machines can now call generate with a storage type they consume.
  • Added debug stick.

Fixes

  • Fixed an error that could occur in the MachineNetwork#*send generator when a machine was destroyed.

Bedrock Energistics Core API v0.5.0

22 Dec 22:22
Compare
Choose a tag to compare

Requires Bedrock Energistics Core v0.6.x.
Requires @minecraft/server ^1.15.0.
This update is released alongside Bedrock Energistics Core v0.6.0.

New

  • Added NetworkLinkNode#getInternalEntity (#72).

Bedrock Energistics Core v0.5.1

26 Nov 22:20
Compare
Choose a tag to compare

Requires Minecraft 1.21.4x
The latest supported Bedrock Energistics Core API version is v0.4.0 (at the time of this release)

Fixes

  • Fixed an infinite generator storage bug (#70)

Bedrock Energistics Core v0.5.0

23 Nov 04:25
Compare
Choose a tag to compare

Requires Minecraft 1.21.4x
This update is released alongside Bedrock Energistics Core API v0.4.0

New

  • Added low priority consumers (fluffyalien_energisticscore:low_priority_consumer tag) (#56)
  • Added onNetworkStatsRecieved machine event (#63)
  • Added blue and white storage type colors
  • Added fluffyalien_energisticscore:machine_no_interact custom component (#65)

Changes and Improvements

  • No longer throws an error when trying to queue sending a storage type with an amount of 0 or less. This corresponds to the MachineNetwork#queueSend method in the external API (Bedrock Energistics Core API v0.4.x)
  • Network links now function as machines if they have the fluffyalien_energisticscore:machine tag (#67)

Bedrock Energistics Core API v0.4.0

23 Nov 04:25
Compare
Choose a tag to compare

Requires Bedrock Energistics Core v0.5.x
Requires @minecraft/server ^1.15.0
This update is released alongside Bedrock Energistics Core v0.5.0

Breaking Changes

  • Changed init(options: InitOptions): void to init(namespace: string): void
  • Removed updateMachineNetworks function (#59) - Use MachineNetwork.updateWithBlock instead
  • Removed updateMachineConnectableNetworks function (#59) - Use MachineNetwork.updateConnectable instead
  • Removed updateMachineAdjacentNetworks function (#59) - Use MachineNetwork.updateAdjacent instead
  • Removed queueSend function (#59) - Use MachineNetwork#queueSend instead
  • Removed getRegisteredMachine function - Use RegisteredMachine.get instead
  • Removed InitOptions

New

  • Added MachineNetwork class (#59)
  • Added NetworkConnectionType enum
  • Added getBlockNetworkConnectionType function
  • Added getBlockIoCategories function
  • Added RegisteredMachine.get method
  • Added RegisteredStorageType class (#39)
  • Added MachineDefinitionEvents.onNetworkStatsRecieved property (#63)
  • Added NetworkStorageTypeData interface (#63)
  • Added NetworkStatsEventArg interface (#63)
  • Added StandardStorageCategory enum
  • Added StandardStorageType enum
  • Added STANDARD_STORAGE_TYPE_DEFINITIONS constant
  • Added useStandardStorageType function
  • Added "blue" | "white" to StorageTypeColor type alias

Changes and Improvements

  • Changed registerMachine(definition: MachineDefinition, shortId?: string, fallbackToStream?: boolean): void to registerMachine(definition: MachineDefinition): void

Dependencies

  • Updated mcbe-addon-ipc to version ^0.4.0

Bedrock Energistics Core v0.4.0

23 Oct 03:29
Compare
Choose a tag to compare

Requires Minecraft 1.21.4x
This update is released alongside Bedrock Energistics Core API v0.3.0

New

  • Added Minecraft 1.21.4x support. No longer supports Minecraft 1.21.3x.

Changes and Improvements

  • No longer requires the Beta APIs experiment.

Bedrock Energistics Core API v0.3.0

23 Oct 03:29
Compare
Choose a tag to compare

Requires Bedrock Energistics Core v0.4.x
Requires @minecraft/server ^1.15.0
This update is released alongside Bedrock Energistics Core v0.4.0

Changes and Improvements

  • @minecraft/server version ^1.15.0 has been added as a peer dependency.

Bedrock Energistics Core v0.3.0

14 Oct 02:29
Compare
Choose a tag to compare

Requires Minecraft 1.21.3x
This update is released alongside Bedrock Energistics Core API v0.2.0

New

  • Added an option to set a different ID for a machine entity (#42) (be9c3e7)
  • Added a receive handler for machines (#30) (c625935)
  • Added the fluffyalien_energisticscore:consumer._any block tag (#31) (c625935). This tag allows a machine to consume any storage type and can be controlled by the receive handler
  • Added the fluffyalien_energisticscore:io._any block tag (c625935). This allows a machine to connect to any machine network
  • Added custom max machine storage (#33) (3c2181d)
  • Added the button UI element (#3) (4966d6a)
  • Added network links (#51) (01e3e2d)

Changes and Improvements

  • updateUi is no longer required when definition.ui is defined

Fixes

  • Items with data (name tags, enchantments, etc) are no longer allowed in machine slots (#38) (729f0a6)
  • Progress indicator values are now verified to be valid (c9b4357)
  • Fixed an error when using the _disabled type for a storage bar in updateUi (c625935)
  • Machine data is now cleaned up and networks are updated on block explode (#44) (df566bf)
  • Machines are now destroyed on piston move (#47) (abfbb1c)
  • Networks are now updated when a conduit is moved by a piston (abfbb1c)
  • Networks are now updated when a conduit is destroyed by an explosion (abfbb1c)

Contributors: @Fluffyalien1422, @FrederoxDev

Bedrock Energistics Core API v0.2.0

14 Oct 02:29
Compare
Choose a tag to compare

Requires Bedrock Energistics Core v0.3.x
Requires @minecraft/server 1.15.0-beta
This update is released alongside Bedrock Energistics Core v0.3.0

Breaking Changes

Changes

  • Changed type of UpdateUiHandlerResponse.storageBars to Record<string, UiStorageBarElementUpdateOptions> (previously UiStorageBarUpdateOptions[])
  • registerStorageType now throws if definition.id or definition.category starts with _. The _ prefix is reserved for Bedrock Energistics Core

Removals

  • Removed Description interface. Replaced by MachineDefinitionDescription
  • Removed Handlers interface. Replaced by MachineDefinitionHandlers
  • Removed STORAGE_AMOUNT_PER_BAR_SEGMENT constant
  • Removed MAX_MACHINE_STORAGE constant
  • Removed UiStorageBarUpdateOptions interface. Replaced by UiStorageBarElementUpdateOptions

New

  • Added MachineDefinitionDescription interface. This replaces Description and contains new properties.
  • Added MachineDefinitionHandlers interface. This replaces Handlers and contains new properties.
  • Added UiStorageBarElementUpdateOptions. This interfaces replaces UiStorageBarUpdateOptions and contains new properties.
  • Added RegisteredMachine.entityId property
  • Added RegisteredMachine.maxStorage property
  • Added NetworkLinkNode class
  • Added UiStorageBarElement.defaults property
  • Added UiButtonElementUpdateOptions interface
  • Added UiButtonElement interface
  • Added UiButtonElement to UiElement union
  • Added MachineCallbackArg interface
  • Added MachineCallback type alias
  • Added MachineEventCallback type alias
  • Added MachineOnButtonPressedEventArg interface
  • Added MachineDefinitionEvents interface
  • Added MachineRecieveHandlerArg interface
  • Added UpdateUiHandlerResponse.buttons property
  • Added MachineDefinitionHandlers.receive property
  • Added MachineDefinition.events property

Changes and Improvements

  • setMachineStorage no longer throws if the value is greater than MAX_MACHINE_STORAGE

Contributors: @Fluffyalien1422, @FrederoxDev

Bedrock Energistics Core v0.2.0

17 Sep 22:23
Compare
Choose a tag to compare

Requires Minecraft 1.21.3x

Changelog:

  • Added 1.21.3x support. No longer supports 1.21.2x.