Skip to content

Porting extensions from other Scratch mods #619

Answered by GarboMuffin
BlueDome77 asked this question in Q&A
Discussion options

You must be logged in to vote

if you intend to submit it here, you need to show that the source code is available under an open source license

unless they've changed much, it should be pretty simple, requiring at least:

  1. remove all the require()
  2. replace BlockType -> Scratch.BlockType, ArgumentType -> Scratch.ArgumentType
  3. replace module.exports = ... with Scratch.extensions.register(new ...)
  4. replace this.runtime -> Scratch.vm.runtime
  5. wrap in IIFE

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BlueDome77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants