🏷️ Nomenclature & Conventions#
Bookshelf respects certain naming conventions in order to reduce the effort needed to read and understand code.
Files |
Use the snake_case convention. A few names are reserved for special functions at the root of each module: Example: |
Entity tags |
Use the snake_case convention. Must be prefixed with Example: |
Data storage |
Use the snake_case convention. Is limited to what is defined in the Shared Resources section Example: |
Objectives |
Use the snake_case convention and Example: |
Scoreholders |
Use the snake_case convention. Must be prefixed with the name of the module. Each score should also be prefixed by either Example: |
Moreover, Bookshelf follows Smithed’s conventions, especially for the entity tags. Here are the entity tags used in Bookshelf:
smithed.entity |
Used to identify entities that are created by datapacks and that should not be modified by datapacks targeting vanilla entities |
smithed.strict |
Used to identify entities that are created by datapacks and that should not be modified by other datapacks |
bs.persistent |
Used to identify Bookshelf entities that are persistent and should not be despawned/killed |
bs.entity |
Used to identify entities that are created by Bookshelf |