SpyglassMC / Spyglass

Development tools for vanilla Minecraft: Java Edition data pack developers.
https://spyglassmc.com
MIT License
291 stars 31 forks source link

start_interpolation only accepts positive integers #1476

Closed MrAwesomeLuigi closed 1 month ago

MrAwesomeLuigi commented 1 month ago

attempting to modify the start interpolation of a display entity and it says that it expects at least 0, despite -1 being a valid option image

NeunEinser commented 1 month ago

Is there any functional difference between using -1 or 0?

Our aim is to also catch issues where you are trying to do something nonsensical, even if it is technically accepted by the game.

MrAwesomeLuigi commented 1 month ago

minecraft wiki says that "Trying to set a value less than 0 sets it to the current game time." these commands are exported by animated java so its not directly by me, although id like it to not be flagged

Nico314159 commented 1 month ago

@SnaveSutit It appears this concerns you.

SnaveSutit commented 1 month ago

I technically already reported this issue.

https://discord.com/channels/666020457568403505/666037123450929163/1256780446512185476

Screenshot_20240704_162519_Discord.jpg

-1 is the only valid negative number worth allowing