Orb of Origin
An item that can change the origin(s) of the player upon "use" (right-click).
By default, the Orb of Origins item doesn't have a crafting recipe and lets you pick an origin for every origin layer that's available. You can change either of these things by creating a recipe (JSON file) for the item, and giving the item a custom NBT respectively.
Item ID: origins:orb_of_origin
Creating a custom recipe
You can use this website to easily create a recipe. To create a recipe for the Orb of Origins item using the website, you can follow these steps:
- In the 'Ingredients' section on the right side, click on the 'Add Item' button.
- Enter
Orb of Origininside the 'Name' text box andorigins:orb_of_origininside the 'Id' text box. - Click the 'Add' button and drag-and-drop the newly added item that has a black and pink texture into the crafting result slot just beside the crafting grid slots.
- Create your own pattern.
- Download as a datapack by clicking on the 'Download datapack.zip' button below.
Origin (and origin layer) specific Orb
Origins adds an origins:origin item component, which makes it possible for items to open the origin selection GUI and enable the player to choose an origin when the said item is used. The Orb of Origin item has this item component defined by default.
Here are some examples of how it can be used:
-
This example will define angive @s minecraft:stick[origins:origin = []]origins:origincomponent to a Stick item that enables the player to select from all the available and enabled origin layers when the item is used. -
This example will define angive @s origins:orb_of_origin[origins:origin = [{layer: "origins:origin"}, {layer: "example:hello_world"}]]origins:origincomponent to an Orb of Origins item that enables the player to only select an origin from the defined origin layers (origins:originandexample:hello_world) when the item is used. -
This example will define angive @s minecraft:egg[origins:origin = [{layer: "origins:origin", origin: "origins:arachnid"}]]origins:origincomponent to an Egg item that will automatically set the origin of the player in theorigins:originorigin layer toorigins:arachnidorigin.