From 4101cb2dfb08059c8eb511f94a5cf8ca5e8a9cb0 Mon Sep 17 00:00:00 2001 From: Cruor Date: Tue, 16 May 2017 23:30:53 +0200 Subject: [PATCH] Added help file for speakers Added help file for speakers --- .../resources/assets/computercraft/lua/rom/help/speakers | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/main/resources/assets/computercraft/lua/rom/help/speakers diff --git a/src/main/resources/assets/computercraft/lua/rom/help/speakers b/src/main/resources/assets/computercraft/lua/rom/help/speakers new file mode 100644 index 000000000..c5a039868 --- /dev/null +++ b/src/main/resources/assets/computercraft/lua/rom/help/speakers @@ -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( sIntrumentName, 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 version 1.12 above. +Ticks is the amount of times a noteblock has been tuned (right clicked).