Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve command syntax #7

Open
moxvallix opened this issue Nov 12, 2024 · 0 comments
Open

Improve command syntax #7

moxvallix opened this issue Nov 12, 2024 · 0 comments

Comments

@moxvallix
Copy link
Contributor

moxvallix commented Nov 12, 2024

Implement command literals with backticks, replacing the existing forward slash method. This allows for commands to be written across multiple lines, and fixes a bunch of syntax incompatibilities.

# Old syntax
/data modify storage foo:bar baz set value true

# New syntax
`data modify storage foo:bar baz set value true`

## Allows for multi-line commands
`
	execute
		as @a[type=minecraft:zombie]
		at @s
		positioned ~ ~1 ~
		run &{particles()}
`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant