We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Minecode

From Esolang
Jump to navigation Jump to search

Minecode is an esoteric programming language where you "mine" and find various ores that do things. You also have a Miner's log, which has infinite pages, and infinte data can be stored on one page.

Writing Types (Data Types)

You can write with:

  • A crayon (Random number from 50 to 100)
  • A pen (Number)
  • A pencil (String)

Commands

find(ore) - Finds a specific ore.
dig_down - Changes the rarity by 1.
dig_up - Changes the rarity by -1.
log(page,writing_utencil,storage) - Logs something with a specific writing utencil on a specific page. Third value is omitted when crayon used.
go_page(page) - Goes to a specific page in the log (Points to a specific data area).
repeat(times)[] - Repeats something a certain number of times.
forever[] - Does something forever.
if(boolean)[] - If
while(boolean)[] - While

Ores

Note that once your rarity goes higher than a certain value, you can still access the ores that are below your rarity value. You start with rarity 1.

Rarity 1

Copper - Prints current page
Iron - Asks for input, and saves to current page

Rarity 5

Bronze - Goes to the line of the current page value. If page is a string, be a nop command.
Granite - Skips the next line

Rarity 10

Gold - Terminate the program
Ruby - If there is a math problem on the current page, solve it and replace the current page with the answer.

Rarity 15

Diamond - If the page is a number, square it.

Rarity 20

Obsidian - The glitched ore. Once you find it, if it is on line 43, it unlocks "I'm Hungry". If it is not on line 43, then it crashes your computer with a BSOD.

Rarity 100

I'm Hungry - Eats the food inside of the brackets. Do nothing else.

Hello World

log(1,pencil,Hello world!)
go_page(1)
find(copper)

Truth Machine

go_page(1)
find(iron)
if(currentpage=1)[
    forever[
        find(copper)
    ]
]
if(currentpage=0[
    find(copper)
    repeat(9)[
        dig_down
    ]
    find(gold)
]