JCM:Packets
From The District of Joban
Views
Actions
Namespaces
Variants
Tools
Revision as of 01:46, 21 August 2022 by LX86 (talk | contribs) (Created page with "== Client Side == === Client Send === {| class="wikitable" |+jsblock:packet_rv_pids_update Send RV PIDS Configuration (Client -> Server) !Type !Description |- |BlockPos |Position of the left side of the RV PIDS |- |BlockPos |Position of the right side of the RV PIDS |- |Integer |The amount of custom messages to read (Always 4 for now) |- |String |1st row: The string of the custom message |- |Boolean |1st row: Whether the arrival is hidden |- |String |2nd row: The string...")
Client Side
Client Send
Type | Description |
---|---|
BlockPos | Position of the left side of the RV PIDS |
BlockPos | Position of the right side of the RV PIDS |
Integer | The amount of custom messages to read (Always 4 for now) |
String | 1st row: The string of the custom message |
Boolean | 1st row: Whether the arrival is hidden |
String | 2nd row: The string of the custom message |
Boolean | 2nd row: Whether the arrival is hidden |
String | 3rd row: The string of the custom message |
Boolean | 3rd row: Whether the arrival is hidden |
String | 4th row: The string of the custom message |
Boolean | 4th row: Whether the arrival is hidden |
Boolean | Whether Platform Circle is hidden or not |
String | Name of the PIDS Preset |
Type | Description |
---|---|
BlockPos | Position of the left side of the PIDS |
BlockPos | Position of the right side of the PIDS |
Integer | The amount of custom messages to read (Always 4 for now) |
String | 1st row: The string of the custom message |
Boolean | 1st row: Whether the arrival is hidden |
String | 2nd row: The string of the custom message |
Boolean | 2nd row: Whether the arrival is hidden |
String | 3rd row: The string of the custom message |
Boolean | 3rd row: Whether the arrival is hidden |
String | 4th row: The string of the custom message |
Boolean | 4th row: Whether the arrival is hidden |
String | Name of the PIDS Preset |
Type | Description |
---|---|
BlockPos | Position of the Subsidy Machine Block being modified |
Integer | Amount of balance it gives per click |
Integer | The timeout (In seconds) |
Type | Description |
---|---|
BlockPos | Position of the Fare Saver Block being modified |
Integer | Amount of balance it saves |
Type | Description |
---|---|
BlockPos | Position of the Sound Looper Block being modified |
BlockPos | 1st set of positions for the limited range |
BlockPos | 2nd set of positions for the limited range |
String | Sound ID |
Integer | Sound Category Index
0: MASTER 1: MUSIC 2: WEATHER 3: AMBIENT 4: PLAYERS |
Integer | Loop Interval, in ticks |
Float | Volume, default is 1.0 |
Boolean | Whether sound looper needs redstone |
Boolean | Whether range is limited |
Client Receive
jsblock:packet_version_check
WIP
jsblock:packet_open_sound_looper_screen
- Read position of the sound looper
- If the current Minecraft Client has a world loaded:
- Get the BlockEntity of the sound looper
- If BlockEntity is in fact a sound looper:
- Open the Sound Looper Config GUI if it isn't opened already
jsblock:packet_open_rv_pids_config_screen
- If the current Minecraft Client has a world loaded:
- Read the position of the left and right side of RV PIDS
- Read the max arrival of the PIDS
- Read whether platform number circle is hidden
- Read PIDS Preset ID
- If BlockEntity is an RV PIDS:
- Open the RV PIDS Config GUI if it isn't opened already
jsblock:packet_open_joban_pids_config_screen
- If the current Minecraft Client has a world loaded:
- Read the position of the left and right side of PIDS
- Read the max arrival of the PIDS
- Read PIDS Preset ID
- If BlockEntity is a Joban PIDS:
- Open the Joban PIDS Config GUI if it isn't opened already
jsblock:packet_open_faresaver_config_screen
- If the current Minecraft Client has a world loaded:
- Read the position of the Fare Saver Block
- Read the discount value
- If BlockEntity is Fare Saver:
- Open a Fare Saver Config GUI if it isn't opened already
jsblock:packet_open_subsidy_config_screen
- If the current Minecraft Client has a world loaded:
- Read the position of the Subsidy Machine Block
- Read the "balance per click"
- Read the timeout
- If BlockEntity is Subsidy Machine:
- Open a Subsidy Machine Config GUI if it isn't opened already
Server Side
Server Send
Type | Description |
---|---|
BlockPos | Position of the Sound Looper Block being right clicked |
Type | Description |
---|---|
BlockPos | Position of the left side of the RV PIDS |
BlockPos | Position of the right side of the RV PIDS |
Integer | The amount of custom messages for RV PIDS (Always 4 for now) |
Boolean | Whether Platform Number is hidden in this PIDS |
String | Preset ID of the PIDS |
Type | Description |
---|---|
BlockPos | Position of the left side of the PIDS |
BlockPos | Position of the right side of the PIDS |
Integer | The amount of custom messages for RV PIDS (Always 4 for now) |
String | Preset ID of the PIDS |
Type | Description |
---|---|
BlockPos | Position of the Subsidy Machine Block right clicked |
Integer | Balance to add per click |
Integer | Timeout (In seconds) |
Type | Description |
---|---|
BlockPos | Position of the Fare Saver Block right clicked |
Integer | The balance it discounts |
Type | Description |
---|---|
BlockPos | Position of the Sound Looper Block right clicked |
Server Receive
WIP