Weather

Make the recipe only work when it rain, or snow, or not

Weather requirement is used to make the recipe work only under some time of the Minecraft weather cycle.

The weather that this requirement use is dependent to the dimension the machine is in.

To use this requirement you must provide the weather type the machine will need to work.

The requirement type of weather requirement is : "custommachinery:weather".

Properties

The weather requirement has 2 mandatory properties and 1 optional property.

Mandatory properties

"type": "custommachinery:weather" //Mandatory to define a weather requirement.
Weather

Name : weather

Description :

The weather type needed for the machine to work.

The available weather types are these :

  • clear

  • rain

  • snow

  • thunder

Note that if you define the weather type as rain and it's actually thundering the requirement will success because it's still raining during weather storm. This is also true for snow but only in cold biomes/high altitudes.

Example :

"weather": "rain"

The recipe will only start if it's raining on the machine.

Optional property

On machine

Name : onmachine

Description :

A boolean that define if the weather must "touch" the machine. If true the machine must see the sky and be at a place the weather required is happening. If false the machine can be anywhere in the world, as long as the world weather is the same as the requirement weather it will success.

Default : true

The machine must see the specified weather.

Example :

"onmachine": false

The specified weather can be anywhere in the world.

Example

A weather requirement that will make the recipe start only if it's raining in the dimension the machine is in. onmachine is false here so the machine can be in a desert or in a cave, as long as it's raining anywhere in the world the recipe process will start.

{
    "type": "custommachinery:weather",
    "weather": "rain",
    "onmachine": false
}

Last updated