Skip to content

Fixes bugs with copy entities from Position A to Position B#2195

Open
TheMeinerLP wants to merge 7 commits into
IntellectualSites:mainfrom
TheMeinerLP:bugfix/2140
Open

Fixes bugs with copy entities from Position A to Position B#2195
TheMeinerLP wants to merge 7 commits into
IntellectualSites:mainfrom
TheMeinerLP:bugfix/2140

Conversation

@TheMeinerLP

@TheMeinerLP TheMeinerLP commented Apr 29, 2023

Copy link
Copy Markdown
Member

Overview

Fixes #2140
Fixes #2427

Description

This PR included the fix for passenger of entities and also leashs for other entities.
That means now //copy -e and //paste -e will work to 99% correct now for entities except some edge cases.

Submitter Checklist

  • Make sure you are opening from a topic branch (/feature/fix/docs/ branch (right side)) and not your main branch.
  • Ensure that the pull request title represents the desired changelog entry.
  • New public fields and methods are annotated with @since TODO.
  • I read and followed the contribution guidelines.

@TheMeinerLP TheMeinerLP requested a review from a team as a code owner April 29, 2023 14:21
@github-actions github-actions Bot added the Bugfix This PR fixes a bug label Apr 29, 2023
@TheMeinerLP

Copy link
Copy Markdown
Member Author

I tested each of them on a Plot world

@LedariaTim1

LedariaTim1 commented May 13, 2023

Copy link
Copy Markdown

i just compiled your bugfix and tested it, the entities including passanger are now copied, but they are now both independent entities and no longer mounted. in my case the pig is no longer sitting on the invisible armorstand and can be moved around
image
image

@TheMeinerLP

Copy link
Copy Markdown
Member Author

Bump!
Tested with 1.20.1

@TheMeinerLP TheMeinerLP closed this Dec 2, 2023
@TheMeinerLP TheMeinerLP deleted the bugfix/2140 branch December 2, 2023 11:12
@TheMeinerLP TheMeinerLP restored the bugfix/2140 branch December 2, 2023 11:13
@TheMeinerLP TheMeinerLP reopened this Dec 2, 2023
@TheMeinerLP TheMeinerLP requested a review from SirYwell December 2, 2023 11:43
@seercle

seercle commented Jan 12, 2024

Copy link
Copy Markdown

Hey, do we have any news about this? This fix would be very useful for builders who use Block Display Studio to create structures.

@github-actions

Copy link
Copy Markdown

Please take a moment and address the merge conflicts of your pull request. Thanks!

@github-actions

Copy link
Copy Markdown

Please take a moment and address the merge conflicts of your pull request. Thanks!

@TehManu

TehManu commented Mar 21, 2025

Copy link
Copy Markdown

Hey, this solution does not work with vehicles because the passengers missing their NBT data. I'm not sure but i think the real problem is here.
image

The method only saves NBT data when the entity is not a passenger
image

Maybe i might be wrong, but i tested it with saveWithoutId() and it worked with copying the passengers and they also had their correct nbt data being applied.

@TheMeinerLP

Copy link
Copy Markdown
Member Author

Hey, this solution does not work with vehicles because the passengers missing their NBT data. I'm not sure but i think the real problem is here. image

The method only saves NBT data when the entity is not a passenger image

Maybe i might be wrong, but i tested it with saveWithoutId() and it worked with copying the passengers and they also had their correct nbt data being applied.

Thanks for reporting this. I will take a look

@TehManu

TehManu commented Mar 26, 2025

Copy link
Copy Markdown

I found another way to also get the same result in the PaperweightGetBlocks class, replace the code after line 672 with the following one.

image

@TehManu

TehManu commented Apr 8, 2025

Copy link
Copy Markdown

Hi, are there any updates on this? Our players are waiting for a fix. @TheMeinerLP

@TheMeinerLP

Copy link
Copy Markdown
Member Author

Hi, are there any updates on this? Our players are waiting for a fix. @TheMeinerLP

Sorry, I was on sick leave, and I am not yet 100% recovered

@Mrpressed

Copy link
Copy Markdown

Thank you for working on this, ive been waiting for a fix.

@TehManu

TehManu commented Apr 9, 2025

Copy link
Copy Markdown

Sorry, I was on sick leave, and I am not yet 100% recovered

Thank you for your work, get well soon! Could you please take a look at the nbt data issue when copying passengers? I would really appreciate if you could fix this too.

@Mrpressed

Copy link
Copy Markdown

Fixing the NBT issue would be amazing, it's what's holding back the development of my server currently.

@kylelaverty

Copy link
Copy Markdown

Sorry, I was on sick leave, and I am not yet 100% recovered

Thank you for working on this.

@TehManu

TehManu commented May 5, 2025

Copy link
Copy Markdown

Hi @TheMeinerLP, any updates on this? It's a while since there was any progress on this.

@github-actions

Copy link
Copy Markdown

Please take a moment and address the merge conflicts of your pull request. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Copy/Paste with passenger entities Entities containing data of other entities don't work with copy and paste operation

8 participants