-
Notifications
You must be signed in to change notification settings - Fork 17
Position Requirement
Position Requirement is used to make the Custom Machine Recipe work only in some positions of the world.
The Position Requirement is an input only requirement, meaning that you don't have to define the "mode" property. It is used only to restrict or allow the usage of a recipe at certains positions of the world.
The Requirement type of Position Requirement is : "type": "custommachinery:position"
Put this in the requirement json to define a Position Requirement.
Beside the "type" mandatory property the Position Requirement have 2 optional properties.
Description : An array of Position Comparators used to check if the machine is in certains positions of the world.
A position comparator is defined by the axis you want to check (X/Y/Z), the mode of the comparator and the actual position you want to compare.
The available modes are :
- ">>" Strictly higher
- ">=" Higher and equals
- "==" Equals
- "<=" Lower and equals
- "<<" Strictly lower
All the Positions Coparators must be match for the position to be validated.
Default : Empty, so any positions are allowed.
Example : "positions": ["x<<0", "z<<0"]
The recipe will run only if the machine is in negative coordinates in both X and Z axis.
Description : A boolean, if false the requirement will not display in jei, if true it will display as a little green "+" below the recipe.
Default : true (The requirement will display)
Example : "jei": false
(The requirement will not display)
A Position Requirement that will allow the recipe to run only if the machine is higher than the 128 y layer :
{
"type": "custommachinery:position",
"positions": ["y>>128"]
}
3. Machine GUI
- Dump Element
- Energy Element
- Fluid Element
- Fuel Element
- Player Inventory Element
- Progress Bar Element
- Reset Element
- Slot Element
- Status Element
- Text Element
- Texture Element
5. Catalysts
- Biome Requirement
- Block Requirement
- Command Requirement
- Dimension Requirement
- Drop Requirement
- Durability Requirement
- Effect Requirement
- Energy Requirement
- Energy Per Tick Requirement
- Entity Requirement
- Fluid Requirement
- Fluid Per Tick Requirement
- Fuel Requirement
- Item Requirement
- Light Requirement
- Loot Table Requirement
- Position Requirement
- Structure Requirement
- Redstone Requirement
- Time Requirement
- Weather Requirement