Skip to content

Update 1.21.5 #9

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

PhxThePizza
Copy link

No description provided.

Phoenix Robinson and others added 2 commits June 9, 2025 18:00
@PhxThePizza
Copy link
Author

Fix because I didnt notice it was the wrong namespace earlier

@EricristianBros
Copy link
Contributor

Shouldn't you first store empty components {} before running the function? If this wasn't the case, you wouldn't get a helmet if it had no components

# function example:returning/equipment
$scoreboard players set #thisEquipmentVersion Slot $(Slot)
execute unless data storage example:inv this.Equipment[-1].components run data modify storage example:inv this.Equipment[-1].components set value {}
execute if score #thisEquipmentVersion Slot matches 0..4 run function example:returning/equipment_return with storage example:inv this.Equipment[-1]
data remove storage example:inv this.Equipment[-1]
function example:returning/equipment with storage example:inv this.Equipment[-1]

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.

2 participants