🌐 Shared data#
In order to reduce the footprint of the library here are some shared objectives and storages that a module can use:
Shared objectives#
Objectives |
Description |
---|---|
|
Contain constant values. Scoreholder format: |
|
Global score storage. Scoreholder format: |
|
Default score for inputs. Scoreholder format: |
|
Default score for outputs. Scoreholder format: |
Shared storages#
Storages |
Description |
---|---|
|
Contain constant data. Path format: |
|
Global data storage. Path format: |
|
Default storage for inputs. Path format: |
|
Default storage for outputs. Path format: |
|
Fast contextual storage. Only path accepted are |
Shared entities#
These 3 commands can be used at load time to create global entities that can be used anywhere. These entities must be kept in loaded chunks at the end of each tick. They are summoned with specific UUIDs in order to avoid having to rely on the @e
selector. The UUID B5-0-0-0-0
is reserved for contextual temporary entities that should not exist at the end of a tick.
# The most useful entity, used for position, arithmetic, and much more...
execute unless entity B5-0-0-0-1 run summon minecraft:marker 0.0 0.0 0.0 {UUID:[181,0,0,1],Tags:["bs.entity","bs.persistent"],CustomName:'[{"text":"BS ","color":"dark_gray"},{"text":"Marker","color":"aqua"}]'}
# An entity that can be used to interpret text or compute transformations
execute unless entity B5-0-0-0-2 run summon minecraft:text_display 0.0 0.0 0.0 {view_range:0f,UUID:[181,0,0,2],Tags:["bs.entity","bs.persistent"],CustomName:'[{"text":"BS ","color":"dark_gray"},{"text":"Text Display","color":"aqua"}]'}
# An entity that can be used to manipulate loots or compute transformations
execute unless entity B5-0-0-0-3 run summon minecraft:item_display 0.0 0.0 0.0 {view_range:0f,UUID:[181,0,0,3],Tags:["bs.entity","bs.persistent"],CustomName:'[{"text":"BS ","color":"dark_gray"},{"text":"Item Display","color":"aqua"}]'}