JannisX11 / snowstorm

Minecraft Bedrock Particle Generator
https://snowstorm.app
GNU General Public License v3.0
150 stars 25 forks source link

Issue: snowstorm keeps adding math #12

Closed DaanV2 closed 3 years ago

DaanV2 commented 4 years ago

I have made an uv based upon a random value. but snowstorm keeps adding 0.5 * (2 * to the value.

      "minecraft:particle_appearance_billboard": {
        "size": ["0.05*variable.size", "0.1*variable.size"],
        "facing_camera_mode": "lookat_y",
        "uv": {
          "texture_width": 8,
          "texture_height": 8,
          "uv": [
            "0.5 * (2 * (0.5 * (2 * (0.5 * (2 * (0.5 * (2 * (0.5 * (2 * (0.5 * (2 * (0.5 * (2 * (0.5 * (2 * (0.5 * (2 * (math.floor(variable.particle_random_1 * 2) * 4))))))))))))))))))",
            0
          ],
          "uv_size": [4, 8]
        }
      },
JannisX11 commented 3 years ago

Fixed in 2.1.