The District of Joban Difference between revisions of "JCM:Sound Looper"

Difference between revisions of "JCM:Sound Looper"

From The District of Joban
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{InfoBox block|id=jsblock:sound_looper|version=|title=Sound Looper|image=JCM_Sound_Looper.png|type=Block|transparent=No|item_group=Joban Blocks|light_level=0|since=1.0.8}}
{{InfoBox block|id=jsblock:sound_looper|title=Sound Looper|image=JCM_Sound_Looper.png|type=Block|transparent=No|item_group=JCM Blocks|light_level=0|since=1.0.8|author=LX86|hardness=0.8|general_category=General Information|other_category=Other Information}}


A '''Sound Looper''' is a block that plays sound repeatedly in a certain interval.
A '''Sound Looper''' is a block that plays sound repeatedly in a certain interval.
Line 8: Line 8:
# Follow the GUI Instructions.
# Follow the GUI Instructions.
# On the configured interval, the following will be executed:  If the sound looper is configured to need redstone power, it will not play if there's no power.  If the range is limited, it will only play the sound to the player between the 2 positions.  Otherwise, it will play the sound to everyone.
# On the configured interval, the following will be executed:  If the sound looper is configured to need redstone power, it will not play if there's no power.  If the range is limited, it will only play the sound to the player between the 2 positions.  Otherwise, it will play the sound to everyone.
=== Crafting Recipe ===
{{Crafting 3x3|Minecraft Smooth stone.png|Minecraft Redstone.png|C2=2|res=JCM Sound Looper.png}}


=== Block Entity ===
=== Block Entity ===
Line 32: Line 35:
|Whether the range should be limited between pos1 and pos2
|Whether the range should be limited between pos1 and pos2
|0b
|0b
|-
|sound_id
|string
|The Sound ID to play
|""
|-
|-
|volume
|volume

Latest revision as of 21:44, 8 October 2022

Sound Looper
JCM Sound Looper.png
General Information
Block ID jsblock:sound_looper
Item Group JCM Blocks
Transparent No
Light Level 0
Other Information
Added in v1.0.8
Created by LX86


A Sound Looper is a block that plays sound repeatedly in a certain interval.

Usage

  1. Right Click with a brush to configure the Sound Looper
  2. Follow the GUI Instructions.
  3. On the configured interval, the following will be executed: If the sound looper is configured to need redstone power, it will not play if there's no power. If the range is limited, it will only play the sound to the player between the 2 positions. Otherwise, it will play the sound to everyone.

Crafting Recipe

Minecraft Smooth stone.png
Minecraft Redstone.png2
Crafting Table Arrow.png
JCM Sound Looper.png

Block Entity

This block has a block entity, and stores the following data:

jsblock:sound_looper
Name Type Description Default Value
pos1 long The first set of positions encoded in Long 0L
pos2 long The second set of positions encoded in Long 0L
limit_range boolean Whether the range should be limited between pos1 and pos2 0b
sound_id string The Sound ID to play ""
volume float The volume where the sound will play 1.0f

Issues

The release of JCM 1.1.2 has to be postponed due to the method parameters of ClientboundCustomSoundPacket being changed in 1.19, a mapping is later made to support 1.19 and older versions.

History
Version Changes Made
v1.0.8 Added Sound Looper
v1.1.2 Sound looper may now be limited in a range