set counter to ()

From PenguinMod Wiki
Set counter to ()
Jump to navigation Jump to search

Images needed

This article needs images or better quality images. You can help PenguinMod Wiki by adding the images or uploading them. Specifically: There is no image for the block or the workaround.

set counter to ()
...
[[File:|200px]]
Caption
Block Type Stack Block
Category / Extension Control
Status Who tf uses status

The set counter to () block is a stack block that sets the counter to the entered in value. To get this block, one must add the Control extension.

Workaround

This block can be worked around by clearing the counter using the clear counter block, and then incrementing or decrementing the counter a certain number of times (just check if the number entered is negative or not) for integer values. A variable can also be used by using the set () to () block to set the value.

Trivia