You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.
This package will provide the basic set of scratch for discord blocks to improve refactoring and efficiency
How to use?
import{Config,Block,WarningBuilder}from"pathToThisPackage/index"newConfig(registerRestrictions)//If this is not added warnings won't work for blocksnewBlock("s4d_event_message_wallet").setBlockJSON({"message0": "Message block","colour": "#a55b80","output": "message",//Blockly json block fields...})block1.warning.setWarnings(newWarningBuilder().setType(WarningType.TopLevelParent).setMessage("This block belongs to message event").setTypes("s4d_on_message"))block1.Register()//Now u can access the block in toolbox//toolbox.jsblock1.xmlJson.XML()//for json toolbox useblock1.xmlJson.JSON()