This module is the heart of the lib. It contain functions (detailed below) that can be usefull to design other Bookshelf modules, but are not directly designed to be used by the mapmaker. Do not remove or edit this module.
This function allow to create a new default Bookshelf entity (currently markers).
positioned <x> <y> <z>
The position where you want to summon the new entity
- (state) a new entity was created
It can be identified by the tag
bs.newand that is automatically cleared if it is not used anymore. A new call to the function will clear every entity wearing the tag
Allows to cleanly delete an entity. This function erases the scores of the entity and teleports it to layer 0 before killing it.
The entities to kill. Cannot be a player.
All the entity that have this tag will never be killed by this function.
- (state) removed entities
The entities that are not protected have been killed without any animation (teleported under the map before being killed).
The entities that the system didn’t killed get this tag. This tag is removed from all entities when the function is called in order to represent only the entities that was spared from the last execution.
Kill all zombies:
# Once execute as @e[type=zombie] run function bs.core:entity/safe_kill
💬 Did it help you?
Feel free to leave your questions and feedbacks below!