🌐 Shared Resources#
To minimize redundancy and enhance efficiency, the library provides shared objectives, storages, blocks, and entities that modules can leverage.
Objectives#
Objectives |
Description |
---|---|
|
Stores input values. Format: |
|
Stores output values. Format: |
|
Temporary contextual objective for fast computations. Format: |
|
Global score storage. Format: |
|
Stores constant values. Format: |
|
Stores values used in callbacks. Format: |
Storages#
Namespaces |
Description |
---|---|
|
Stores input data. Path: |
|
Stores output data. Path: |
|
Fast contextual storage. Uses |
|
General-purpose global storage. Path: |
|
Stores constant data. Path: |
|
Stores data used in callbacks. Path: |
Blocks#
These commands can be used at load time to create blocks that can be used anywhere. These blocks must be kept in loaded chunks (-30000000 1600
).
# Block for manipulating loots
setblock -30000000 0 1606 minecraft:decorated_pot
# Command block for system time (command block output)
setblock -30000000 0 1605 minecraft:repeating_command_block[facing=up]{auto:1b,Command:"help me",TrackOutput:1}
Entities#
Global entities are summoned with specific UUIDs, ensuring they remain accessible and avoid selector conflicts. They must persist in always-loaded chunks (-30000000 1600
) at the end of each tick. The UUID B5-0-0-0-0
is reserved for temporary contextual entities that must not persist beyond the current tick.
# Marker for position, arithmetic, and various utilities
execute unless entity B5-0-0-0-1 run summon minecraft:marker -30000000 0 1600 {UUID:[I;181,0,0,1],Tags:["bs.entity","bs.persistent","smithed.entity","smithed.strict"]}
# Text display entity for interpreting text or computing transformations
execute unless entity B5-0-0-0-2 run summon minecraft:text_display -30000000 0 1600 {UUID:[I;181,0,0,2],Tags:["bs.entity","bs.persistent","smithed.entity","smithed.strict"],view_range:0f,alignment:"center"}
# Item display entity for manipulating loots or computing transformations
execute unless entity B5-0-0-0-3 run summon minecraft:item_display -30000000 0 1600 {UUID:[I;181,0,0,3],Tags:["bs.entity","bs.persistent","smithed.entity","smithed.strict"],view_range:0f}