| Name | entity enters portal |
| Event Lines | <entity> enters portal |
| Triggers | when an entity enters a portal. That is, when the entity touches a portal block. |
| Generated Examples | on pale_oak_boat enters portal:
after player enters portal: |
| Has Player | when the entity that entered the portal is a player - this adds switches 'flagged:<flag name>' + 'permission:<node>', in addition to the '<player>' link. |
| Has NPC | when the entity that entered the portal is an NPC. |
| Contexts | <context.entity> returns the EntityTag.
<context.location> returns the LocationTag of the portal block touched by the entity.
|
| Has Location | True - This adds the switches 'in:<area>', 'location_flagged:<flag>', ... |
| Group | Entity |
| Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/events/entity/EntityEntersPortalScriptEvent.java#L15 |