Oraxen
Search…
Introduction
Aka how to give superpowers to your items

Introduction

It's easy to make very nice items on oraxen and change their abilities but how about doing a lot more? The mechanics allow you to assign special abilities with a specific configuration to each item. It's easy to make very nice items on oraxen and change their abilities but how about doing a lot more? The mechanics allow you to assign special abilities with a specific configuration to each item. For example you can create a pickaxe than can mine bedrock or a sword which steals hearts from your opponents.

How to add a mechanic to an item?

Items dedicated configurations

As you've seen in the dedicated part of the beginner tutorial, you just need to add a new section called mechanics which will contain all your wanted mechanics in subsections.
1
example_item:
2
material: DIAMOND_AXE
3
Mechanics:
4
# Your mechanics go here
5
6
example_mechanic:
7
example_option: true
8
9
another_example_mechanic:
10
another_option: "example text"
Copied!
Each subsection of a mechanic inside an item configuration allows you to change various settings of your mechanic, and only for this item. What that means is that if for example you add bigmining mechanic to a pickaxe and you configure it to mine 5*5 blocs, you can also use it on another item and configure this other item to mine only 3*3 blocs.

Global configurations

These settings are saved into the file mechanics.yml at the root of your Oraxen folder. They allow you to change global parameters for all item using this mechanic. You won't need it often but it can be useful. For example for the bedrockbreak mechanic which allows you to break bedrock. Most of servers don't want their player to break the ground of the world : the last layer of bedrock. In the global configuration of bedrockbreak mechanic you can change toggle this (and this will get applied to all your items using this mechanic).
1
bedrockbreak:
2
enabled: true
3
disable_on_first_layer: false # this
4
durability_cost: 500
Copied!
Last modified 1yr ago