Releases: Fluffyalien1422/bedrock-energistics-core
Bedrock Energistics Core v0.6.0
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
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
Bedrock Energistics Core v0.5.0
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
andwhite
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
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
toinit(namespace: string): void
- Removed
updateMachineNetworks
function (#59) - UseMachineNetwork.updateWithBlock
instead - Removed
updateMachineConnectableNetworks
function (#59) - UseMachineNetwork.updateConnectable
instead - Removed
updateMachineAdjacentNetworks
function (#59) - UseMachineNetwork.updateAdjacent
instead - Removed
queueSend
function (#59) - UseMachineNetwork#queueSend
instead - Removed
getRegisteredMachine
function - UseRegisteredMachine.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"
toStorageTypeColor
type alias
Changes and Improvements
- Changed
registerMachine(definition: MachineDefinition, shortId?: string, fallbackToStream?: boolean): void
toregisterMachine(definition: MachineDefinition): void
Dependencies
- Updated
mcbe-addon-ipc
to version^0.4.0
Bedrock Energistics Core v0.4.0
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
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
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 thereceive
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 whendefinition.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 inupdateUi
(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
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
toRecord<string, UiStorageBarElementUpdateOptions>
(previouslyUiStorageBarUpdateOptions[]
) registerStorageType
now throws ifdefinition.id
ordefinition.category
starts with_
. The_
prefix is reserved for Bedrock Energistics Core
Removals
- Removed
Description
interface. Replaced byMachineDefinitionDescription
- Removed
Handlers
interface. Replaced byMachineDefinitionHandlers
- Removed
STORAGE_AMOUNT_PER_BAR_SEGMENT
constant - Removed
MAX_MACHINE_STORAGE
constant - Removed
UiStorageBarUpdateOptions
interface. Replaced byUiStorageBarElementUpdateOptions
New
- Added
MachineDefinitionDescription
interface. This replacesDescription
and contains new properties. - Added
MachineDefinitionHandlers
interface. This replacesHandlers
and contains new properties. - Added
UiStorageBarElementUpdateOptions
. This interfaces replacesUiStorageBarUpdateOptions
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
toUiElement
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 thanMAX_MACHINE_STORAGE
Contributors: @Fluffyalien1422, @FrederoxDev
Bedrock Energistics Core v0.2.0
Requires Minecraft 1.21.3x
Changelog:
- Added 1.21.3x support. No longer supports 1.21.2x.