From 92fd00d40d724f69333b63ea50bd45c8bba2e1cf Mon Sep 17 00:00:00 2001 From: Rob9315 Date: Thu, 21 Jul 2022 22:56:34 +0200 Subject: [PATCH] add type values to packetTest (#1023) * add varlong value to packetTest * add command_node type value in packetTest --- test/packetTest.js | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/test/packetTest.js b/test/packetTest.js index e70004f..7ffbf7b 100644 --- a/test/packetTest.js +++ b/test/packetTest.js @@ -40,6 +40,7 @@ const values = { i16: -123, u16: 123, varint: 1, + varlong: -10, i8: -10, u8: 8, string: 'hi hi this is my client string', @@ -176,7 +177,30 @@ const values = { tags: [{ tagName: 'hi', entries: [1, 2, 3, 4, 5] }], ingredient: [slotValue], particleData: null, - chunkBlockEntity: { x: 10, y: 11, z: 12, type: 25 } + chunkBlockEntity: { x: 10, y: 11, z: 12, type: 25 }, + command_node: { + flags: { + has_custom_suggestions: 1, + has_redirect_node: 1, + has_command: 1, + command_node_type: 2 + }, + children: [23, 29], + redirectNode: 83, + extraNodeData: { + name: 'command_node name', + parser: 'brigadier:double', + properties: { + flags: { + max_present: 1, + min_present: 1 + }, + min: -5.0, + max: 256.0 + }, + suggestionType: 'minecraft:summonable_entities' + } + } } function getValue (_type, packet) {