1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-19 05:32:55 +00:00

Merge pull request #248 from Cruor/master

Added help file for speakers
This commit is contained in:
Daniel Ratcliffe 2017-05-16 22:55:43 +01:00 committed by GitHub
commit c15fcd00ec

View File

@ -0,0 +1,9 @@
The Speaker is a peripheral device available for CraftOS. Type "help peripheral" to learn about using the Peripheral API to connect with peripherals. When a Speaker is connected, peripheral.getType() will return "speaker".
Methods exposed by the Speaker:
playSound( sResourceName, nVolume, nPitch )
playNote( sInstrumentName, nVolume, nTicks )
Resource name is the same as used by the /playsound command, such as "minecraft:entity.cow.ambient".
Instruments are as follows: "harp", "bass", "snare", "hat", and "basedrum" with the addition of "flute", "bell", "chime", and "guitar" in Minecraft versions 1.12 and above.
Ticks is the amount of times a noteblock has been tuned (right clicked).