SethBling / cbscript

CBScript for Minecraft
1.13k stars 28 forks source link

Large numbers are stored in an invalid format #44

Open njb1286 opened 2 weeks ago

njb1286 commented 2 weeks ago

When storing large numbers in variables, the compiler stores the values in the format like this: 1e-06 This is an invalid format for Minecraft, because Minecraft can only use static numbers, and not scientific notation. It compiles into something like this:

execute store result storage wither_skull out.OffsetPos[0] double 1e-06 run scoreboard players get Global xWithOffset