The SNBT operation bool(arg) currently returns false for decimal values which are greater than -1 but less than 1. This doesn’t look like the intended behavior for the operation, which states that it returns true for non-zero number values.
How to Reproduce
Run the command
/data merge storage a:a {x:bool(0.5)}. This stores the output of thebooloperation into the storagea:a.Run the command
/data get storage a:a. This shows the message:Storage a:a has the following contents: {x: 0b}. This means that the operation resulted in afalsefor the value0.5, even though it is non-zero.
Comments 0
No comments.