Allow multiple block names in tutorial config for //line command#180
Merged
Zoriot merged 1 commit intoupdate/1.21-data-abstractionfrom Aug 27, 2025
Merged
Allow multiple block names in tutorial config for //line command#180Zoriot merged 1 commit intoupdate/1.21-data-abstractionfrom
Zoriot merged 1 commit intoupdate/1.21-data-abstractionfrom
Conversation
Copilot
AI
changed the title
[WIP] [Feature] - Allow //line white in tutorial
Allow //line white in tutorial alongside existing //line white_wool
Jul 31, 2025
Zoriot
requested changes
Aug 1, 2025
Author
You're absolutely right! I've switched to a config-based approach as you suggested. Changes made in commit 7d59454:
Now both Warning Firewall rules blocked me from connecting to one or more addressesI tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Copilot
AI
changed the title
Allow //line white in tutorial alongside existing //line white_wool
Allow multiple block names in tutorial config for //line command
Aug 1, 2025
7d59454 to
db10c46
Compare
a6be6dd to
e15df1b
Compare
Cinnazeyy
approved these changes
Aug 27, 2025
Member
Cinnazeyy
left a comment
There was a problem hiding this comment.
Great work! Looks good to me!
Maybe also add 35:0 to the base blocks, but thats quite an edge case anyways.
…ck names and improve readability
db10c46 to
dc84624
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change allows users to use the more intuitive
//line whitecommand in the beginner tutorial while maintaining the existing//line white_woolcommand through a config-based approach.Problem
The tutorial system previously only accepted the exact block name from the configuration (
//line white_wool), which is verbose and less intuitive than the commonly used short form//line white.Solution
Implemented a configuration-driven approach that allows multiple valid block names to be specified in the tutorial config file:
The system now:
base-blocksarray intutorial_beginner.ymlKey Features
//line tntare still properly rejected//line whiteand//line WHITEworkTechnical Changes
tutorial_beginner.ymlto usebase-blocksarray instead of singlebase-blockBASE_BLOCKSpath toTutorialPaths.javaBeginnerTutorial.Stage5to read and process the block listLineCmdEventTaskwith constructor overload for multiple block namesFixes #172.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.