AnyOffhand is a simple plugin for PowerNukkitX servers. It lets players quickly swap an item between their main hand and offhand.
- Hold an item in your main hand.
- Sneak twice quickly.
- The items in your main hand and offhand will be swapped.
After swapping, wait for the short cooldown before trying again.
- Download the latest
AnyOffhand.jarfile. - Place it in the
pluginsfolder of your PowerNukkitX server. - Restart the server.
The plugin creates its configuration file automatically when it starts for the first time.
Open plugins/AnyOffhand/config.yml to change which items players can move to their offhand and how the sneak trigger behaves.
item:
mode: "whitelist"
items:
- "minecraft:torch"
trigger:
amount: 2
delta: 1000
cooldown: 3000whitelist: Only the items listed underitemscan be moved to the offhand.blacklist: Every item except the items listed underitemscan be moved to the offhand.
Use item identifiers such as minecraft:torch in the list.
amount: Number of times a player must sneak to swap items.delta: Maximum time between sneaks, in milliseconds.cooldown: Waiting time after a swap, in milliseconds.
Restart the server after changing the configuration.
- A PowerNukkitX server compatible with API 3.0.0
If you find a problem, please open an issue on the GitHub repository.