Skip to content

Some extensions to the vanilla Minecraft functions syntax

License

Notifications You must be signed in to change notification settings

cgytrus/MCFunctionExtensions

Repository files navigation

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

About

Some extensions to the vanilla Minecraft functions syntax

Resources

License

Stars

Watchers

Forks

Languages