Earlier Versions
| Name | Size | Uploaded | Game Version | Downloads | |
| Brainfuck v1.0 release | 5.78 KB | Mar 26, 2013 | 1.5.1 | 989 | Download |
Description
Brainfuck
Features
This plugin allows players to code in the glorious language of brainfuck! Brainfuck (http://esolangs.org/wiki/brainfuck) is an esoteric programming language, which is to say that it's not quite a serious language to program in. However, it was easy to implement, and I happen to like brainfuck, and so that's what we have here.
This plugin is delightfully pointless, just like the language. If a user has the permission 'brainfuck.block', then they can even set blocks in the game world with the ':' instruction!
Commands
- /read: displays your currently written code.
- /clear: clears your currently written code.
- /add TEXT: adds TEXT to the end of your code. If "+>" were already written and you did /add -<, the code would be "+>-<"
- /delete #: deletes # characters from the end of your currently written code.
- /execute TEXT: executes your currently written code, with TEXT as the input.
Usage
My version of brainfuck differs slightly from the original, in that…
– If a character appears in the code that is not an operator, its ascii value is copied into the current cell. Example: "h." would copy h's ascii value into the cell, and output it.
– The ':' instruction will set the block at (cell[0], cell[1], cell[2]) to be the block type ID of cell[3]. The starting cell is cell[0]. For example, the code:
++>+++>++++>+:
will set the block (2, 3, 4) to be ID 1 (stone.) This takes place in the player's current world.
Example usage:
/add ++++++++++[>++++++++<<++++++++>-]<[>>->>+:<<<<-] /execute /clear /add 0>,<[>-<-]o>[<.>-] /execute 5
Permissions
brainfuck.block – Allows use of ':' to set blocks in the world.
Is in-game programing your type of thing? You'll be pleased to know that I'm working on a more serious plugin for actual programming as well as in-game computers similar to ComputerCraft! Here's a sneak-peek: http://i.imgur.com/9T1ZrGn.png
Get 0.05 TON 💎
Download
Add a comment