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

Difference between revisions of "JCM:Sound Looper"

From The District of Joban
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=Joban Blocks|light_level=0|since=1.0.8|author=LX86|hardness=0.8}}


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.

Revision as of 14:49, 14 August 2022

Sound Looper
JCM Sound Looper.png
Block ID jsblock:sound_looper
Item Group Joban Blocks
Transparent No
Light Level 0
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.

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