This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#676 2011-04-28 13:32:38

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: ITopic: Welcome to your local block library!

scimonster wrote:

Here:

Code:

alert: t1 withTitle: t2 
    DialogBoxMorph inform: t1 title: t2

Yay! It worked.

Can we add that block?

Alert Block
By ProgrammingFreak with the help of scimonster and Pecola1

Code:

alert: t1 withTitle: t2 
    DialogBoxMorph inform: t1 title: t2

Blockspec:
('alert %s with title %s' #- #alert:withTitle: 'message' 'title')

Offline

 

#677 2011-04-28 13:37:18

YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 100+

Re: ITopic: Welcome to your local block library!

ProgrammingFreak wrote:

scimonster wrote:

Here:

Code:

alert: t1 withTitle: t2 
    DialogBoxMorph inform: t1 title: t2

Yay! It worked.

Can we add that block?

Alert Block
By ProgrammingFreak with the help of scimonster and Pecola1

Code:

alert: t1 withTitle: t2 
    DialogBoxMorph inform: t1 title: t2

Blockspec:
('alert %s with title %s' #- #alert:withTitle: 'message' 'title')

Okay, it did work! Its funny that the only reason why we are all on at the same time is cuz we are all homeschooled! LOL XD
~Pecola1

Last edited by YourLocalBlockLib (2011-04-28 13:37:43)


http://dl.dropbox.com/u/6273449/BlockLibraryTitle.png

Offline

 

#678 2011-04-28 13:38:47

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: ITopic: Welcome to your local block library!

YourLocalBlockLib wrote:

ProgrammingFreak wrote:

scimonster wrote:

Here:

Code:

alert: t1 withTitle: t2 
    DialogBoxMorph inform: t1 title: t2

Yay! It worked.

Can we add that block?

Alert Block
By ProgrammingFreak with the help of scimonster and Pecola1

Code:

alert: t1 withTitle: t2 
    DialogBoxMorph inform: t1 title: t2

Blockspec:
('alert %s with title %s' #- #alert:withTitle: 'message' 'title')

Okay, it did work! Its funny that the only reason why we are all on at the same time is cuz we are all homeschooled! LOL XD

big_smile  Of course I am done with school (just a note to all ya'll non-homeschoolers aka everyone)

SO I guess you are Pecola now...  tongue
EDIT: Oh, you edited.  big_smile

Last edited by ProgrammingFreak (2011-04-28 13:39:11)

Offline

 

#679 2011-04-28 13:45:10

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Oh and I think it should be in the Looks ops.

Offline

 

#680 2011-04-28 14:18:53

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Move () Steps [ ]
By ProgrammingFreak
New DropDown:

Code:

$z = code ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #moveStepsMenu; choice: 'right'].

moveStepsMenu Method

Code:

moveStepsMenu
    ^ #('left' 'right' 'down' 'up')

moveDirectionStep Method

Code:

moveDirectionStep: t1 
    'right' = t1 ifTrue: [#forward].
    'left' = t1 ifTrue: [#backward].
    'up' = t1 ifTrue: [#up].
    'down' = t1 ifTrue: [#down].

forward method

Code:

forward: distance
    "Move the object forward (i.e., the direction of its heading) by the given distance.
    Avoid infinite or NaN coordinates"

    | radians deltaP newPos newX newY |
    radians _ rotationDegrees degreesToRadians.
    deltaP _ ((radians cos)@(radians sin)) * distance.
    newPos _ self position + deltaP.
    newX _ newPos x.
    newY _ newPos y.
    newX isNaN ifTrue: [newX _ 0].
    newX isInf ifTrue: [newX _ newX sign * 10000].
    newY isNaN ifTrue: [newY _ 0].
    newY isInf ifTrue: [newY _ newY sign * 10000].
    self position: newX @ newY.
    self keepOnScreen.

backward method

Code:

backward: t1
| t2 |
t2_  0 - t1.
self forward: t2.

down method

Code:

down: t1
    | t2|
                 t2_ self heading.
                self heading: 180.
    self forward: t1.
                self heading: t2.

up method

Code:

up: t1 
    | t2|
                 t2_ self heading.
                self heading: 0.
    self forward: t1.
                self heading: t2.

BlockSpec:

Code:

('move %n steps %z' #- #moveDirectionStep:)

Ops: Motion

This block redoes the 'Move () Steps' block.

Offline

 

#681 2011-04-28 16:24:04

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Can someone help me make a BYOB block called "make me draggable untill <> "? I have tried, but it won't work.


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#682 2011-04-28 21:38:44

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Can I become a part-time block librarian as a block tester? Or is that someones job already? Thanks!

I have already tested a few blocks.

Last edited by scratcher7_13 (2011-04-28 21:39:04)


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#683 2011-04-29 04:31:33

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: ITopic: Welcome to your local block library!

joefarebrother wrote:

Can someone help me make a BYOB block called "make me draggable untill <> "? I have tried, but it won't work.

http://i.imgur.com/i3Va9.gif
Download link


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

#684 2011-04-29 05:02:07

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Sorry scratcher7_13, We have all the librarians we need - the only difference between a librarian and a regular Scratcher is that they can edit the library posts. You are most welcome to test blocks in the library and report any broken ones, the library is a project everyone can help with!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#685 2011-04-29 05:06:13

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: ITopic: Welcome to your local block library!

scimonster wrote:

I think the old Library should be closed- I can copy code from there anyways, though I'd hate to do something like BYOB Operators or a Panther section with more than 5 blocks.

Offline

 

#686 2011-04-29 06:50:54

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Hardmath123 wrote:

Blockspec:

Code:

('Set the list blocks color to %c' #- #setListBlockColorSelf:)

Code:

Code:

setListBlockColorSelf: t1 
    ListBlockColor _ t1

Anybody?

Last edited by Hardmath123 (2011-04-30 12:57:25)


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#687 2011-04-29 06:52:46

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Hardmath123 wrote:

scimonster wrote:

Hardmath123 wrote:


Blockspec:

Code:

('Set the list blocks color to %c' #- #setListBlockColorSelf:)

Code:

Code:

setListBlockColorSelf: t1 
    ListBlockColor _ t1

You said it worked for sensing.

It does. It doesn't work for lists, because it'll change its own color, which causes a glitch.

So...
If you made that a control block, it would work for sensing?

Offline

 

#688 2011-04-29 06:54:31

Hardmath123
Scratcher
Registered: 2010-02-19
Posts: 1000+

Re: ITopic: Welcome to your local block library!

scimonster wrote:

Hardmath123 wrote:

scimonster wrote:


You said it worked for sensing.

It does. It doesn't work for lists, because it'll change its own color, which causes a glitch.

So...
If you made that a control block, it would work for sensing?

No, no, no! Sorry, I misunderstood. You can only change a list block's color, BUT this block only works under sensing ops.


Hardmaths-MacBook-Pro:~ Hardmath$ sudo make $(whoami) a sandwich

Offline

 

#689 2011-04-29 15:52:31

ProgrammingFreak
Scratcher
Registered: 2010-09-04
Posts: 1000+

Re: ITopic: Welcome to your local block library!

bump

Offline

 

#690 2011-04-29 16:29:35

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: ITopic: Welcome to your local block library!

... PF, this topic really does not need bumping. It was updated this morning!


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#691 2011-04-29 17:08:06

WindowsExplorer
Scratcher
Registered: 2011-02-25
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Code:

.        
.                                     
.                             
.                                    

Welcome to your block library! One of the most important and beloved features of Scratch are the blocks, and a great deal of time and effort has gone into making the blocks you see. When building Scratch, the team specifically designed the code so that it would be as easy as possible to add new blocks, and many people have done just that! This topic aims to bring together a collection of useful block code for experimenting Scratchers to try out and learn from, embracing the program and share parts of the Scratch Motto and hopefully letting users use what they learn here to imagine their own blocks!

Just click on one of the block images below to find blocks for Scratch, BYOB and Panther!









So to all you curious Scratchers and viewers alike, I bid you welcome. Welcome to the Library!



Your Local Block Library Block Count:
                
_________________________________
Want to add to the library? Please do! Comment below for it to be added.
_________________________________
Librarians
o Sparks About Sparks
o SSBBM About SSBBM
o TheSuccessor About TheSuccessor
o Pecola1 About Pecola1
o Scimonster About Scimonster
o Meowmeow55

Special thanks to coolstuff for pushing to get this Itopic'd, fullmoon for helping with the account, nXIII for doing a lot of the excellent graphics and everyone who posted their block code and asked for this to be Itopic'd, we couldn't have done it without you!
Last edited by YourLocalBlockLib (2011-04-26 12:37:42)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#2 2011-03-16 15:53:11
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!




How to add one of these blocks to Scratch:
I suggest visiting this excellent forum page. It has a full explanation from Billyedward. You can also look at this detailed explaination on the layout of blockspecs by ScratchReallyRocks.

To install a block importer in Scratch to automatically add a (downloadable) block for you, click here! But beware, this feature is untested!

Choose a block type to view, or scroll down this page to see more!

 Motion
 Control
 Looks
 Sensing
 Sound
 Operators
 Pen
 Variables

home
Last edited by YourLocalBlockLib (2011-04-25 17:37:56)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#3 2011-03-16 15:54:34
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!
Motion



 Shared by MarioBlender

Blockspec:
('make %m move %n steps' #- #move:forward:)
Code:
move: sprite forward: distance 
    sprite forward: distance
What this block does:
Lets a sprite move another sprite without having to use a broadcast!



 Shared by MathWizz

Blockspec:
('if touching %m bounce' #- #bounceOffSprite:)
Code:
bounceOffSprite: aName 
    | sprite oldDir |
    sprite _ self coerceSpriteArg: aName.
    (self touching: sprite)
        ifFalse: [^ self].
    oldDir _ self heading.
    self pointTowards: sprite.
    self turnRight: self heading - oldDir + 180.
    [self touching: sprite]
        whileTrue: [self forward: 1]
What this block does:
Causes the sprite to bounce of a selected sprite if touching it. (Assumes the sprite is a circle.)



 Shared by Pecola1

Blockspec:
('set rotation style to %r' #- #rotationStyle:)
Code:
No code needed

Scratch objects> ScratchSpriteMorph>motion ops
rotationStyleChanger
    ^ #('normal' 'leftRight' 'none' )
Scratch-Blocks> CommandBlockMorph>> -- all -- > uncoleredArgMorphFor:
add the strip...
$r = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #rotationStyleChanger;
         choice: 'normal'].
What this block does:
Allows you to change the rotation style of a sprite.



 Shared by Pecola1

Blockspec:
('rotation style' #r #rotationStyle)
Code:
rotationStyle
    ^ rotationStyle
What this block does:
Reports a sprite's rotation style.



 Shared by StrykerV

Blockspec:
('point at x:%n y:%n' #- #pointToX:y:)
Code:
No code needed

What this block does:
Points the sprite at the specified region of the stage.



 Shared by Hardmath123

Blockspec:
('go to random x-y position' #- #randxypos)
Code:
Code:

randxypos
    self gotoX: (self randomFrom: -240 to: 240)
        y: (self randomFrom: -180 to: 180)


^ Back to Scratch Blocks
^ Back to Contents
Last edited by YourLocalBlockLib (2011-04-27 09:55:41)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#4 2011-03-16 15:55:37
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!
Control



Shared by Sparks
blockspec:
('open camera window' #- #takePhoto)
no code needed

What it does:
Opens the webcam control window and lets you take photos.




Shared by Billybob-Mario
blockspec:
('save project' #- #saveProj)
code:
saveProj
| t1 |
t1 _ self ownerThatIsA: ScratchFrameMorph.
t1 saveScratchProject
What it does:
Opens the save project as dialog and lets you save it!




Shared by bbbeb
blockspec:
('press green flag' #- #pressGreenFlag)
code:
pressGreenFlag
     #pressGreenFlagButton
What it does:
Triggers all scripts starting with a "when green flag clicked" hat.  Note: This block is glitched, it won't work on a when flag clicked hat block, instead you can use 'self broadcast: 'Scratch-StartClicked' ' (info) 




Shared by zorket
blockspec:
('go to scratch website' #- #link)
code
link
Cursor wait showWhile: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/']
What it does:
Opens the Scratch homepage!




Shared by rubiks_cube_guy238
blockspec:
('%e received?' #b #seesBroadcast:)
code
seesBroadcast: t1 
    | t2 |
    t2 _ ScratchEvent allInstances.
    t2
        reverseDo:     
            [:t3 | 
            t3 name = t1 ifTrue: [^ true].
            nil].
    ^ false
What it does:
Lets you test to see if a broadcast is being sent. Much sought after and requested.




Shared by lots of people
blockspec:
('clone me' #- #duplicateNoAttach)
no code needed

What it does:
This block creates a clone of the sprite that runs it. Note: this block does not work in presentation mode.


Shared by lots of people
blockspec:
('delete me' #- #undoableDeleteSprite)
no code needed

What it does:
This block permanently deletes the sprite that runs it. Note: this block does not work in presentation mode.



 Shared by Zorket
Blockspec:
('set single stepping' #- #setSpeed)
Code:
setSpeed
    | t1 t2 |
    t1 _ CustomMenu new title: 'Single-step speed?'.
    t1 add: 'Turbo speed' action: 0.
    t1 add: 'Normal' action: 1.
    t1 add: 'Flash blocks (fast)' action: 30.
    t1 add: 'Flash blocks (slow)' action: 200.
    t2 _ t1 localize startUp.
    t2 ifNil: [^ self].
    ScratchProcess blockHighlightMSecs: t2
What it does:
This block lets you change the speed of your project! Very useful when you want a mix of fast computing and good graphics.



 Shared by Pecola1
Blockspec:
('show cursor' #- #showCursor)
Code:
showCursor
    World activeHand showTemporaryCursor: nil
What it does:
Shows the cursor (use with hide cursor block below).



 Shared by Pecola1
Blockspec:
('hide cursor' #- #hideCursor)
Code:
hideCursor
    World activeHand showTemporaryCursor: ((Form extent: 1 @ 1 depth: 32)
            fillColor: Color transparent)
What it does:
Hides the cursor (use with show cursor block above).



 Shared by Pecola1
Blockspec:
('enable programmer facilities' #- #enableProgrammerFacilities)
Code:
enableProgrammerFacilities
    Preferences enableProgrammerFacilities
What it does:
Enables the programmer facilities (info).



 Shared by Pecola1
Blockspec:
('disable programmer facilities' #- #disableProgrammerFacilities)
Code:
disableProgrammerFacilities
    Preferences disableProgrammerFacilities
What it does:
Disables the programmer facilities. Note: do not use until you make the enable programming facilities block. (info)


 Shared by Pecola1
Blockspec:
('quit Scratch' #- #exitScratch)
Code:
exitScratch
    Smalltalk snapshot: false andQuit: true
What it does:
Closes Scratch. Either save the image before testing it, or test and add it again after you reopen it.
How to make it a cap block:
1) Go to Scratch-Blocks >> CommandBlockMorph >> accessing >> isStop
2) Add the following code:
| (selector = #whatYourMethodIsCalled)


 Shared by Pecola1
Blockspec:
('reverse' #c #doBackwards)
Code (Scratch-Execution Engine»ScratchProcess»private-special forms):
doBackwards
    | t1 t2 |
    t1 _ stackFrame expression.
    t2 _ stackFrame arguments.
    self popStackFrame.
    self pushStackFrame: (ScratchStackFrame new expression: t1 firstBlockList reversed)
What it does:
Runs the blocks in the input backwards (if you had [say [hello]] [move (10) steps] it would do [move (10) steps] [say [hello]]) Note: Any C-block goes under Scratch-Execution Engine»ScratchProcess»private-special forms



 Shared by Pecola1
Blockspec:
('shuffle' #c #doScramble)
Code (Scratch-Execution Engine»ScratchProcess»private-special forms):
doScramble
    | t1 t2 |
    t1 _ stackFrame expression.
    t2 _ stackFrame arguments.
    self popStackFrame.
    self pushStackFrame: (ScratchStackFrame new expression: t1 firstBlockList shuffled)
What it does:
Runs the blocks in the input in a random order.



 Shared by Pecola1
Blockspec:
('run' #c #doForwards)
Code (Scratch-Execution Engine»ScratchProcess»private-special forms):
doForwards
    | t1 t2 |
    t1 _ stackFrame expression.
    t2 _ stackFrame arguments.
    self popStackFrame.
    self pushStackFrame: (ScratchStackFrame new expression: t1 firstBlockList)
What it does:
Runs the blocks in the input. Useful only in the scramble and reverse blocks.



 Shared by zorket, based on the block by Pecola1
Blockspec:
('close Scratch' #- #quitScratch)
Code:
quitScratch
    | t1 |
    t1 _ self ownerThatIsA: ScratchFrameMorph.
    t1 quitScratch
What it does:
Acts like if you click the "X" in the top right corner (Windows).  See the quit Scratch block by Pecola1 for instructions on making a cap.



^ Back to Scratch Blocks
^ Back to Contents
Last edited by YourLocalBlockLib (Yesterday 13:26:13)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#5 2011-03-16 15:57:03
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!
Looks





Shared by Jwosty
blockspec:
('say nothing' #- #sayNothing)
no code needed




Shared by sonicjosh
blockspec:
('paint new costume' #- #drawNewCostume)
no code needed

What it does:
Opens the paint editor and lets you paint a new sprite. Good for games where people want to choose their own avatars.




Shared by coupdegrace
blockspec:
('go forward %n layers' #- #goFwdByLayers: 1)
Code:
goFwdByLayers: t1 
    owner ifNil: [^ self].
    self layer: (owner submorphs indexOf: self)
            - t1 truncated
What it does:
Moves your sprite forward the specified amount of layers. Note: this can also be achieved by typing a negative number into the go back %n layers block




Shared by Pecola1
Click here for the 6 stage panning blocks.
What they do:
Pan the stage background around.




Shared by Jens Mönig
blockspec:
('flip' #- #flip)
Code:
flip
    costume form: (self form flipBy: #horizontal centerAt: 0 @ 0).
    self costumeChanged
What it does:
Flips a sprite to give a mirror image costume.




Shared by Pecola1
blockspec:
('grab screen region for new sprite' #- #grabSpriteFromScreen)
Code:
no code needed
What it does:
Lets you grab a region of the screen to make a new sprite with.




Shared by Pecola1
blockspec:
('save picture of stage' #- #stageShot)
Code:
no code needed
What it does:
Lets you save a picture of the stage.




Shared by Pecola1
blockspec:
('grab a new costume from stage' #- #grabFromScreen)
Code:
no code needed
What it does:
Lets you grab a region of the screen to make a new costume.




Shared by Pecola1
blockspec:
('layer #' #r #layer)
Code:
layer
    ^ owner submorphs indexOf: self
What it does:
Reports the layer number of the sprite.




Shared by Pecola1
blockspec:
('go to layer %n' #- #layer:)
Code:
no code needed
What it does:
Moves the sprite to a new layer.




Shared by Pecola1
blockspec:
('name of costume # %n' #r #costumeNameFromNumber:)
Code:
no code needed
What it does:
Reports the name of the costume number.




Shared by Scratchycat123
blockspec:
('hidden?' #b #isHidden)
Code:
no code needed




Shared by Hardmath123
blockspec:
('Jump forward %n costumes' #- #nextCostume: 2)
Code:
nextCostume: t1 
    self costumeIndex: self costumeIndex + t1


^ Back to Scratch Blocks
^ Back to Contents
Last edited by YourLocalBlockLib (2011-04-27 10:14:38)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#6 2011-03-16 15:58:03
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!
Sensing





Shared by midnightleopard
blockspec:
('%j %s' #- #doThis:on:)
code (place under sensing ops)
Code:

doThis: t1 on: t2 
    'google' = t1 ifTrue: [ScratchPlugin primOpenURL: 'http://www.google.com/#sclient=psy&hl=en&q=' , t2 , '&aq=f&aqi=g5&aql=&oq=&gs_rfai=&pbx=1&fp=ab5cdb1806fef4aa&safe=activet1'].
    'yahoo' = t1 ifTrue: [ScratchPlugin primOpenURL: 'http://search.yahoo.com/search;_ylt=Aj.OqjGVrkBmY6mZqA_PSu.bvZx4?p=' , t2 , '&toggle=1&cop=mss&ei=UTF-8&fr=yfp-t-701'].
    'scratch.mit.edu/' = t1 ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/' , t2].
    'search scratch for' = t1 ifTrue: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/pages/results?cx=010101365770046705949:gg_q9cry0mq&cof=FORID:11&q=' , t2 , '&safe=active&sa=search'].
    'IMDB' = t1 ifTrue: [ScratchPlugin primOpenURL: 'http://www.imdb.com/find?s=all&q=' , t2].
    'load' = t1 ifTrue: [^ 0].
    ^ 0
Code (Scratch-Blocks -> CommandBlockMorph -> private -> uncoloredArgMorphFor:
add a line:
$j = t2 ifTrue: [^ ChoiceArgMorph new getOptionsSelector: #engineNames;
         choice: 'google'].
Last bit of code (Scratch-Objects -> ScriptableScratchMorph -> sensing ops ->)
engineNames
    ^ #('google' 'yahoo' 'scratch.mit.edu/' 'search scratch for' 'IMDB' 'load' )
What it does:
Lets you search google, yahoo!, the scratch site, scratch.mit.edu and IMDB! (Opens your default web browser.)



 Shared by Hardmath123.
Blockspec:
('costume center' #r #rotationCenter)
Code:
no code needed
What it does:
Reports costume center.




Shared by LS97
blockspec:
'get %s' #r #getTime: 'date'
Code
getTime: t1
    t1 = 'date' ifTrue: [^ Date today].
    t1 = 'short date' ifTrue: [^ Date today printFormat: #(1 2 3 $- 2 2 )].
    t1 = 'time' ifTrue: [^ Time now].
    t1 = 'seconds' ifTrue: [^ Time now seconds].
    t1 = 'minutes' ifTrue: [^ Time now minutes].
    t1 = 'hours' ifTrue: [^ Time now hours].
    t1 = 'day' ifTrue: [^ Date today weekday].
    t1 = 'help' ifTrue: [^ 'type date, short date, time, seconds, minutes, day, hours'].
    ^ 'Error!'
What it does:
Reports the date and time, including seconds, minutes, hours, day and date.



 Shared by Pecola1.
Click here for the code
What it does:
Adds a lot of other sprite attributes to the original block.



 Shared by Pecola1.
Click here for the code (2 blocks)
What it does:
Adds a lot of other keyboard keys to the current blocks.



 Shared by Hardmath123

Blockspec:
('distance to x %n y %n' #r #dist:and:)
Code:
Code:

dist: t1 and: t2 
    ^ (self xpos - t1 * (self xpos - t1) + (self ypos - t2 * (self ypos - t2))) abs sqrt
What this block does:
Reports the distance of the sprite from a given coordinate.



 Shared by Pecola1

Blockspec:
( %m touching %m ?' #b #sprite:touching:)
Code:
Code:

sprite: t1 touching: t2 
    | t3 t4 t5 t6 t7 t8 t9 |
    t3 _ self coerceSpriteArg: t2.
    t3 = #mouse
        ifTrue: 
            [(t4 _ self ownerThatIsA: ScratchStageMorph) ifNil: [^ false].
            ^ t1 containsPoint: t4 adjustedCursorPoint].
    t3 = #edge ifTrue: [^ t1 isOnEdge].
    t1 = #mouse
        ifTrue: 
            [(t4 _ self ownerThatIsA: ScratchStageMorph) ifNil: [^ false].
            ^ t3 containsPoint: t4 adjustedCursorPoint].
    (t3 isKindOf: t1 class)
        ifFalse: [^ false].
    (t1 isHidden not and: [t3 isHidden not])
        ifFalse: [^ false].
    t5 _ t1 bounds intersect: t3 bounds.
    (t5 width > 0 and: [t5 height > 0])
        ifFalse: [^ false].
    t6 _ Form extent: t5 extent depth: 2.
    t7 _ t6 deepCopy.
    t9 _ self visibility.
    self visibility: 100.
    t1 drawOn: ((FormCanvas on: t6)
            copyOffset: t5 topLeft negated).
    t1 visibility: t9.
    t9 _ t3 visibility.
    t3 visibility: 100.
    t3 drawOn: ((FormCanvas on: t7)
            copyOffset: t5 topLeft negated).
    t3 visibility: t9.
    t8 _ Bitmap new: 4 withAll: 1.
    t8 at: 1 put: 0.
    t6
        copyBits: t6 boundingBox
        from: t6
        at: 0 @ 0
        colorMap: t8.
    t7
        copyBits: t7 boundingBox
        from: t7
        at: 0 @ 0
        colorMap: t8.
    t7
        displayOn: t6
        at: 0 @ 0
        rule: Form and.
    ^ (t6 tallyPixelValues at: 1)
        < (t6 width * t6 height)
What this block does:
Reports whether two sprites (or the mouse-pointer) are touching. Note: does not work if mouse and edge are entered.



 Shared by Pecola1

Blockspec:
('open project with the id of %n' #- #openProjectId:)
Code:
Code:

openProjectId: t1
Cursor wait showWhile: [ScratchPlugin primOpenURL: 'http://scratch.mit.edu/api/getproject/' , t1]
What this block does:
Opens a web browser with the project of the ID that is entered.



 Shared by Pecola1

Blockspec:
('password for %s is %s ?' #b #username:password:)
Code:
Code:

username: t1 password: t2 
    (HTTPSocket httpGet: 'contentshttp://scratch.mit.edu/api/authenticateuser?username=' , t1 , '&password=' , t2) contents = 'false' ifTrue: [^false].
^true
What this block does:
Reports whether the password for the username that is inserted is the right password. Useful for making a project which requires you have a Scratch account.



^ Back to Scratch Blocks
^ Back to Contents
Last edited by YourLocalBlockLib (2011-04-27 10:16:09)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#7 2011-03-16 15:59:25
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!
Sound





Shared by PlayWithFire
blockspec:
('import sound' #- #importSound)
no code needed

What this block does:
This block allows you to import a sound.




Shared by Sparks
blockspec:
('record sound' #- #recordSound)
no code needed

What it does:
Opens the sound recording window and lets you record a sound.


^ Back to Scratch Blocks
^ Back to Contents
Last edited by YourLocalBlockLib (2011-03-19 19:53:38)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#8 2011-03-16 16:00:30
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!
Operators




 Shared by Zorket.
Blockspec:
('report %s' #r #report: 'hello')
Code:
report: t1
^ t1
What it does:
Reports it's contents. Useful for putting text in areas where it normally can't go. (Such as the [go to %m] block.



 Shared by Zorket, optimised by nXIII
Blockspec:
('if %b then %s else %s' #r #if:then:else:)
Code:
if: t1 then: t2 else: t3
t1 ifTrue: [^ t2].
^ t3
What it does:
Reports the first string argument if the boolean is true, the second if it's false.



 Shared by Zorket
Blockspec
('if %b then %b else %b' #b #if:then:else:)
Code:
if: t1 then: t2 else: t3
t1 ifTrue: [^ t2].
^ t3
What it does
Reports the truth of the first or second boolean argument depending on the truth of the first.



 Shared by Zorket
Blockspec
('true' #b #reportTrue)
Code:
reportTrue
^ true
What it does
Reports true.



 Shared by Zorket
Blockspec
('false' #b #reportFalse)
Code:
reportFalse
^ false
What it does
Reports false.



 Shared by Zorket
Blockspec
('%T %s' #r #do:to:)
Code:

do: t1 to: t2
t1 = 'reverse' ifTrue: [^ t2 reversed].
t1 = 'shuffle' ifTrue: [^ t2 shuffled].
t1 = 'uppercase' ifTrue: [^ t2 asUppercase].
t1 = 'lowercase' ifTrue: [^ t2 asLowercase].
t1 = 'report' ifTrue: [^ t2].
Scratch-Blocks> CommandBlockMorph> private> uncoloredArgMorphFor: add a strip:
Code:

$T = t2 ifTrue: [^ ChoiceOrExpressionArgMorph new getOptionsSelector: #mixingNames;
choice: 'reverse'].
Scratch objects> scriptableScratchMorph> otherOps:
mixingNames
    ^ #('lowercase' 'uppercase' 'reverse' 'shuffle' 'report' )


 Shared by Hardmath123.
Blockspec:
('%b' #r #booleanString:)
Code:
booleanString: t1 
    ^ t1
What it does:
Allows you to drop booleans into reporter spaces!



 Shared by Hardmath123.
Blockspec:
('%n ^ %n' #r #x:expy: 2 2)
Code:
x: t1 expy: t2 
    ^ t1 raisedTo: t2
What it does:
Reports n1 to the power of n2.



 Shared by Pecola1.
Blockspec:
('ascii for %s' #r #asciiCodeOf:)
Code:
asciiCodeOf: aString 
    | str |
    str _ aString asMacRoman.
    str size = 1 ifFalse: [^ 0].
    ^ str first asciiValue
What it does:
Reports the ascii code for an entered character.



 Shared by Pecola1.
Blockspec:
('ascii %n as character' #r #asciiLetter:)
Code:
asciiLetter: anInteger 
    | code |
    code _ anInteger asNumberNoError.
    ^ String with: (Character value: code)
What it does:
Reports character the entered ascii code stands for.



 Shared by Hardmath123.
Blockspec:
('%G' #r #getConstant:)
Code:
getConstant: t1 
    t1 = 'pi' ifTrue: [^ '3.141592653'].
    t1 = 'phi' ifTrue: [^ '1.61803399'].
    t1 = 'e' ifTrue: [^ '2.71828183'].
    t1 = 'sqrt 2' ifTrue: [^ '1.41421356'].
    ^ 3.141592653
Scratch-Objects»ScriptableScratchMorph»sensing
constants
    ^ #('pi' 'phi' 'e' 'sqrt 2' )
Scratch-Blocks»CommandBlockMorph»-- all --»uncoloredArgMorphFor: add a line:
$G = t2 ifTrue: [^ ChoiceOrExpressionArgMorph new getOptionsSelector: #constants;
         choice: 'pi'].
What it does:
Reports the selected constant.



 Shared by Hardmath123.
Blockspec:
('%b=%b' #b #a:equalsB:)
Code:
a: t1 equalsB: t2
t1 = t2 ifTrue [^true].
^false.
What it does:
Reports whether or not the two booleans are equal. 



 Shared by ESN.
Click here for the block code.
What it does:
Reports a fraction of a number from a dropdown. 



 Shared by Zorket.
Blockspec
('letter %n of the alphabet' #r #letter:)
Code:
Code:

letter: t1
t1 = 1 ifTrue: [^ 'a'].
t1 = 2 ifTrue: [^ 'b'].
t1 = 3 ifTrue: [^ 'c'].
t1 = 4 ifTrue: [^ 'd'].
t1 = 5 ifTrue: [^ 'e'].
t1 = 6 ifTrue: [^ 'f'].
t1 = 7 ifTrue: [^ 'g'].
t1 = 8 ifTrue: [^ 'h'].
t1 = 9 ifTrue: [^ 'i'].
t1 = 10 ifTrue: [^ 'j'].
t1 = 11 ifTrue: [^ 'k'].
t1 = 12 ifTrue: [^ 'l'].
t1 = 13 ifTrue: [^ 'm'].
t1 = 14 ifTrue: [^ 'n'].
t1 = 15 ifTrue: [^ 'o'].
t1 = 16 ifTrue: [^ 'p'].
t1 = 17 ifTrue: [^ 'q'].
t1 = 18 ifTrue: [^ 'r'].
t1 = 19 ifTrue: [^ 's'].
t1 = 20 ifTrue: [^ 't'].
t1 = 21 ifTrue: [^ 'u'].
t1 = 22 ifTrue: [^ 'v'].
t1 = 23 ifTrue: [^ 'w'].
t1 = 24 ifTrue: [^ 'x'].
t1 = 25 ifTrue: [^ 'y'].
t1 = 26 ifTrue: [^ 'z'].
^ 'Error!'
What it does:
Gives you the letter from the alphabet corresponding to the number you enter. 



 Shared by Pecola1.
Blockspec:
('report %b or %b randomly' #b #booleanRandom:Or:)
Code:
booleanRandom: t1 Or: t2
    | t3 |
    t3 _ self randomFrom: 0 to: 1.
    t3 = 1 ifTrue: [^ t1].
    ^ t2
What it does:
Reports either of the booleans randomly.



 Shared by Zorket.
Blockspec:
('%n %s %n' #r #workOut:with:to:)
Code:
workOut: t1 with: t2 to: t3
t2 = '+' ifTrue: [^ t1 + t3].
t2 = '-' ifTrue: [^ t1 - t3].
t2 = '*' ifTrue: [^ t1 * t3].
t2 = '/' ifTrue: [^t1 / t3].
^ 'Error!'
What it does:
Designed to replaces the +, -, * and / reporter blocks.



 Shared by Pecola1.
Blockspec:
('%s as boolean' #b #stringAsBoolean:)
Code:
stringAsBoolean: t1
    | t2 |
    t2 _ t1 asString.
    (t2 = '0'
        or: [t2 = '' or: [t2 = 'false']])
        ifTrue: [^ false].
    ^ true
What it does:
Reports false if the string is blank, 0, or "false," otherwise reports true.




 Shared by Hardmath123.
Blockspec:
('greater of %n and %n' #r #greater:and:)
Code:
greater: t1 and: t2 
    t1 > t2 ifTrue: [^ t1].
    ^ t2
What it does:
Reports the greater of the two values.




 Shared by Hardmath123.
Blockspec:
('lesser of %n and %n' #r #greater:and:)
Code:
lesser: t1 and: t2 
    t1 < t2 ifTrue: [^ t1].
    ^ t2
What it does:
Reports the lesser of the two values.



 Shared by Hardmath123
Blockspec:
('%n root of %n' #r #root:of: 2 64)
Code:
root: t1 of: t2 
    t2 > 0 ifTrue: [^ t2 raisedTo: 1 / t1].
    ^ t2 * -1 raisedTo: 1 / t1
What it does:
Reports the root of a number; i.e. the inserts 2 and 64 would be 8, 8 is the square root of 64.



 Shared by hello12345678910
Blockspec:
('-%n' #r #negation:)
Code:
negation: t1 
    ^ t1 * -1
What it does:
Reports the negative of a number.



 Shared by Hardmath123
Blockspec:
('%n is divisible by %n' #b #test:div: 11 5)
Code:
test: t1 div: t2 
    ^ t1 / t2 = (t1 / t2) rounded
What it does:
Does a divisibility test.



 Shared by Hardmath123
Blockspec:
('fractional part of %n' #r #fractional: 3.14)
Code:
fractional: t1 
    ^ t1 - (t1 - 0.5) rounded
What it does:
Reports the digits after the decimal point.



^ Back to Scratch Blocks
^ Back to Contents
Last edited by YourLocalBlockLib (2011-04-26 08:48:06)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#9 2011-03-16 16:01:30
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!
Pen





Shared by Jonathanpb
blockspec:
('pen size' #r #penSize)
no code needed

What it does:
Reports the current pen size.




Shared by zorket
blockspec:
('pen down?' #b #penDown)
no code needed

What it does:
Reports whether the pen for that sprite is down or not.




Shared by Jwosty
blockspec:
('pen shade' #r #penShade)
code:
penShade
    ^ penShade
What it does:
Reports the shade of the sprite's pen.




Shared by Jwosty
blockspec:
('pen color' #r #penHue)
code
penHue
    ^ penHue
What it does:
Reports the pen color.



^ Back to Scratch Blocks
^ Back to Contents
Last edited by YourLocalBlockLib (2011-03-19 20:59:33)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#10 2011-03-16 16:02:38
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!
Variables




 Shared by Hardmath123
Blockspec:
('make new variable' #- #addGlobalVariable)
Code:
no code needed
What it does:
Creates a new variable!



 Shared by Pecola1
Blockspec:
('move %v to x: %n y: %n' #- #positionVar:atX:y: '' 0 0)
Code:
Code:

positionVar: t1 atX: t2 y: t3 
    | t4 t5 t6 t7 t8 t9 |
    (self varNames includes: t1)
        ifFalse: [^ self].
    t4 _ self ownerThatIsA: ScratchFrameMorph.
    t4
        ifNil: 
            [(t5 _ self ownerThatIsA: OffscreenWorldMorph) ifNil: [^ self].
            t4 _ t5 frame].
    t6 _ VariableBlockMorph new commandSpec: t1;
             receiver: self blockReceiver.
    (t5 _ t4 watcherForBlock: t6) ifNil: [^ self].
    t7 _ t2.
    t7 isNaN ifTrue: [t7 _ 0].
    t7 > 240 ifTrue: [t7 _ 240].
    t7 < (-240 - t5 extent x) ifTrue: [t7 _ -240 - t5 extent x].
    t8 _ t3.
    t8 isNaN ifTrue: [t8 _ 0].
    t8 < -180 ifTrue: [t8 _ -180].
    t8 > (180 + t5 extent y) ifTrue: [t8 _ 180 + t5 extent y].
    t9 _ t7 @ t8 negated.
    t5 position: ScratchOrigin + t9
Code 2:
moveVar: t1 toX: t2 y: t3
    | t4 |
    self
        positionVar: t1
        atX: t2
        y: t3.
    t4 _ self ownerThatIsA: ScratchStageMorph.
    t4 ~= self
        ifTrue: [t4
                positionVar: t1
                atX: t2
                y: t3]
What it does:
Changes the position of a variable watcher on the Stage.



 Shared by Hardmath123
Blockspec:
('NewList' #- #addGlobalList)
Code:
No code needed.
What it does:
Opens the new list dialog.



 Shared by Hardmath123
Blockspec:
('Add local list named %s' #- #createListNamed:)
Code:
No code needed.
What it does:
Creates a local list (for this sprite only) named the specified name.



 Shared by Hardmath123
Blockspec:
('Add global list named %s' #- #GLN: #MyList)
Code:
GLN: t2 
    | t1 |
    (t1 _ self ownerThatIsA: ScratchFrameMorph) ifNil: [^ self beep].
    t2 size = 0 ifTrue: [^ self].
    t1 workPane createListNamed: t2.
    t1 viewerPane categoryChanged: 'variables'
What it does:
Creates a global list (for all sprites) named the specified name.

^ Back to Scratch Blocks
^ Back to Contents
Last edited by YourLocalBlockLib (2011-04-21 12:07:48)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#11 2011-03-16 16:03:59
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!


 .                                                                           Visit the BYOB site

How to add one of these blocks:
You need to download BYOB (Build Your Own Blocks) from this link.

How do I make a custom BYOB block?
How do I share a BYOB block?

To view all the downloadable BYOB blocks click here. (Thanks to meowmeow55 for this feature.)

Choose a block type to view, or scroll down this page to see more!

 Motion
 Control
 Looks
 Sensing
 Sound
 Operators
 Pen
 Variables
 Other


home
Last edited by YourLocalBlockLib (2011-03-31 15:00:05)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#12 2011-03-16 16:05:18
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!
Motion


   Shared by Jonathanpb

    Shared by PlayWithFire

   Shared by SSBBM

   Shared by Guinea_Pig_Girl

   Shared by SSBBM, Credit to Kileymeister

   Shared by Guinea_Pig_Girl.

    Shared by owetre18.

    Shared by meowmeow55.

   Shared by Floppy_gunk

   Shared by Floppy_gunk

   Shared by GP1

_____________________________

^ Back to BYOB Blocks
^ Back to Contents
Last edited by YourLocalBlockLib (2011-04-25 17:50:05)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#13 2011-03-16 16:06:27
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!
Control


   Shared by midnightleopard

   (See also) Shared by midnightleopard

   Shared by SSBBM (credit to zxz1661)

   Shared by SSBBM

   Shared by SSBBM

  Shared by meowmeow55

   Shared by SSBBM

   Shared by SSBBM

   Shared by ESN

   Shared by Floppy_gunk

   Shared by Floppy_gunk

   Shared by Floppy_gunk

   Shared by Floppy_gunk

   Shared by MathWizz

_____________________________

^ Back to BYOB Blocks
^ Back to Contents
Last edited by YourLocalBlockLib (2011-04-24 15:35:35)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#14 2011-03-16 16:07:34
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!
Looks


   Shared by Jonathanpb

  Shared by Jonathanpb

  Shared by Jonathanpb

   Shared by PlayWithFire

   Shared by PlayWithFire

   Shared by SSBBM

   Shared by SSBBM

   Shared by SSBBM

   Shared by SSBBM

   Shared by owetre18

  Shared by Matty3414

_____________________________

^ Back to BYOB Blocks
^ Back to Contents
Last edited by YourLocalBlockLib (2011-04-21 12:27:21)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#15 2011-03-16 16:08:56
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!
Sensing


   Shared by PlayWithFire

   Shared by PlayWithFire

   Shared by SSBBM

   Shared by SSBBM

 Shared by SSBBM Note: Incomplete picture.

   Shared by ScratchReallyROCKS

   Shared by thecrazyguy and improved by Pecola1

   Shared by subzerostig

   Shared by subzerostig

_____________________________

^ Back to BYOB Blocks
^ Back to Contents
Last edited by YourLocalBlockLib (2011-03-17 05:12:00)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#16 2011-03-16 16:10:07
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!
Sound


   Shared by TheSuccessor
_____________________________

^ Back to BYOB Blocks
^ Back to Contents
Last edited by YourLocalBlockLib (2011-03-17 07:18:38)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#17 2011-03-16 16:11:11
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!
Operators


   Shared by meowmeow55

   Shared by PlayWithFire

   Shared by PlayWithFire, Improved by Floppy_gunk

   Shared by meowmeow55 Note: unlike the normal equals boolean, this one is case sensitive!

   Shared by rdococ

   Shared by bbbeb

   Shared by SSBBM

   Shared by SSBBM

   Shared by SSBBM, Improved by Scimonster

   Shared by meowmeow55

   Shared by meowmeow55

   Shared by SSBBM

   Shared by meowmeow55

   Shared by meowmeow55

   Shared by sid_the_great

   Shared by subzerostig

   Shared by subzerostig

   Shared by SSBBM, Credit to meowmeow55

   Shared by sid_the_great and Sparks

   Shared by sid_the_great and Sparks

   Shared by sid_the_great and Sparks

   Shared by SSBBM

    Shared by Pecola1, Improved by SSBBM

    Shared by Pecola1

    Shared by Pecola1

    Shared by Pecola1

    Shared by Pecola1

   Shared by SSBBM

   Shared by SSBBM

   Shared by SSBBM

   Shared by Beary605

   Shared by Beary605

   Shared by Beary605, Improved by Floppy_gunk

   Shared by Beary605

   Shared by Beary605

   Shared by Floppy_gunk

   Shared by Floppy_gunk

   Shared by Floppy_gunk

   Shared by Floppy_gunk

   Shared by Floppy_gunk

   Shared by Floppy_gunk

   Shared by Floppy_gunk

   Shared by Spongelove, improved by Floppy_gunk

   Shared by Spongelove, improved by Floppy_gunk

   Shared by Scimonster

   Shared by Scimonster

   Shared by MathWizz

   Shared by MathWizz

   Shared by MathWizz

_____________________________

^ Back to BYOB Blocks
^ Back to Contents
Last edited by YourLocalBlockLib (2011-04-24 15:40:56)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#18 2011-03-16 16:12:36
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!
Pen


   Shared by PlayWithFire

   Shared by Jonathanpb

   Shared by Chrischb

   Shared by Chrischb

   Shared by SSBBM

   Shared by SSBBM

   Shared by SSBBM

   Shared by subzerostig

  Shared by subzerostig

   Shared by MathWizz

   Shared by ProgrammingFreak

   Shared by Scimonster, based on the block by ProgrammingFreak

_____________________________

^ Back to BYOB Blocks
^ Back to Contents
Last edited by YourLocalBlockLib (2011-04-17 03:59:59)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#19 2011-03-16 16:13:45
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!
Variables and Lists


 Shared by nXIII, improved by owetre18

  Shared by SSBBM

  Shared by SSBBM

   Shared by SSBBM

   Shared by SSBBM

   Shared by Scimonster, Improved by SSBBM

   Shared by Scimonster

_____________________________

^ Back to BYOB Blocks
^ Back to Contents
Last edited by YourLocalBlockLib (2011-03-22 22:04:08)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#20 2011-03-16 16:14:48
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!
Other


  Shared by ScratchReallyROCKS

  Shared by Pecola1

  Shared by SSBBM

  Shared by Guinea_Pig_Girl

_____________________________

^ Back to BYOB Blocks
^ Back to Contents
Last edited by YourLocalBlockLib (2011-03-17 16:23:03)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#21 2011-03-16 16:15:58
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!

                                                                        Visit the panther site

How to add one of these blocks:
To use the Panther coded blocks, you need to download Panther from this link.

How do I make a Panther block from the library?

 Motion
 Control
 Looks
 Sensing
 Sound
 Operators
 Pen
 Variables
 Files
 Colors


home
Last edited by YourLocalBlockLib (2011-03-31 15:00:27)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#22 2011-03-16 16:17:08
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!
Motion


No blocks. Be the first to post a Panther motion block! Just comment below with the code!


^ Back to Panther Blocks
^ Back to Contents
Last edited by YourLocalBlockLib (2011-03-17 07:28:57)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#23 2011-03-16 16:18:15
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!
Control


Shared by Sparks
Block number: [1]    [view source] [What is this?]
Notes:
This block opens the camera window.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Shared by Billyedward
Block number: [2]    [view source] [What is this?]
Notes:
This block opens your default web browser with the web-page typed into the box.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Shared by Unknown
Block number: [3]    [view source] [What is this?]
Notes:
• This block creates a clone of the sprite that runs it. Unlike the standard clone blocks in Panther, this one creates a clone that does not disappear once the stop button is pressed. If you want the clone to appear at the mouse pointer and let you place it, just don't put the NoAttach part into the CYOB window.
• Does not work in presentation mode.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Shared by Unknown
Block number: [4]    [view source] [What is this?]
Notes:
• This block permanently deletes the sprite that runs it. Unlike the standard delete block in Panther, this block can delete original (not a clone) sprites so use it with care. 
• Does not work in presentation mode.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Shared by Billybob-Mario
Block number: [5]    [view source] [What is this?]
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Shared by zorket and adapted to Panther by Sparks
Block number: [6]    [view source] [What is this?]
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Shared by Sparks (Based on the above block)
Block number: [7]    [view source] [What is this?]
Notes:
This block opens the "my stuff" page for the username you type.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Shared by Sparks, based on the scratch block by Zorket.
Block number: [8]    [view source] [What is this?]
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Shared by Sparks, based on the scratch block by Zorket.
Block number: [9]    [view source] [What is this?]
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Shared by Sparks, based on the scratch block by Zorket.
Block number: [10]    [view source] [What is this?]
Notes:
This block lets you set the stepping speed. (0 = turbo speed 1 = normal speed).
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Shared by Sparks
Block number: [49]    [view source] [What is this?]



^ Back to Panther Blocks
^ Back to Contents
Last edited by YourLocalBlockLib (2011-04-27 09:33:12)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#24 2011-03-16 16:19:29
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!
Looks


 Shared by sonicjosh, converted by Sparks
Block number: [11]    [view source] [What is this?]
________________________________________________________________________________
 Shared by MathWizz
Block number: [47]    [view source] [What is this?]
________________________________________________________________________________
 Shared by Sparks
Block number: [51]    [view source] [What is this?]
Notes:
Works with png, gif and bmp files.


^ Back to Panther Blocks
^ Back to Contents
Last edited by YourLocalBlockLib (2011-04-27 09:34:07)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55
Offline
Report | Quote
#25 2011-03-16 16:20:34
YourLocalBlockLib
Scratcher
Registered: 2011-03-10
Posts: 176
Re: ITopic: Welcome to your local block library!
Sensing


 Shared by johnnydean1
Block number: [12]    [view source] [What is this?]
Notes:
Opens a dialog box with yes and no options.
________________________________________________________________________________
 Shared by johnnydean1
Block number: [13]    [view source] [What is this?]
Notes:
Opens a dialog with a text box. Sets the answer variable to your answer. (Yes, this block already exists in Panther   )
________________________________________________________________________________
 Shared by johnnydean1
Block number: [14]    [view source] [What is this?]
Notes:
This block tells a user if they are in presentation mode or not. Very useful.
________________________________________________________________________________
 Shared by johnnydean1
Block number: [15]    [view source] [What is this?]
________________________________________________________________________________
 Shared by floppy_gunk
Block number: [36]    [view source] [What is this?]
________________________________________________________________________________
 Shared by floppy_gunk
Block number: [37]    [view source] [What is this?]
Notes:
It conflicts with right-click menus in normal viewing mode so this works better in presentation mode.
________________________________________________________________________________
 Shared by johnnydean1
Block number: [38]    [view source] [What is this?]
What this block does:
This block reports a random friend from the Scratch friend list of the given user.
________________________________________________________________________________
 Shared by johnnydean1
Block number: [39]    [view source] [What is this?]
What this block does:
This block reports a friend of the given Scratcher. Enter a number to see that friend from their online friend list.
________________________________________________________________________________
 Shared by Pecola1
Block number: [40]    [view source] [What is this?]
What this block does:
Reports whether the password for the username that is inserted is the right password. Useful for making a project which requires you have a Scratch account.
________________________________________________________________________________
 Shared by Sparks
Block number: [41]    [view source] [What is this?]
What this block does:
Reports the location of the panther.image being run on the computer. This can be used to write files to sub-folders of the Panther folder!


^ Back to Panther Blocks
^ Back to Contents
Last edited by YourLocalBlockLib (2011-04-27 09:36:04)

The Librarians: Sparks, Pecola1, Scimonster, SSBBM, TheSuccessor, Meowmeow55

Last edited by Paddle2See (2011-04-29 17:33:54)


http://i.imgur.com/H6LLdnK.pnghttp://i.imgur.com/VYuD7BY.png

Offline

 

#692 2011-04-29 17:32:48

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: ITopic: Welcome to your local block library!

scratcher7_13 wrote:

Can I become a part-time block librarian as a block tester? Or is that someones job already? Thanks!

I have already tested a few blocks.

I made an improved version of one of the blocks.


♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#693 2011-04-29 17:33:55

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: ITopic: Welcome to your local block library!

sparks wrote:

... Please delete that post. If anyone quotes it I will scream.

I have reported it.


You can now reach me on Twitter @johnnydean1_

Offline

 

#694 2011-04-29 17:35:12

sparks
Community Moderator
Registered: 2008-11-05
Posts: 1000+

Re: ITopic: Welcome to your local block library!

Thanks Paddle2See  smile  (and JD)


http://img541.imageshack.us/img541/7563/scratchbetabanner.png

Offline

 

#695 2011-04-29 17:50:10

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: ITopic: Welcome to your local block library!

sparks wrote:

Thanks Paddle2See  smile  (and JD)

He did like I asked (Put it into code form)!

Thanks  smile


You can now reach me on Twitter @johnnydean1_

Offline

 

#696 2011-04-29 17:52:29

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: ITopic: Welcome to your local block library!

scratcher7_13 wrote:

scratcher7_13 wrote:

Can I become a part-time block librarian as a block tester? Or is that someones job already? Thanks!

I have already tested a few blocks.

I made an improved version of one of the blocks.

I made a working version of Hardmath123's booleanString block. Here is the code:

Code:

booleanString: t1
    t1 = true ifTrue: [^ 'true'].
    ^ 'false'

♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#697 2011-04-29 18:25:36

SSBBM
Scratcher
Registered: 2009-10-09
Posts: 100+

Re: ITopic: Welcome to your local block library!

floppy_gunk wrote:

joefarebrother wrote:

Can someone help me make a BYOB block called "make me draggable untill <> "? I have tried, but it won't work.

http://i.imgur.com/i3Va9.gif
Download link

The "launch" block!  yikes  I always forget about it! Great block!


http://goo.gl/zVfAp http://goo.gl/laci8

Offline

 

#698 2011-04-29 19:26:00

scratcher7_13
Scratcher
Registered: 2011-02-09
Posts: 1000+

Re: ITopic: Welcome to your local block library!

I have a block to contribute. It reports an error just like a reporter reporting a non-string.

Code:

reportError
    | t1 |
    ^ 'Error!' t1 messageColor: Color red darker

♫ 90% of teens can't do math. If you are one of the 40% of teens who can, copy and paste this into your signature. ♫♪
http://dl.dropbox.com/u/6273449/BlockLibraryTitle.pnghttp://i.imgur.com/mr9Hf.gif

Offline

 

#699 2011-04-29 20:27:15

floppy_gunk
Scratcher
Registered: 2008-11-14
Posts: 500+

Re: ITopic: Welcome to your local block library!

BYOB blocks:
http://i.imgur.com/iw8D7.gif
http://i.imgur.com/rDeci.gif

BYOB 3.1 (or whatever it is) blocks:
http://i.imgur.com/ZfDkV.gif
http://i.imgur.com/naLps.gif
http://i.imgur.com/bIMDS.gif
http://i.imgur.com/2s02H.gif

The first three blocks are for inserting the http://i.imgur.com/Wa2ma.gif block.

Last edited by floppy_gunk (2011-04-29 20:29:03)


http://img163.imageshack.us/img163/1917/2856lg.jpg Get it now!  smile

Offline

 

#700 2011-04-29 23:05:10

Pecola1
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: ITopic: Welcome to your local block library!

ProgrammingFreak wrote:

Move () Steps [ ]
By ProgrammingFreak
This block redoes the 'Move () Steps' block.

I believe z is already used in the block library you can use Z.

Last edited by Pecola1 (2011-04-29 23:05:52)


If you are reading this, please read to the end, because if you don't you won't know what's at the end. Don't just skip to the end though otherwise you won't be able to read the middle, which is most important. Now you must be wondering why you just read all that, the reason is you may have not noticed something, read it again and see if you notice it this time  smile

Offline

 

Board footer