Oraxen
Search…
Farmblock Mechanic
How to add your own blocks to the game
only for 1.134.0+

How does it work?

This is a block system for custom plants and crops where you have your own watering system to make the plant grow.

Global configuration

The global configuration has to be used to activate or deactivate this mechanism.
1
noteblock:
2
tool_types:
3
- WOODEN
4
- STONE
5
- IRON
6
- GOLDEN
7
- DIAMOND
8
- NETHERITE
9
farmblock_check_delay: 1000 # ticks between each check for dryout
10
enabled: true
11
12
harvesting:
13
enabled: true
14
15
watering:
16
enabled: true
Copied!

How to create a simple farmblock?

Oraxen item and Pack configuration

In this case you cannot create blocks using this mechanics without having a pre-made model, and you have to create 2 models for each item, one with water and one without
1
epic_box_dry:
2
displayname: "<white>Epic Box"
3
material: PAPER
4
Pack:
5
generate_model: false
6
model: epic_box_dry
7
custom_model_data: 83
8
Mechanics:
9
noteblock:
10
custom_variation: 49
11
model: epic_box_dry
12
hardness: 5
13
farmblock:
14
moistFarmBlockPath: epic_box_wet
15
farmBlockDryOutTime: 30000 # in milliseconds (30000ms = 30s)
16
17
epic_box_wet:
18
displayname: "<white>Epic Box Wet"
19
excludeFromInventory: true # Makes inventory only contain base-block
20
material: PAPER
21
Pack:
22
generate_model: false
23
model: epic_box_wet
24
custom_model_data: 84
25
Mechanics:
26
noteblock:
27
custom_variation: 48
28
hardness: 5
29
model: epic_box_wet
30
farmblock:
31
farmBlockPath: epic_box_dry
32
farmBlockDryOutTime: 30000 # in milliseconds (30000ms = 30s)
Copied!
In this example there are 2 blocks configured separately epic_box_dry is the Farmblock dry and epic_box_wet is the model with water.
farmBlockPath is the Oraxen item to be transformed into if it has no water moistFarmBlockPath is the Oraxen item it will become if it has water. farmBlockDryOutTime the time in which the water will run out

How do I water my blocks?

Oraxen has a watering can system that allows with a custom item to water a Farmblock and this also requires 2 models, one with water and one without, this is an example.
1
epic_watering_vacuum:
2
displayname: '<white>Epic Watering Vacuum'
3
material: LEATHER_HORSE_ARMOR
4
Mechanics:
5
watering:
6
filledCanItem: epic_watering_full #Item to replace when can is filled
7
Pack:
8
generate_model: false
9
model: items/epic_watering_vacuum
10
custom_model_data: 499
11
12
epic_watering_full:
13
displayname: '<white>Epic Watering Full'
14
material: LEATHER_HORSE_ARMOR
15
Mechanics:
16
watering:
17
emptyCanItem: epic_watering_vacuum #Item to replace when can is empty
18
Pack:
19
generate_model: false
20
model: custom/plants/epic_watering_full
21
custom_model_data: 500
Copied!

Do you want to know how to make custom plants? Click here