We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elytra Swap with any Chestplate Armor By right-clicking with an elytra or any chestplate this script will swap the items
global_swappable_items = ['netherite_chestplate','diamond_chestplate','iron_chestplate','golden_chestplate','chainmail_chestplate','leather_chestplate','elytra']; __on_player_uses_item(player, item_tuple, hand) -> ( if ( hand == 'mainhand' && (inventory_get(player, 38)) != null, ( if ( global_swappable_items ~ (item_tuple:0) != null, ( playerArmorDressed = inventory_get(player, 38); handSlot = query(player, 'selected_slot'); inventory_set(player, handSlot, 1, playerArmorDressed:0, playerArmorDressed:2); inventory_set(player, 38, 1, item_tuple:0, item_tuple:2); return() ) ) ) ) );
The text was updated successfully, but these errors were encountered:
Assuming you want to get these into the repo: You should make a Pull Request, that's the way github works for suggesting changes to files in the repo.
Sorry, something went wrong.
Thanks!
Successfully merging a pull request may close this issue.
Elytra Swap with any Chestplate Armor
By right-clicking with an elytra or any chestplate this script will swap the items
The text was updated successfully, but these errors were encountered: