WingedSeal / jmc

A compiler for JMC (JavaScript-like Minecraft Function), a mcfunction extension language for making Minecraft Datapack
https://jmc.wingedseal.com
MIT License
64 stars 10 forks source link

[FEATURE_REQUEST] Manual compiler bypass. #118

Closed FireBallMC3 closed 2 months ago

FireBallMC3 commented 2 months ago

Description

A way to bypass the compiler when i throws a wrongfull exception. Example: test(); raw {execute if data entity @s item run say item} say "hi"; Should compile to: function namespace:test execute if data entity @s item run say item say hi

Nico314159 commented 2 months ago

This already exists.

test();
JMC.put("execute if data entity @s item run say item");
say "hi";