Using it

Portals

A portal is a box in a world. Walking into it runs its action.

Create one#

  1. Run /mchub wand (or use the wand button in /mchub admin > Portals).
  2. Left click one corner block and right click the opposite corner block. The box covers those blocks completely.
  3. Run /mchub portal create (id) [action], or press Create in the admin menu.
  4. Set the action, permission and particle in the portal's edit menu.
Key in portals.ymlMeaning
world, min, maxThe world and the two corner blocks
actionAny action (see Actions), for example server:survival
permissionOptional permission to use it
particletheme, NONE or a particle name
displayDraw the resource pack sprite here
enabledSwitch it off without deleting it

A portal triggers once per visit: leave the box and come back (or wait out portals.cooldown-ticks) to use it again. PortalEnterEvent is fired first and can be cancelled. The outline particles only show when a player is within portals.particle-range blocks, and the number is capped with portals.particles-per-portal.

With the resource pack, each portal also shows an animated swirl sprite. It is an item display entity that only players who loaded the pack can see, and it is removed when the plugin stops. Turn it off with portals.pack-display: false. The sprite stays where it is and does not follow the player (portals.display-billboard: fixed); vertical turns it sideways towards you and center always faces you.