Skip to content

🐛 Locator deletion fails when created with “Use Entity” #455

@chore3

Description

@chore3

🛑 Before you Start

  • I have searched existing bug reports for my problem.
  • I have read the F-A-Q.
  • I am using the latest version of Animated Java
  • I will only report a single bug in this report. If I have found multiple bugs, I will create a separate report for each one.

🗣️ Describe the bug

When a locator is created as a use entity, the added locator and its Passengers are not deleted.

⚠️ Error Message

🔄️ How to Reproduce

  1. Create a locator.
  2. Check the “Use Entity” box.
  3. Export the file and summon the model within Minecraft.
  4. Delete the summoned model using the appropriate method provided by animated_java (e.g., animated_java:/remove/all).
  5. Models with the “Use Entity” box checked remain undeleted.

✅ Expected Behavior

All locators and their passengers will be deleted.

💡 Solutions & Alternatives

This issue occurs because, even when “Use Entity” is enabled during locator creation, the process attempts to delete animated_java:nautilus_bike/remove/zzz/this/as_data by referencing the locator’s entity data. It then tries to call animated_java:nautilus_bike/remove/zzz/this/kill_locator from that data. However, since the data tag can only belong to marker entities, a recursive function should be used instead to delete the locator through another method.

🟩 Minecraft Version

1.20.4

🟦 Blockbench Version

4.12.6

💻 Operating System

Windows

📃 Installed Blockbench Plugins

  • GeckoLib Animation Utils
  • CEM Template Loader
  • Bone View
  • Animation Sliders
  • Blockbench Plugins

⛰️ Minecraft Environment

No response

Metadata

Metadata

Assignees

Labels

🐛 BugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions