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

DarkNinja2462's Programs

Started by DarkNinja2462, 01 April 2012 - 08:22 PM
DarkNinja2462 #1
Posted 01 April 2012 - 10:22 PM
Programs
Jukebox with RedPower 2
SpoilerI made a jukebox with Redpower 2 and ComputerCraft.
It plays ALL VANILLA Minecraft music discs.

—–Installation——————————————————————————-
1. Download the zip and extract it
2. Put the file where you can access it in-game (preferably /rom/programs)
3. Watch video on how 2 build
4. Power it up with some BT Batteries
5. PROFIT
—————————————————————————————————
[media]http://www.youtube.com/watch?v=ZN1kf-zzXc8&feature=youtu.be[/media]
The Internet (Client/Server)
SpoilerWell like dan200 said, use rednet to invent the internet. I DID THAT.
Readme:
SpoilerCopy the folders programs, apis, help, and config to /.minecraft/mods/Computercraft/rom/
Put a modem on the right of the computer.
On your computer foler/directory (/.minecraft/saves/[WORLD/computer/[COMP ID]/) make a folder (the path is in the config)
(Or use mkdir)
Put in the folder any text files (.txt) you want people to access (that is the webpage)
(Or edit it in-game ex. edit /server/derp.txt)
On the SERVER computer type:
server
On the CLIENT computer type:
client
Conntect to the id of the server with the program.
ENJOY
You can also use the api (found in the apis)
How it works:
SpoilerThe program gets the settings.
The client computer asks the server for the file
The client saves the file as the name in the config (landing page)
Runs the program for custom home pages.
Download:
SpoilerWeb.zip at the bottom of the page
APIs
Turtle2 API:
SpoilerFunctions
Spoilerturtle2.isEmpty() - Checks if the turtle is completely empty.
turtle2.isFull() - Checks if the turtle has 64 in each slot.
turtle2.emptyOut() - Drops every item in the turtle.
I AM ACCEPTING REQUESTS
Installation
Spoiler1. Download turtle2.zip
2. Extract the folder to /mods/ComputerCraft/lua/
3. PROFIT!!!
The Internet (Client/Server)
SpoilerFunctions in the internet api:
internet.server() - Creates the server. Can allow access for /server/.
internet.client( nServerID,sPage ) - Access the server.
Download is in Web.zip at the bottom
DarkNinja2462 #2
Posted 01 April 2012 - 10:25 PM
Adding a "rednet explorer"
Coming soon to a computercraft forum near you.
xuma202 #3
Posted 01 April 2012 - 10:56 PM
Nice but keep in mind that some items only stack one or 16 time
DarkNinja2462 #4
Posted 07 April 2012 - 01:14 AM
Nice but keep in mind that some items only stack one or 16 time
Its kind of for mining.
The only disadvantage is not telling what the item is or the block its about to break.
DarkNinja2462 #5
Posted 08 April 2012 - 02:06 AM
NEW UPDATE LOOK AT SECOND POST
Teraminer #6
Posted 08 April 2012 - 07:23 PM
request-sugestion turtle.forward/back(times). I could make this but it is something that you sould try to make your programs list bigger!


if
turtle.detect(Coalore)
then
turtle.dig()
print ("I found diamonds!")
end
(end?)

and turtle2.detectLeft/Right()
Edited on 17 April 2012 - 06:29 PM
DarkNinja2462 #7
Posted 21 April 2012 - 01:22 AM
NEW UPDATE TO THE INTERNET
Learning_inpaired #8
Posted 23 May 2012 - 03:09 AM
there seems to be an issue with the "server" i type server to start it for the internet and it just sits at server and nothing happens :P/>/>, dont know why but thats all
DarkNinja2462 #9
Posted 25 May 2012 - 04:58 PM
the server proviedes the data, the client requests it.
What do you want it to print when it gets acessed?
Learning_inpaired #10
Posted 25 May 2012 - 11:10 PM
the server proviedes the data, the client requests it.
What do you want it to print when it gets acessed?

just something simple like print("hello there")
ETHANATOR360 #11
Posted 06 August 2012 - 03:13 AM
never mind
Edited on 18 August 2012 - 09:31 PM
QcMoOnLiGhT #12
Posted 10 August 2012 - 03:38 AM
hey mate! nice work on the juke box, i was wondering if it was possible to make it work with the modem? that way you have one computer sitting in the room you like and the jukebox system elsewere ;)/>/>