From 6398e33aeab94e1bbd951beb710e682222a64651 Mon Sep 17 00:00:00 2001 From: SharkPool <139097378+SharkPool-SP@users.noreply.github.com> Date: Sat, 17 Aug 2024 16:36:41 -0700 Subject: [PATCH] new block p3/4 --- blocks_vertical/procedures.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/blocks_vertical/procedures.js b/blocks_vertical/procedures.js index 2d456fd186..59f5144d17 100644 --- a/blocks_vertical/procedures.js +++ b/blocks_vertical/procedures.js @@ -1185,6 +1185,25 @@ Blockly.Blocks['argument_editor_string_number'] = { removeFieldCallback: Blockly.ScratchBlocks.ProcedureUtils.removeArgumentCallback_ }; +Blockly.Blocks['procedures_set'] = { + init: function() { + this.jsonInit({ + "message0": 'set %1 to %2', + "args0": [ + { + "type": "", // Intentional + "name": "PARAM" + }, + { + "type": "input_value", + "name": "VALUE" + } + ], + "extensions": ["colours_more"] + }); + } +}; + Blockly.Blocks['procedures_return'] = { init: function() { this.jsonInit({