scratchfoundation / scratchfoundation/scratch-blocks
Accept reporters in property field of sensing_of block
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.8k
- Forks
- 1.6k
- Avg merge
- 4h 51m
- Merged PRs (30d)
- 12
Description
I had a PR for this in scratch-flash (LLK/scratch-flash#1250) that was closed due to it being put on maintenance mode. I'd like to restart that discussion here for Scratch 3.0
Proposal
Accept reporters to be dropped on the PROPERTY field of the "sensing_of" block

Argument
For the same reasons a user might want to programmatically define the sprite you'd like to access in the OBJECT field, it is similarly useful to programmatically define the PROPERTY you'd like to access. From the perspective of the VM, this behavior should be 100% backwards-compatible with scratch 2.0 projects (it's already possible with manual editing of your project file)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the sensing_of block implementation and the PROPERTY field handling in scratch-blocks. Review the prior scratch-flash discussion for context, then trace how reporters are accepted in comparable fields. Done means reporters can be dropped on PROPERTY while existing Scratch 2.0 project behavior remains compatible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100