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

Entity NBT controls and SNBT support #2573

Merged
merged 2 commits into from
Dec 18, 2023

Conversation

tal5
Copy link
Member

@tal5 tal5 commented Nov 25, 2023

SNBT part requested on Discord.

Additions

  • NMSHandler#parseSNBT - parses an SNBT string into a CompoundTag.
  • EntityHelper#getRawNBT - gets an entity's raw NBT data.
  • EntityHelper#modifyRawNBT - modifies an entity's raw NBT data based on the input CompoundTag.
  • EntityTag.all_raw_nbt tag - gets an entity's entire raw NBT data as a MapTag.
  • EntityTag.raw_nbt mechanism - modifies an entity's raw NBT data.
  • ElementTag.snbt_to_map tag - parses a raw SNBT string into an NBT MapTag.
  • EntityHelperImpl(1.20)#getRawEntityNBT - util method to get an entity's entire CompoundTag, used by both new EntityHelper methods.

Changes

  • Made the Raw NBT Encoding language meta a bit more generic, as it's no longer just for items.

@mcmonkey4eva mcmonkey4eva merged commit 5ef377f into DenizenScript:dev Dec 18, 2023
1 check passed
@tal5 tal5 deleted the Entity_Raw_NBT branch December 18, 2023 23:20
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.

None yet

2 participants