Skip to content

Fixed fakeplayer inv editor equipment slots#433

Open
replaceitem wants to merge 3 commits intognembon:masterfrom
replaceitem:fakeinv-editor-equipment-fix
Open

Fixed fakeplayer inv editor equipment slots#433
replaceitem wants to merge 3 commits intognembon:masterfrom
replaceitem:fakeinv-editor-equipment-fix

Conversation

@replaceitem
Copy link
Collaborator

This PR is based on the fixes in #420, so that should be merged first.

Fixes the armor and offhand slot not working by using inventory_set('equipment', p, ..).
Also renames the datapack folder names advancements and functions to be advancement and function, as changed in 24w21a (1.21).
However, since advancements currently do not work for fake player, the updating of the screen from the player still does not work until fake players work with advancements, or another method for detecting inventory changes is used.

SethHu20 and others added 3 commits April 26, 2025 19:22
Fix `global_nope` NBT data to utilize `components.custom_data` properties as of 1.21.5, inventory_set now uses a more complete NBT tag to successfully add the custom NBT data
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