From eb7c30c09d00af40869282da2b77b37de0ce7bf7 Mon Sep 17 00:00:00 2001 From: Zishan Rahman Date: Thu, 18 Dec 2025 19:30:45 +0000 Subject: [PATCH] Create basic jump snippet for Movement toolbox category --- toolbox.js | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/toolbox.js b/toolbox.js index d738f9bc..f32d0135 100644 --- a/toolbox.js +++ b/toolbox.js @@ -4202,6 +4202,80 @@ const toolboxSnippetsMovement = { }, }, }, + { + kind: "block", + type: "when_action_event", + icons: { + comment: { + text: "Press \"Space\" to jump!", + pinned: true, + height: 80, + width: 180, + }, + }, + fields: { + ACTION: "BUTTON4", + EVENT: "pressed", + }, + inputs: { + DO: { + block: { + type: "apply_force", + fields: { + MESH_VAR: { + name: "player", + }, + }, + inputs: { + X: { + shadow: { + type: "math_number", + fields: { + NUM: 0, + }, + }, + }, + Y: { + shadow: { + type: "math_number", + fields: { + NUM: 5, + }, + }, + }, + Z: { + shadow: { + type: "math_number", + fields: { + NUM: 0, + }, + }, + }, + }, + next: { + block: { + type: "play_animation", + fields: { + MODEL: { + name: "player", + }, + }, + inputs: { + ANIMATION_NAME: { + shadow: { + type: "animation_name", + fields: { + ANIMATION_NAME: "Jump", + }, + }, + }, + }, + }, + }, + }, + }, + }, + }, ] }