Skip to content
New issue

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

Implement kits placing items in specific slots #5794

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

TiagoFar78
Copy link
Contributor

@TiagoFar78 TiagoFar78 commented May 7, 2024

Information

This PR closes #5535.

Details

Proposed feature:

Everytime you create a kit with gear (armor and offhand) equipped, the gear is placed in their respective slots once you retrieve the kit. For example, if you create the kit with a golden helmet equipped, it will be placed in your helmet slot when retrieving the kit.

Environments tested:

OS: Windows 11

Java version: 17

  • Most recent Paper version (1.20.4, git-Paper-BUILD)
  • CraftBukkit/Spigot/Paper 1.12.2
  • CraftBukkit 1.8.8

Demonstration:

Before:

Inventory before creating kit:
image

Execute createkit command:
image

Remove everything from inventory:
image

Retrieving the kit:
image

Inventory result:
image

After:

Inventory before creating kit:
image

Execute createkit command:
image

Remove everything from inventory:
image

Retrieving the kit:
image

Inventory result:
image

Everytime you create a kit with gear (armor and offhand) equipped, the
gear is placed in their respective slots once you retrieve the kit. For
example, if you create the kit with a golden helmet equipped, it will be
placed in your helmet slot when retrieving the kit.

Co-authored-by: Catarina Freire <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an option for placing items in specific slots (offhand, armor, etc)
1 participant