- every instruction ends with a
;example:i=12;
- Imports are done with
include filepath/filename;ornative filepath/filename;- imports use for the file-extension native
.mcfunctionand for include.mcdb- imports-paths are used without the file-extension example :
include pointer/pointeris loading filepointer.mdblib- the import module seach is first searching in the project directory,then in
<compilerdir>/templates/baselib
- Syntax
func functionName(argument1,argument2,...){functionBody;}- they are called using
functionName(args1,ars2,...)- Example define:
func test(abc){p=abc;}
- as of right now, function params can only be integers
cc filenameis used to import custom keywords
shr shortName "association";is used to define shorts ,shorts get then user by using<shortname>inside of your functions .Shorts are normally strings, there references get replaced with there association upon compile time
- **any minecraft command can be use inside the file they only need an **
NOTE: Native minecraft command are not checked on syntax at this point- Example
1.Imports --------------------------- 0
Shorts ---------------------------- 1
Comments -------------------------- 1.5
functions ------------------------- 2
Command-Injection ----------------- 3
CC-Syntax-refactoring ------------- 4
Extentions ------------- Comming Soon
- Keyword :
include- Usage :
include folder/file;- Examples :
include pointer/pointer;
- Keyword :
native- Usage :
native folder/file;- Examples :
native pointer/pointer;
- Keyword :
shr- Usage :
shr Name "LongVersion"- Than (to referent in your code):
<Name>- Examples :
shr Armorstand3 "@e[type=armorstand,tag='specialArmorstand']"
as reference than :execute as <Armorstand3> at @s run setblock ~ ~ ~ dirt
After compilation it looks like this :execute as @e[type=armorstand,tag='specialArmorstand'] at @s run setblock ~ ~ ~ dirt
- Usage :
// Your Commands here ...
Functions later get compiled into alone-standing
.mcfunctionfiles but you can write them all in one file
- Keyword :
func- Usage :
func funcname(parm1,parm2,...){mainbody}- Call functions:
funcname(args1,args2,...)- Examples :
func summonArmored(){summon minecraft:armor_stand ~ ~ ~}
as reference than :summonArmored();Functions later get compiled into alone-standing
.mcfunctionfiles but you can write them all in one file
- Keyword :
if- Usage :
if("execute if sting"){body}- What does it do ? : wraps arount condition and provides 0-tick conditional execution to the if-body