This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
EnderCoding's profile picture

3 of my first programs!

Started by EnderCoding, 20 December 2015 - 07:12 PM
EnderCoding #1
Posted 20 December 2015 - 08:12 PM
Hello! This is EnderCoding, known in minecraft as Endermqn. Today I want to share 3 of my first programs!
Well, technically 2, because 2 go together. Anyways, let's get started!

The first program is a simple calculator program. It can add, subtract, multiply, divide, and use exponents
1. Pastebin code (Type this into the shell): pastebin get uqaWPac4 Calculator
2. How to use: Type "Calculator (1st #) (Operation) (2nd #) (Example: "Calculator 6 * 6"), it uses arguments.
3. Note: Type it like 6 + 6, 6 - 6, 6 * 6, 6 / 6, and 6 ^ 6, with the space.
Next, we have a security program (passwords). It secures your PC with 3 passwords!
1. Pastebin code: pastebin get hnbrjdX7 foo
2. How to use: First, edit foo. Notice the comments on the bottom. Simply change the function variables used at the bottom to the desired passwords, and change the while loops as well. Then, rename foo to startup.
Finally, we have a floppy disk code meant for bypassing startup code.
1. Pastebin code: pastebin get Fa80iHrV disk/startup
2. How to use: Only use pastebin code while a disk is in a drive connected to the PC. After that, simply label the disk as "Startup Bypass Disk" with label set (left/right, depending where the drive is) "Startup Bypass Disk". After that, you're done! It will bypass the startup file on the computer.
KingofGamesYami #2
Posted 20 December 2015 - 09:31 PM
Your security program's paste has expired. http://pastebin.com/hnbrjdX7

For your calculator, it would be nice if it supported multiple operations (eg 6 + 6 * 2)

For the bypass, it seems a little useless. Not really much I can comment on.
EnderCoding #3
Posted 24 June 2016 - 08:07 PM
Well, the program in bypass is literally just supposed to display text. I think by default all floppy disks that are labeled startup override the normal startup