Posted 21 June 2013 - 02:43 PM
Robbo5899's MiscPeripherals Tutorial
I take no credit for the Mod itself this is just what I know about the mod and I thought I would share it since it was so difficult to find anything about it when I was learning.
I will add to this as i learn more about the items and as more items are added.
If you want me to do a certain item next just post it below.
Player Detector:
Emits event 'player' when right clicked with 'username' as a parameter.
This piece of code will print the player event and the username of the player who clicks it.
Firework Launcher:
Can be crafted alongside a turtle to produce a Firework Turtle. The block version has 54 slots of firework component storage, while the turtle version uses the turtle's inventory.
Has one function, launch(slot,slot,slot,slot,…)
The following code will launch a firework using the items in slots 1, 2, 3 and 4.
Iron Note Block:
Can be crafted alongside a turtle to produce a Note Turtle. Produces In Game Note block sounds which you tell it.
Has one function; playNote(instrument, noteNumber)
Instruments are as follows;
0 = Piano
1 = Bass drum
2 = Snare
3 = Clicks
4 = Bass guitar
Notes are 0-24 in number of right clicks
The following code plays note 3 from the Snare.
Computer Controlled Crafter:
Has 4 functions:
setPattern(slot,slot,slot…) - Sets the crafting recipe.
craft(amount) - Pretty self explanatory.
list() - Returns a list of all items in the inventory.
get(slot) - Returns the amount
I take no credit for the Mod itself this is just what I know about the mod and I thought I would share it since it was so difficult to find anything about it when I was learning.
I will add to this as i learn more about the items and as more items are added.
If you want me to do a certain item next just post it below.
Player Detector:
Emits event 'player' when right clicked with 'username' as a parameter.
This piece of code will print the player event and the username of the player who clicks it.
event,name = os.pullEvent("player")
print(event)
print(name)
Firework Launcher:
Can be crafted alongside a turtle to produce a Firework Turtle. The block version has 54 slots of firework component storage, while the turtle version uses the turtle's inventory.
Has one function, launch(slot,slot,slot,slot,…)
The following code will launch a firework using the items in slots 1, 2, 3 and 4.
fw = peripheral.wrap("SIDE")
fw.launch(1,2,3,4)
Iron Note Block:
Can be crafted alongside a turtle to produce a Note Turtle. Produces In Game Note block sounds which you tell it.
Has one function; playNote(instrument, noteNumber)
Instruments are as follows;
0 = Piano
1 = Bass drum
2 = Snare
3 = Clicks
4 = Bass guitar
Notes are 0-24 in number of right clicks
The following code plays note 3 from the Snare.
note = peripheral.wrap("SIDE")
note.playNote(2, 3)
Computer Controlled Crafter:
Has 4 functions:
setPattern(slot,slot,slot…) - Sets the crafting recipe.
craft(amount) - Pretty self explanatory.
list() - Returns a list of all items in the inventory.
get(slot) - Returns the amount