All mechanics
The different mechanics available by default and their configurations sorted by category
Miscellaneous
Custom Food
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:
On 1.20.5+ use the new Food-Component instead
Backpack
This allows you to turn any item into a backpack.\
This mechanic might cause duplication issues! If you find any please open a bug-report and we will fix them as soon as possible!\
There is currently a known dupe, if your backpack is using a stackable material like paper. Make sure to specify that the item should be unstackable, like shown below.\
Per item configuration
Music Disc
This allows you to make custom music discs with custom sounds.
To add a sound simply follow the default example by adding it into Oraxen/sound.yml
\
Any stereo sounds will not play at a specific position or following an entity. If you want this you need to make sure your .ogg sound-file is in mono sound format.
On 1.21+ use the new JukeboxPlayable-Component instead
song
is 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.mysong
with the namespace minecraft.
If you are importing sounds.json into another namespace, the namespace would naturally not be minecraft
Durability
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.
On 1.20.5+ use the new Durability-Component instead
Per item configuration
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).
Misc Mechanic
This mechanic has a bunch of small changes you can make to your item. What they each do should be pretty self-explanatory.
On 1.20.5+ use the new FireResistant-Component instead of burns_in_X below On 1.21.2+ use the new DamageResistant-Component instead of burns_in_X/breaks_from_cactus below
Repair
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.
Per item configuration
Global configuration
If you enable oraxen_durability_only, this mechanic will only work with items using oraxen Durability mechanic.
Commands
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).
Per item configuration
Armor Effects
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.
Per item configuration
Here is a list of all potion effect types available.
You can also make an effect only apply if the entire set it equipped.
Block and NoteBlock
These mechanic allows you to use an item as block. Since these are quite special mechanics, they have a dedicated tutorial page.
clickAction
This mechanic allows you to run various events when a player clicks a block or furniture. It is very customizable, so it also has a dedicated tutorial page.
Aura
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
Per item configuration (easy)
Hat
Do you want to create a hat? Use this mechanic so that you'll be able to put any item on your head.
Per item configuration (easy)
Skinnable
With this mechanic, you can change the texture of an item using an item with Skin mechanic.
Per item configuration
ItemType
With this mechanic, you can change the item type detected by OraxenBlocks. Make sure to use a type declared inside the block mechanic.
Per item configuration
Soulbound
With this mechanic, you can avoid the players to lose their item when they die.
Per item configuration
Custom mechanic
This mechanic allows you to customize events, conditions and actions. Since it is a quite rspecial mechanic, it has its dedicated tutorial page.
Skin
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.
Per item configuration
Combat
Thor
Have you ever dreamed of being able to throw lightning bolts? This is for you.
Per item configuration
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)
Lifeleech
Want to steal hearts to your opponents when you hit them?
Per item configuration
EnergyBlast
EnergyBlast is a very cool mechanic that creates a cone of particles to attack entities.
Per item configuration
Witherskull
Send wither skulls when right clicking!
Per item configuration
Farming
Harvesting
Harvesting allows you to recolt and replant automatically wheat in a certain radius.
Per item configuration
BigMining
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.
Per item configuration
Smelting
Smelting allows you to instantly melt iron and gold ores when you mine them. This supports fortune and silktouch.
Per item configuration
BottledExp
This allows to transform your experience into bottles of experience with a right click. You can configure a loss percentage.
Per item configuration
The ratio corresponds to the quantity of exp transformed into a bottle for one exp.
Global configuration
BedrockBreak
This mechanic depends on ProtocolLib, if you can't use ProtocolLib, you need to disable it
Per item configuration
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%).
Global configuration
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
Last updated