Minecraft Data Packs / Technology

Piet Programming Language interpreter

  • check_circle Functions
  • check_circle Structures
  • 1,023 views, 2 today
  • 14 downloads, 0 today
  • 6
  • 2
  • 1
Required Resource Pack
2017Knight2017's Avatar 2017Knight2017
Level 10 : Journeyman Miner
2
NB: You should read the official Piet docs before using this datapack! The differences of the datapack from the original programming language are:
  • in(char) and in(int) aren't realised because I have no idea how this can be implemented.
  • switch command isn't realised due to absence of the Codel Chooser.


To start building your program, you should obtain color blocks with these triggers:
Title of Expandable Spoiler
• /trigger get_light_red
• /trigger get_red
• /trigger get_dark_red
• /trigger get_light_yellow
• /trigger get_yellow
• /trigger get_dark_yellow
• /trigger get_light_green
• /trigger get_green
• /trigger get_dark_green
• /trigger get_light_cyan
• /trigger get_cyan
• /trigger get_dark_cyan
• /trigger get_light_blue
• /trigger get_blue
• /trigger get_dark_blue
• /trigger get_light_magenta
• /trigger get_magenta
• /trigger get_dark_magenta
• /trigger get_black
• /trigger get_white

After that, you have to run "/reload" command because the datapack doesn't send a message whilst loading the world. If you've done everything correct, you'll see this message:
Piet Programming Language interpreter Minecraft Data Pack

Next, you need to place an armorstand at the start of your program and click [​Run the program]. To make a next step, you should click [​Next Step]. To reset the stack, click [​Reset the Stack]. That's all.
CreditDavid Morgan-Mar aka dangermouse, creator of the Piet programming language.
CompatibilityMinecraft 1.18
toMinecraft 1.19
Tags

1 Update Logs

Update #1 : by 2017Knight2017 10/21/2022 5:27:55 amOct 21st, 2022

"Hello world!" structure (third picture) has been implemented into the datapack. To load it, you have to run "/trigger build_hello_world". It'll be built assuming you are on northwest corner of the structure.

Create an account or sign in to comment.

1
10/22/2022 5:36 pm
Level 41 : Master Nerd
Kefaku
Kefaku's Avatar
awesome :D
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome