Other Mechanics
The different mechanics available by default and their configurations sorted by category
Miscellaneous
Backpack
This allows you to turn any item into a backpack.
backpack:
itemname: backpack
material: PAPER
Components:
max_stack_size: 1
Mechanics:
backpack:
rows: 4
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"
blacklist: #Optional, add which items are not allowed
nexo_items:
- item_id
- item_id2
materials:
- DIAMONDMisc Mechanic
This mechanic has a bunch of small changes you can make to your item. What they each do should be pretty self-explanatory.
prevent_breaking cancels any damage that would break the item, so it stays at its last bit of durability.
By default the item still works as normal in that state.
With misc.disable_components_on_prevent_breaking enabled in mechanics.yml, the item stops functioning until it is repaired:
A tool mines at fist-speed and drops nothing
A weapon deals base damage
Attribute-modifiers and gliding are removed
Shields stop blocking, on 1.21.5+ only
Enchantments are left on the item, so their effects still apply. Bows, crossbows, tridents, fishing-rods and similar items are not affected.
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).
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. Here is a list of all potion effect types available.
You can also make an effect only apply if the entire set is equipped.
A set is every armor-slot holding an item with the same CustomArmor id.
Pieces without a CustomArmor-section, like a 3D Helmet, can join a set through set.
It overrides the CustomArmor id for full-set checks.
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.
ItemType
With this mechanic, you can change the item type detected by NexoBlocks. Make sure to use a type declared inside the block mechanic.
Soulbound
With this mechanic, you can avoid the players to lose their item when they die.
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.
Farming
Harvesting
Harvesting allows you to recolt and replant automatically wheat in a certain radius.
Smelting
Smelting allows you to instantly melt iron and gold ores when you mine them. This supports fortune and silktouch.
Last updated