---
name: Bug Report
about: Something isn't compiling right or producing wrong output
title: '[Bug] '
labels: bug
assignees: ''
---

## Describe the bug

<!-- A clear description of what went wrong -->

## Source file (minimal repro)

```rs
// Paste the smallest .rs file that reproduces the issue
```

## Expected output

```
# What MC commands / datapack structure did you expect?
```

## Actual output / error

```
# Paste the compiler error or wrong mcfunction output
```

## Environment

- RedScript version: <!-- run `redscript --version` -->
- Node.js version:
- OS:
- Target: `datapack` / `structure`

## Additional context

<!-- Anything else: MC version, optimizer on/off, etc. -->
