Oraxen
  • Getting started
  • Frequently Asked Questions
  • Usage
    • Commands
    • Default items
    • Recipes
  • Configuration
    • Understanding the basics
    • Plugin settings
    • Items (beginners)
    • Items (advanced)
      • Dyeable Items
    • Custom Armors
      • Component Based (1.21.2+)
      • Trims Based (1.20-1.21.1)
      • Shader Based (1.18-1.19.4)
    • Custom HUD
    • Item Appearance
    • Glyphs
      • Custom Gui
  • Mechanics
    • Introduction
    • All mechanics
      • Custom mechanic
      • clickAction Mechanic
    • Furniture Mechanic
      • Furniture Position
      • Display-Entity Furniture
      • Farming Mechanic
    • NoteBlock mechanic
      • Stripped log Mechanic
      • Directional mechanic
      • Farmblock Mechanic
    • StringBlock Mechanic
      • Sapling Mechanic
  • Compatibility
    • BossShopPro - shop
    • CrateReloaded - crates
    • ModelEngine - custom mobs
    • MythicMobs - custom mobs
    • TrMenu - custom inventories
    • MMoItems
    • MythicCrucible
    • HappyHUD
    • World Generators
      • Iris World Generator
      • EpicWorldGenerator
      • Custom Ore Generator
      • RealisticWorldGenerator
  • Vendors
    • Vendor Guidelines
  • Developers
    • Create your own Mechanic
    • Add Compatibility with a plugin
    • Custom hosting service
    • API
Powered by GitBook
On this page
  • How does it work?
  • Global configuration
  • How to create a simple farmblock?
  • Oraxen item and Pack configuration
  • How do I water my blocks?
  • Do you want to know how to make custom plants? Click here

Was this helpful?

  1. Mechanics
  2. NoteBlock mechanic

Farmblock Mechanic

How to add your own blocks to the game

PreviousDirectional mechanicNextStringBlock Mechanic

Last updated 5 months ago

Was this helpful?

If you are looking to add customizable farming mechanics to your server, we heavily recommend looking into . It is a well-made plugin with full Oraxen compatibility.\

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.

noteblock:
  tool_types:
    - WOODEN
    - STONE
    - IRON
    - GOLDEN
    - DIAMOND
    - NETHERITE
  farmblock_check_delay: 1000 # ticks between each check for dryout
  enabled: true

harvesting:
  enabled: true

watering:
  enabled: true

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

epic_box_dry:
  displayname: "<white>Epic Box"
  material: PAPER
  Pack:
    generate_model: false
    model: epic_box_dry
  Mechanics:
    noteblock:
      custom_variation: 49
      model: epic_box_dry
      hardness: 5
      farmblock:
        moistFarmBlockPath: epic_box_wet
        farmBlockDryOutTime: 30000 # in milliseconds (30000ms = 30s)

epic_box_wet:
  displayname: "<white>Epic Box Wet"
  excludeFromInventory: true # Makes inventory only contain base-block
  material: PAPER
  Pack:
    generate_model: false
    model: epic_box_wet
  Mechanics:
    noteblock:
      custom_variation: 48
      hardness: 5
      model: epic_box_wet
      farmblock:
        farmBlockPath: epic_box_dry
        farmBlockDryOutTime: 30000 # in milliseconds (30000ms = 30s)

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.

epic_watering_vacuum:
  displayname: '<white>Epic Watering Vacuum'
  material: LEATHER_HORSE_ARMOR
  Mechanics:
    watering:
      filledCanItem: epic_watering_full #Item to replace when can is filled
  Pack:
    generate_model: false
    model: items/epic_watering_vacuum

epic_watering_full:
  displayname: '<white>Epic Watering Full'
  material: LEATHER_HORSE_ARMOR
  Mechanics:
    watering:
      emptyCanItem: epic_watering_vacuum #Item to replace when can is empty
  Pack:
    generate_model: false
    model: custom/plants/epic_watering_full

Do you want to know how to make custom plants?

CustomCrops
Click here
Page cover image