promotional bannermobile promotional banner
premium banner
Minecraft mod to turn anything into a portal to a dimension

Description

Teleport Triggers a.k.a Teleportals

 

I needed a mod like this for a mod-pack I'm working on, and I thought it would be useful to others as well. This mod will let you set a certain criteria that will cause the player to be teleported to a position in the current dimension or another dimension.  Pattern matching against the NBTTag or the Block state is also available so you can create dimensional "keys" like only a certain set of items in a chest will trigger a teleport.

 

The following criteria are currently supported:

  • trigger - This can be one of: click (The player must right-click on a given block or with a given item) block (The player must walk across the given block) pos (the player must be a the given position in the world)
  • item - the player must have this item (specified by registry name) in the main hand when right-clicking
  • block - the player must be right-clicking on this block (trigger = click), or the player must walk over this block (trigger = block)
  • moveto - teleport the player to this x, y, z location. use "0" for y to have the mod find a safe height for the player nearest sea level
  • move - teleport the player x, y, z blocks from their current position, if only value is specified, the player will be teleported that may blocks in the direction they are looking.
  • pos - the position the player must be at (trigger = pos) use "*" to indicate the x/y/z value should be ignored
  • base - build a small platform out of this block (specified by registry name) at the destination of the player
  • itemmatch - This is a regex (if value start with a slash "/") or a partial string match against the item's name and/or NBTtag
  • blockmatch - This is a regex (if value start with a slash "/") or a partial string match against the block name and/or NBTtag that the payer is looking at
  • match - will translate to "itemmatch" if an "item" is specified, otherwise translates to "blockmatch"
  • from - list of dimension IDs that the player must be in

 

More information can be found here