Brainfuck
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
-
View User Profile
-
Send Message
Posted Dec 24, 2014Hahahaha lmao is this the only programming language english is not required to learn for? :P
-
View User Profile
-
Send Message
Posted Mar 26, 2013Hahaha. Far from it, friend :D but thank you.
Trust me, this plugin is just a taste of what is to come: http://i.imgur.com/MPT1CPg.png Operating system is to come; it will be similar to computercraft but accessed entirely through the vanilla client's chatbox! (And world interactions.)
-
View User Profile
-
Send Message
Posted Mar 26, 2013You deserve a medal - Best plugin to date.