The different mechanics available by default and their configurations sorted by category
This mechanic allows you to set food-related properties for any food item. This means you can create foods which refill different amounts of hunger and saturation. It also lets you set a replacement item for when the food has been consumed.
Below is a config example of the mechanic-part for a custom food:
oraxen_item: any_oraxen_itemid # Can also be minecraft_type or crucible_item
effect_probability: 0.35 # The probability of the effect being applied, default is 1.0 / 100%
hunger: # Must be a valid potion effect, can find a list https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/potion/PotionEffectType.html
amplifier: 1 # If not set, defaults to 0
duration: 20 # Duration in seconds. If not set, defaults to 1 second
is_ambient: true # If not set, defaults to true
has_particles: true # If not set, defaults to true
has_icon: true # If not set, defaults to true
This allows you to turn any item into a backpack.\
title: "<red>Backpack" #Optional, Default: "Backpack"
open_sound: "entity.shulker.open" #Optional, Default: "entity.shulker.open"
close_sound: "entity.shulker.close" #Optional, Default: "entity.shulker.close"
This allows you to make custom music discs with custom sounds. To add a sound simply follow the default example by adding it into
songis the namespace:sound.name as you defined it in
sound.yml. If your sound.yml entry looks like this:
This means your .ogg file is in the path
Oraxen/sounds/mysong.ogg, and your sound-ID is
my_music_disc_song.mysongwith the namespace minecraft. If you are importing sounds.json into another namespace, the namespace would naturally not be minecraft
This allows you to change the durability of an item created with Oraxen. Minecraft vanilla wasn't made to handle that kind of modifications, this is why this system is not perfect. You'll not see the good durability on your item, it will just work as a percentage. What that means is that if for example you create a pickaxe based off the wooden pickaxe (which has 59 of durability by default) and you change it to 5900, you'll still see 59 of durability on your item. But you'll need to break 100 blocks in order to lose of one durability. The cool thing is that the displayed bar will be updated correctly.
There are two options available : ratio and fixed_amount. You can put only one of these two options on the same item. Ratio allows you to repair a percentage of your item (0.15 will repair 15% of maximum durability while 1.0 will repair it to 100%). Fixe amount repairs a fixed amount of your item durability (put 10 if you want to add 10 durability points to your item for example).
value: 5000 #diamond sword is 1561 by default
This mechanic allows you to use an item to repair another one (which uses vanilla durability or oraxen custom). By default this mechanic is binded to iron, gold and diamond cogs. To use them you just need to click on the item you want to repair.
ratio: 0.10 # 10%
fixed_amount: 10 # or 10 durability points
If you enable oraxen_durability_only, this mechanic will only work with items using oraxen Durability mechanic.
This allows you to execute commands (as the console, a player or op player). If this option is not often the most elegant it has the merit of simplifying a lot of things. You can create a cooldown between usages, check if the player has a specific permission and use the item (understand decrease its amount by one when the command is performed).
cooldown: 5 # example cooldown in seconds. This is optional
permission: "my.awesome.perm" # required permission. This is optional
one_usage: true # should the amount decrease when used? Default: false
# e.g. to kill the player
- "kill %p%"
# e.g. the player performs /spawn
# e.g. the player gives himself a diamond sword
- "give diamond_sword 1"
This allows you to bind a Potion Effect to an armor (or a hat) so that when you equip it you'll get the effect.
night_vision: # the potion effect type
ambient: true # Makes potion effect produce more, translucent, particles.
particles: true # whether this effect has particles or not
icon: true # whether this effect has an icon or not
Do you want to show a cool particle effect when a player holds your item? The Aura mechanic is your way to go. You can find a list of available particles here: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Particle.html
type: simple # available types: [ simple, ring, helix ]
Do you want to create a hat? Use this mechanic so that you'll be able to put any item on your head.
With this mechanic, you can change the texture of an item using an item with Skin mechanic.
value: SUPER_MATERIAL # your itemType
With this mechanic, you can avoid the players to lose their item when they die.
This mechanic will allow the item to be a skin for Skinnable mechanic, skin and Skinnable item must have the same material to apply the texture.
consume: true #consume 1 skin item
Have you ever dreamed of being able to throw lightning bolts? This is for you.
delay: 20000 # in milliseconds (20000ms = 20s)
- lightning_bolts_amount: how many lightning bolts will be spawned?
- random_location_variation: the random variation range between bolts (in blocks)
- delay: delay between usage in milliseconds (1000ms = 1s)
Want to steal hearts to your opponents when you hit them?
amount: 2 # the amount of 1/2 hearts that you'll steal to your opponents
EnergyBlast is a very cool mechanic that creates a cone of particles to attack entities.
type: REDSTONE #Only REDSTONE particle can change size and color.
Send wither skulls when right clicking!
charged: false # a charged skull can break blocks
delay: 3000 # in milliseconds (3000ms = 3s)
Harvesting allows you to recolt and replant automatically wheat in a certain radius.
cooldown: 10000 # 10 seconds between usages
radius: 5 # blocks surrounding the clicked block
height: 3 # high
Bigmining allows you to mine different blocks at the same time. By default this mechanic is used on the hammers and allows you to mine 3x3 square and more.
radius: 1 # blocks surrounding the broken block
Smelting allows you to instantly melt iron and gold ores when you mine them. This supports fortune and silktouch.
This allows to transform your experience into bottles of experience with a right click. You can configure a loss percentage.
The ratio corresponds to the quantity of exp transformed into a bottle for one exp.
ratio: 0.95 # So you'll lose 1/20 of your exp by converting it
The hardness is the amount of ticks between breaking animation switch and probability is the percentage of chance to get the bedrock (0.10 for 10%, 0.5 for 50% or 1.0 for 100%).
If you set disable_on_first_layer to true, your players will no longer be able to break the ground (layer 0), the durability_cost is the amount of durability the item you've set bedrockbreak