Skip to content

Dimension Requirement

Frinn38 edited this page Jan 30, 2022 · 2 revisions

Description

Dimension Requirement is used to make the Custom Machine Recipe work only in some dimensions of the world.

The Dimension 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 in certains dimensions of the world.

The type of Dimension Requirement is : "custommachinery:dimension".

Properties

The Dimension Requirement have 2 mandatory properties and 1 optional property.

Mandatory properties

Type

"type": "custommachinery:dimension"
Filter

Name : filter

Description :

A single or array of dimensions ID to check if the machine is in or not.
The dimensions ID must mus be like "minecraft:overworld" or any custom dimensions.
This list may be a whitelist or a blacklist depending of the "blacklist" property.

Default :

Empty, so any biomes will be allowed if the filter is a whitelist.

Example :

"filter": ["minecraft:overworld"]

The recipe will only run if the machine is in the overworld.

Optional properties

Blacklist

Name : blacklist

Description :

A Boolean value used to define if the "filter" property should be a blacklist instead of a whitelist.

Default :

"blacklist": false

The "filter" property will act as a whitelist.

Example :

"blacklist": true

The "filter" property will act as a blacklist.

Example

A dimension requirement that will make the recipe works in all dimensions but the overworld :

{
    "type": "custommachinery:dimension",
    "filter": "minecraft:overworld",
    "blacklist": true
}
Clone this wiki locally