- 2,281 views, 1 today
- 108 downloads, 0 today
6
-->Feel free to ask me if you have questions.
Minecraft Programming Language By TZF
This is a simple Programming Language in Minecraft.
It works with blocks instead of words.
!! The high-level language is under development see at the end of this
Now has a compiler so you can write your programs in a text editor and then compile and import them.
-> just look under datapacks\pcData\SIMPLECompiler
-> there are multiple examples(mainly for the simple compiler and not for the new one)
-> compile them by changing the file name in compiler.py(at the end) then executing that python(python 3) script.
-> /reload ingame
-> click load under the left side of the screen(ingame)
-> For multithreading look into the readme or ingame for an explanation
Commands include for example:
Add
Subtract
And
Or
Jump
Jump if zero
push
pop
increment
decrement
Screen Commands:
setPixel
fill
setColor
fillCollumn
fillRow
set Sprite address
draw sprite at
test for block at
IMPORTANT
All Variables are Global
ZERO,ONE,TWO are standard existing variables for calculations(don't permanently save data in them)
No returns in Methods but this shouldn't be a problem because All Variables are global
Save your code into a file with the ending ".hs" and change the file variable at the end of compiler.py and execute it then go into Minecraft and execute /reload then click the load button under the left side of the ingame screen.
Examples for the current commands
arr 5 c
c[1]=20
b = 4
a = 5+(32-b)
if(a==b){b=4}
do{b=b+1}while(c[1]!=b)
def m(ONE){a = ONE}
m(a)
This programm above works if you want to test
Minecraft Programming Language By TZF
This is a simple Programming Language in Minecraft.
It works with blocks instead of words.
!! The high-level language is under development see at the end of this
Now has a compiler so you can write your programs in a text editor and then compile and import them.
-> just look under datapacks\pcData\SIMPLECompiler
-> there are multiple examples(mainly for the simple compiler and not for the new one)
-> compile them by changing the file name in compiler.py(at the end) then executing that python(python 3) script.
-> /reload ingame
-> click load under the left side of the screen(ingame)
-> For multithreading look into the readme or ingame for an explanation
Commands include for example:
Add
Subtract
And
Or
Jump
Jump if zero
push
pop
increment
decrement
Screen Commands:
setPixel
fill
setColor
fillCollumn
fillRow
set Sprite address
draw sprite at
test for block at
IMPORTANT
All Variables are Global
ZERO,ONE,TWO are standard existing variables for calculations(don't permanently save data in them)
No returns in Methods but this shouldn't be a problem because All Variables are global
Save your code into a file with the ending ".hs" and change the file variable at the end of compiler.py and execute it then go into Minecraft and execute /reload then click the load button under the left side of the ingame screen.
Examples for the current commands
arr 5 c
c[1]=20
b = 4
a = 5+(32-b)
if(a==b){b=4}
do{b=b+1}while(c[1]!=b)
def m(ONE){a = ONE}
m(a)
This programm above works if you want to test
Credit | TZF |
Progress | 40% complete |
Tags |
31 Update Logs
Update #31 : by TZF 08/21/2019 11:26:16 amAug 21st, 2019
Added a Converter which allows to convert images to 8x8 sprites automatically. You just need to specify the folder with the images.
The Memory location of the sprites are alphabetically.
Example with Mario included+loaded
Only supports 23 Blocks/Colors at the time. It tries to convert all colors to the block colors.
+ Increased Performance
+ now 1.14.4
The Memory location of the sprites are alphabetically.
Example with Mario included+loaded
Only supports 23 Blocks/Colors at the time. It tries to convert all colors to the block colors.
+ Increased Performance
+ now 1.14.4
LOAD MORE LOGS
tools/tracking
3865856
2
simple-minecraft-programming-language---smpl
Create an account or sign in to comment.
(In a case where you are using Redstone ROM instead of blocks)
It is now running 1 Command per tick
But I Still, need to add some things