Duplicate entity UUID issue
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 12.7k
- Forks
- 3.5k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 11
Description
Expected behavior
This settings should work and ignore duplicate UUID instead of deleting entity
duplicate-uuid:
mode: silent
safe-regen-delete-range: 0
(also tested safe-regen-delete-range: 1)
Observed/Actual behavior
When I paste twice the same item_frame it deletes it and send an error in the console
[15:36:41 WARN]: [EntityLookup] Entity uuid already exists: a8d8f021-32a9-4f0a-bc6b-e3be5bdd6f6e, mapped to EntityItemFrame['Item Frame'/397, uuid='a8d8f021-32a9-4f0a-bc6b-e3be5bdd6f6e', l='ServerLevel[SuperiorWorld]', x=1200.50, y=103.50, z=597.03, cpos=[75, 37], tl=217, v=true], can't add EntityItemFrame['Item Frame'/432, uuid='a8d8f021-32a9-4f0a-bc6b-e3be5bdd6f6e', l='ServerLevel[SuperiorWorld]', x=1200.50, y=103.50, z=1197.03, cpos=[75, 74], tl=0, v=false]
Steps/models to reproduce
I'm using a plugin to add image on maps and paste it on every created island for players
Plugin to generates maps :
- https://www.spigotmc.org/resources/imageframe-load-images-on-maps-item-frames-support-gifs-map-markers-survival-friendly.106031/
Plugin that paste schematics/create island : - https://www.spigotmc.org/resources/%E2%9A%A1%EF%B8%8F-superiorskyblock2-%E2%9A%A1%EF%B8%8F-the-best-core-on-market-%E2%9A%A1%EF%B8%8F-1-20-2-support.87411/
Command used : imageframe create test https://i.imgur.com/2ErVis6.png 4 5
Video : https://youtu.be/T1ghIi3cNic
After importing the schematic : https://youtu.be/aRq6WsZQlX4
- I create an island, it's working fine
- My second account create an island and do not get maps and get this error in console :
[EntityLookup] Entity uuid already exists: a7d90ae1-60e3-4a38-b581-6b724bd3a469, mapped to EntityItemFrame['Item Frame'/495, uuid='a7d90ae1-60e3-4a38-b581-6b724bd3a469', l='ServerLevel[SuperiorWorld]', x=-3.97, y=103.50, z=602.50, cpos=[-1, 37], tl=525, v=true], can't add EntityItemFrame['Item Frame'/518, uuid='a7d90ae1-60e3-4a38-b581-6b724bd3a469', l='ServerLevel[SuperiorWorld]', x=-603.97, y=103.50, z=2.50, cpos=[-38, 0], tl=0, v=false]
Plugin and Datapack List
ImageFrame, ProtocolLib, SuperiorSkyBlock 2
Paper version
This server is running Paper version git-Paper-493 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: a6b6ecd)
You are running the latest version
Previous version: git-Paper-459 (MC: 1.20.4)
Other
Also happened if I had COW into the schematic
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named. Start by reproducing the duplicate item-frame case with the shown duplicate-uuid configuration, Paper 1.20.4, and the listed plugins; compare the first and second schematic imports and inspect the EntityLookup warning. Done means duplicate UUIDs are handled without deleting the entity or emitting the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- game-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100