Advanced-Portals/assets/js/3c2472dd.6d0c3079.js

1 line
11 KiB
JavaScript

"use strict";(self.webpackChunkadvanced_portals_docs=self.webpackChunkadvanced_portals_docs||[]).push([[997],{3905:function(e,t,a){a.d(t,{Zo:function(){return s},kt:function(){return u}});var n=a(7294);function o(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function r(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function l(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?r(Object(a),!0).forEach((function(t){o(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):r(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}function i(e,t){if(null==e)return{};var a,n,o=function(e,t){if(null==e)return{};var a,n,o={},r=Object.keys(e);for(n=0;n<r.length;n++)a=r[n],t.indexOf(a)>=0||(o[a]=e[a]);return o}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n<r.length;n++)a=r[n],t.indexOf(a)>=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(o[a]=e[a])}return o}var p=n.createContext({}),d=function(e){var t=n.useContext(p),a=t;return e&&(a="function"==typeof e?e(t):l(l({},t),e)),a},s=function(e){var t=d(e.components);return n.createElement(p.Provider,{value:t},e.children)},c={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var a=e.components,o=e.mdxType,r=e.originalType,p=e.parentName,s=i(e,["components","mdxType","originalType","parentName"]),m=d(a),u=o,k=m["".concat(p,".").concat(u)]||m[u]||c[u]||r;return a?n.createElement(k,l(l({ref:t},s),{},{components:a})):n.createElement(k,l({ref:t},s))}));function u(e,t){var a=arguments,o=t&&t.mdxType;if("string"==typeof e||o){var r=a.length,l=new Array(r);l[0]=m;var i={};for(var p in t)hasOwnProperty.call(t,p)&&(i[p]=t[p]);i.originalType=e,i.mdxType="string"==typeof e?e:o,l[1]=i;for(var d=2;d<r;d++)l[d]=a[d];return n.createElement.apply(null,l)}return n.createElement.apply(null,a)}m.displayName="MDXCreateElement"},5862:function(e,t,a){a.r(t),a.d(t,{frontMatter:function(){return i},contentTitle:function(){return p},metadata:function(){return d},toc:function(){return s},default:function(){return m}});var n=a(7462),o=a(3366),r=(a(7294),a(3905)),l=["components"],i={sidebar_position:2},p="Commands",d={unversionedId:"commands",id:"commands",title:"Commands",description:"All commands included in Advanced Portals are listed below along with their permissions.",source:"@site/docs/commands.md",sourceDirName:".",slug:"/commands",permalink:"/docs/commands",editUrl:"https://github.com/sekwah41/Advanced-Portals/edit/website/docs/commands.md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2},sidebar:"tutorialSidebar",previous:{title:"Tutorial Intro",permalink:"/docs/intro"},next:{title:"Portal Tags",permalink:"/docs/portal-tags"}},s=[{value:"Portal Command",id:"portal-command",children:[{value:"<code>/portal create (tags...)</code>",id:"portal-create-tags",children:[],level:3},{value:"<code>/portal selector</code> or <code>/portal wand</code>",id:"portal-selector-or-portal-wand",children:[],level:3},{value:"<code>/portal portalblock</code>",id:"portal-portalblock",children:[],level:3},{value:"<code>/portal endportalblock</code>",id:"portal-endportalblock",children:[],level:3},{value:"<code>/portal gatewayblock</code>",id:"portal-gatewayblock",children:[],level:3},{value:"<code>/portal disablebeacon (portalname)</code>",id:"portal-disablebeacon-portalname",children:[],level:3},{value:"<code>/portal select</code>",id:"portal-select",children:[],level:3},{value:"<code>/portal unselect</code>",id:"portal-unselect",children:[],level:3},{value:"<code>/portal remove</code>",id:"portal-remove",children:[],level:3},{value:"<code>/portal help</code>",id:"portal-help",children:[],level:3}],level:2},{value:"Destination Command",id:"destination-command",children:[{value:"<code>/desti create</code>",id:"desti-create",children:[],level:3},{value:"<code>/desti remove</code>",id:"desti-remove",children:[],level:3},{value:"<code>/desti list</code>",id:"desti-list",children:[],level:3},{value:"<code>/desti warp (desti name)</code>",id:"desti-warp-desti-name",children:[],level:3}],level:2}],c={toc:s};function m(e){var t=e.components,a=(0,o.Z)(e,l);return(0,r.kt)("wrapper",(0,n.Z)({},c,a,{components:t,mdxType:"MDXLayout"}),(0,r.kt)("h1",{id:"commands"},"Commands"),(0,r.kt)("p",null,"All commands included in Advanced Portals are listed below along with their permissions."),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Note:")," all ",(0,r.kt)("inlineCode",{parentName:"p"},"/portal")," commands can also be used with ",(0,r.kt)("inlineCode",{parentName:"p"},"/advancedportals")," or ",(0,r.kt)("inlineCode",{parentName:"p"},"/aportals")," instead."),(0,r.kt)("p",null,"Same goes for all /destination commands can be used with /desti"),(0,r.kt)("p",null,"Also if you want blocks such as nether portals not to break when being placed you will need to define the portal before placing them. This is so the physics updates know not to mess with vanilla portals being broken or other plugins :)"),(0,r.kt)("h2",{id:"portal-command"},"Portal Command"),(0,r.kt)("p",null,"Usable Alias: ",(0,r.kt)("inlineCode",{parentName:"p"},"/portal")," ",(0,r.kt)("inlineCode",{parentName:"p"},"/ap")," ",(0,r.kt)("inlineCode",{parentName:"p"},"/portals")," ",(0,r.kt)("inlineCode",{parentName:"p"},"/aportal")," ",(0,r.kt)("inlineCode",{parentName:"p"},"/advancedportals")),(0,r.kt)("h3",{id:"portal-create-tags"},(0,r.kt)("inlineCode",{parentName:"h3"},"/portal create (tags...)")),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Permission:")," ",(0,r.kt)("inlineCode",{parentName:"p"},"advancedportals.portal")),(0,r.kt)("p",null,"This command is used to create a portal. The behaviour of the portal can be determined by the tags given (see list below), but a name must tag must always be given ",(0,r.kt)("inlineCode",{parentName:"p"},"name:some_name_here")),(0,r.kt)("p",null,"As a side note, make sure to check the ",(0,r.kt)("inlineCode",{parentName:"p"},"triggerblock:")," has been set if you are not using nether portal blocks. These are blocks that ",(0,r.kt)("strong",{parentName:"p"},"you need to be INSIDE")," so blocks such as water and even cobwebs will work, but cobblestone will not be a suitable triggerblock."),(0,r.kt)("p",null,"For a list of tags and info, check out the ",(0,r.kt)("a",{parentName:"p",href:"/docs/portal-tags"},"tags page"),"."),(0,r.kt)("h3",{id:"portal-selector-or-portal-wand"},(0,r.kt)("inlineCode",{parentName:"h3"},"/portal selector")," or ",(0,r.kt)("inlineCode",{parentName:"h3"},"/portal wand")),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Permission:")," ",(0,r.kt)("inlineCode",{parentName:"p"},"advancedportals.createportal")),(0,r.kt)("p",null,"This gives you the mighty portal axe, if UseOnlyServerMadeAxe is true then this one will still work, but the normal iron axe will still be available to be used in survival for admins. (instead of always trying to make portals)"),(0,r.kt)("h3",{id:"portal-portalblock"},(0,r.kt)("inlineCode",{parentName:"h3"},"/portal portalblock")),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Permission:")," ",(0,r.kt)("inlineCode",{parentName:"p"},"advancedportals.portal")),(0,r.kt)("p",null,"Gives you a portal block that you can build with. (If the rotation is in the wrong place one next to it and then replace it to get the right rotation)"),(0,r.kt)("h3",{id:"portal-endportalblock"},(0,r.kt)("inlineCode",{parentName:"h3"},"/portal endportalblock")),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Permission:")," ",(0,r.kt)("inlineCode",{parentName:"p"},"advancedportals.portal")),(0,r.kt)("p",null,"Gives you an end portal block that you can build with."),(0,r.kt)("h3",{id:"portal-gatewayblock"},(0,r.kt)("inlineCode",{parentName:"h3"},"/portal gatewayblock")),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Permission:")," ",(0,r.kt)("inlineCode",{parentName:"p"},"advancedportals.portal")),(0,r.kt)("p",null,"Gives you an end gateway block that you can build with."),(0,r.kt)("h3",{id:"portal-disablebeacon-portalname"},(0,r.kt)("inlineCode",{parentName:"h3"},"/portal disablebeacon (portalname)")),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Permission:")," ",(0,r.kt)("inlineCode",{parentName:"p"},"advancedportals.build")),(0,r.kt)("p",null,"Needs DisableGatewayBeam to be set to true in the config. Though also triggers on create or chunk load. This is just a backup method."),(0,r.kt)("h3",{id:"portal-select"},(0,r.kt)("inlineCode",{parentName:"h3"},"/portal select")),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Permission:")," ",(0,r.kt)("inlineCode",{parentName:"p"},"advancedportals.createportal")),(0,r.kt)("p",null,"After the command is entered, punch inside a portal region, and it will select that portal."),(0,r.kt)("h3",{id:"portal-unselect"},(0,r.kt)("inlineCode",{parentName:"h3"},"/portal unselect")),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Permission:")," ",(0,r.kt)("inlineCode",{parentName:"p"},"advancedportals.createportal")),(0,r.kt)("p",null,"Use to remove the current portal selection. (as it can mess with certain commands)"),(0,r.kt)("h3",{id:"portal-remove"},(0,r.kt)("inlineCode",{parentName:"h3"},"/portal remove")),(0,r.kt)("p",null,(0,r.kt)("strong",{parentName:"p"},"Permission:")," ",(0,r.kt)("inlineCode",{parentName:"p"},"advancedportals.removeportal")),(0,r.kt)("p",null,"Enter this command to destroy a portal with a set name. If the argument is left blank, it will destroy the currently selected portal."),(0,r.kt)("h3",{id:"portal-help"},(0,r.kt)("inlineCode",{parentName:"h3"},"/portal help")),(0,r.kt)("p",null,"Displays the help message."),(0,r.kt)("h2",{id:"destination-command"},"Destination Command"),(0,r.kt)("p",null,"Usable Alias: ",(0,r.kt)("inlineCode",{parentName:"p"},"/desti")," ",(0,r.kt)("inlineCode",{parentName:"p"},"/destination")),(0,r.kt)("p",null,"Permission (applies to all): ",(0,r.kt)("inlineCode",{parentName:"p"},"advancedportals.desti")),(0,r.kt)("h3",{id:"desti-create"},(0,r.kt)("inlineCode",{parentName:"h3"},"/desti create")),(0,r.kt)("p",null,"This the command creates a new destination with the location data from your player (your player position and direction your facing)."),(0,r.kt)("h3",{id:"desti-remove"},(0,r.kt)("inlineCode",{parentName:"h3"},"/desti remove")),(0,r.kt)("p",null,"Remove a destination with a specific name. (portals will still attempt to warp to this name but say no destination exists)"),(0,r.kt)("h3",{id:"desti-list"},(0,r.kt)("inlineCode",{parentName:"h3"},"/desti list")),(0,r.kt)("p",null,"A list of created destinations."),(0,r.kt)("h3",{id:"desti-warp-desti-name"},(0,r.kt)("inlineCode",{parentName:"h3"},"/desti warp (desti name)")),(0,r.kt)("p",null,"Teleport to the named destination."))}m.isMDXComponent=!0}}]);