Jump to content




Jukebox With Redpower 2



  • You cannot reply to this topic
9 replies to this topic

#1 DarkNinja2462

  • Members
  • 107 posts
  • LocationThe 4th Dimension

Posted 23 February 2012 - 01:42 AM

I 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
---------------------------------------------------------------------------------------------------

Attached Files

  • Attached File  Juke.zip   759bytes   150 downloads


#2 Casper7526

    OG of CC

  • Members
  • 362 posts

Posted 23 February 2012 - 02:13 AM

This is a program, it goes in the program library.

#3 DarkNinja2462

  • Members
  • 107 posts
  • LocationThe 4th Dimension

Posted 23 February 2012 - 02:14 AM

I thought a peripheral was hardware?

#4 Casper7526

    OG of CC

  • Members
  • 362 posts

Posted 23 February 2012 - 02:19 AM

A peripheral is a mod that interacts with the computercraft API. It's not for programs/setups made in pure lua.

#5 Tigerlife

  • Members
  • 21 posts

Posted 17 March 2012 - 04:55 AM

easier way using only computercraft mod- put normal minecraft music disks in disk drive thentype in computer or turtle "dj"

#6 Pigbear

  • Members
  • 6 posts

Posted 18 March 2012 - 03:44 PM

Exactly.

#7 Espen

    Curious Explorer

  • Members
  • 708 posts

Posted 18 March 2012 - 04:00 PM

View PostTigerlife, on 17 March 2012 - 04:55 AM, said:

easier way using only computercraft mod- put normal minecraft music disks in disk drive thentype in computer or turtle "dj"

View PostPigbear, on 18 March 2012 - 03:44 PM, said:

Exactly.
Have you watched the video?
He created a system where you can choose a disk from a menu and then it will be automatically fetched from storage and put into the disk drive to be played.
So he didn't implement the already existing ability for disk drives to play music discs, but rather extended that with a system to change disks automatically.

#8 mememan000

  • New Members
  • 8 posts
  • LocationUnited States

Posted 19 March 2012 - 07:30 PM

~

Edited by mememan000, 28 August 2015 - 02:39 AM.


#9 wooby_6

  • New Members
  • 1 posts

Posted 26 March 2012 - 08:25 AM

I've created a similar system using buildcraft & logistics pipes

I'm having trouble with the damm code, logistics pipes uses a request pipe, the request pipe allows me to request a disc from a chest to load into the disk drive

now im trying to automate the play/ eject process using a buildcraft gate (the gate detects when a item is moving through a pipe & when it is not, & provides a redstone singal)

in my case the redstone is constantly on until a item moves through it in which case it turns off.

this is what i have so far:
function os.pullEvent()
local event, p1, p2, p3, p4, p5 = os.pullEventRaw()
if event == "terminate" then
end
return event, p1, p2, p3, p4, p5
end
print("Wooby6 automated jukebox:")
--loop here
if rs.getInput("right") == false and disk.isPresent("top") then
disk.eject("top")
sleep(1)
disk.playAudio("top")
else
sleep(2)
disk.playAudio("top")
end
-- loop end here

but i cant get a loop to keep looking for the rs.getInput("right") == false

#10 OmegaVest

  • Members
  • 436 posts

Posted 26 March 2012 - 04:40 PM

View Postwooby_6, on 26 March 2012 - 08:25 AM, said:


but i cant get a loop to keep looking for the rs.getInput("right") == false


Sorry to piggyback on this thread, but I see a chance to help here.

Use while rs.getInput("right") do , or while true do os.pullEvent() and then interrupt the loop with a break once it has run.

Also, you might think about having the system pulse for ejection before the while loop hits.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users