Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cgytrus/MCFunctionExtensions

Some extensions to the vanilla Minecraft functions syntax
https://github.com/cgytrus/MCFunctionExtensions

Last synced: about 1 month ago
JSON representation

Some extensions to the vanilla Minecraft functions syntax

Awesome Lists containing this project

README

        

# Minecraft Function Extensions
Some extensions to the vanilla functions syntax

## Features
- Libraries
- Constants
- Custom commands
- Self namespaces
- Anonymous functions
- Inline functions
- Else statements
- For loops
- Execute optimization (removes 'execute run')

## TODO
*features ending with a question mark are ones i'm not sure of*
- function arguments?
- idk what else yet but you can suggest your ideas ;)

## Example
this example would be compiled to 3 files located next to test.extmcfunction: text.mcfunction, zombie_detected.mcfunction and pog.mcfunction
```
# test.extmcfunction
execute unless entity @s run say not bruh :(
else if entity @e[type=zombie] run function :zombie_detected {
say yooo
say duuuude
function :pog {
say this is Pog
}
}
else if entity @e[type=boat] run say bruh
else run say gimme B O A T S
```