Skip to content

🐛 Scientific notation used for some location inputs #518

Description

@Stevelocks100

🛑 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

inside of a frame function, scientific notation is used for storing location of locators, which likely causes macro issues later on in the code.
data modify storage animated_java:temp entry.data merge value {"locators":{"locator":{"px":0.0000023861,"py":-0.000012827,"pz":9.217e-7,"ry":94.0851341275,"rx":13.2500014388},"hitbox":{"px":0,"py":0,"pz":0,"ry":93.7836253395,"rx":18.2415796479}}}

last_frame_effects also has this, with it directly stopping the function from working:
execute positioned ^0.0000023861 ^-0.000012827 ^9.217e-7 rotated ~94.0851341275 ~13.2500014388 run function aj:fine_print/animations/bring_item/zzz/frames/261_locator_locator

⚠️ Error Message

🔄️ How to Reproduce

Export the project. the ajblueprint is not accepted here, but will try to upload it. I searched for "e-" within my datapack

✅ Expected Behavior

not using scientific notation

💡 Solutions & Alternatives

changing how the values are exported

🟩 Minecraft Version

1.21.11

🟦 Blockbench Version

5.1.4

💻 Operating System

MacOS

📃 Installed Blockbench Plugins

No response

⛰️ Minecraft Environment

No response

Metadata

Metadata

Assignees

Labels

🐛 BugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions