UNPKG

@minecraft/creator-tools

Version:

Minecraft Creator Tools command line and libraries.

6 lines 1.45 kB
{ "fields": [], "description": "\r\n\t\tEntity events can be structured by a combination of 'sequence' and 'randomize' nodes.\r\n\t\t'sequence' nodes are array nodes and will execute all entries in order from first element to last.\r\n\t\t'randomize' nodes are array nodes that will pick one entry to execute, based on a weight.\r\n\t\t'filters' can also be added within 'sequence' and 'randomize' nodes to restrict execution.\r\n\r\n\t\tWithin 'randomize' and 'sequence' nodes, you can specify a few operations.\r\n\t\t'trigger', 'filters', 'add', and 'remove'.\r\n\t\tYou can read about 'filters' in the 'Filters' section of the documentation.\r\n\t\t'trigger' can be used to fire additional entity events when an event is hit.\r\n\t\t'add' can be used to add component groups to your entity.\r\n\t\t'remove' can be used to remove component groups from your entity.\r\n\r\n\t\tWhen an event is received, the effects of that event are determined immediately, but those changes\r\n\t\tare not applied to the entity until the entity ticks on the server side of the game. This means\r\n\t\tfilters in later entries in a 'sequence' array won't see changes from earlier in that array.\r\n\t\tIt also means that when one entity sends an event to another entity, it could take effect on the same\r\n\t\tgame tick or on the next tick, depending on whether the target entity has already been updated.\r\n\t", "title": "Overview", "id": "Overview" }