Advertisement
AngryAI

SayStuff

Apr 13th, 2025 (edited)
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. class SayStuff {
  2. getInfo() {
  3. return {
  4. id: "SayStuff",
  5. name: "Say Stuff",
  6. blocks: [
  7. {
  8. opcode: "getPi",
  9. blockType: "reporter",
  10. text: "pi"
  11. }
  12. ]
  13. };
  14. }
  15.  
  16. getPi() {
  17. return Math.PI;
  18. }
  19. }
  20.  
  21. Scratch.extensions.register(new SayStuff());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement