Skip to main content

Code builder in a shared world - how to get it to work

Comments

9 comments

  • Dani Noble
    Moderator Beacon of Knowledge Super Star

    There's a few ways of approaching all these requirements. 

    1. If you only have 5-10 students joining your hosted world, you can probably get away with running the Classroom Mode tool. After more than 5 to 10 students, the tool becomes laggy and hard to use. 

    2. I'd create a hosted world that has the following elements:

    A) Defined boundary using border blocks. This can be setup pretty quickly with /fill commands to created a stretch of border between to x y z points. 

    B) Setup a command block sequence that uses a /testfor and /clear commands to remove the required items from students inventory within a given set of coordinates. 

    C) Add a special file to the raw files of the world that blocks players from using commands. There's a specific process and you'll need to access some hidden folders, so it's best to use a Windows system for this. 

    If you're not familiar with any of the above, please let me know and I'll post either more specific instructions or provide you with some YouTube links. 

     

    0
  • Bryan Sanders
    Bug Zapper Beacon of Knowledge Super Star Moderator

    Good suggestions, Dani Noble!

    I might add that if you don't have to be all in the same world, then you could have each student or pairs/small groups making their own world. 

    0
  • David Ahlemann

    Thank you. I have 30 students so the world lags a great deal at times.

    Unable to turn off commands because they must enter commands to run code.

    Is there a way to set worldbuilder yo false for all students?

    Thank you again

    0
  • Debbie Alexander
    Moderator Beacon of Knowledge Super Star

    You can turn it off, I am pretty sure, but if they can code, they can change it back.

    Bottom line in coding worlds is that you have to use classroom management, not lockdowns. Bright student coders can easily do an internet search to disable command blocks.

    I prefer not to share coding worlds for this reason.

    0
  • Bryan Sanders
    Bug Zapper Beacon of Knowledge Super Star Moderator

    The whole idea of students learning how to program is so that they can have control of their work -- software solutions for management are often cumbersome. Old school methods like all screens facing out so that teachers can walk around and guide on an as-needed basis still work. :-)

    0
  • Joe Man

    Unable to turn off commands because they must enter commands to run code.

    Are the commands essential to run the code? Could the "on run command" event be replaced by something else? e.g. when a certain item is used or when flying/sprinting/swimming etc

    I think if you are using multiplayer, then need to consider alternatives if the students are not cooperative. Side note - WHY are the students being disruptive? Content too easy or too difficult? Maybe try channeling it into lessons e.g. using lava or TNT as sensor activated redstone traps etc

     

    Is there a way to set worldbuilder yo false for all students?

    You can add targeting to the commands such as @a or @p etc 

    0
  • David Ahlemann

    Good suggestions.  Thank you.

     

    I am using command blocks for some things including setting world builder to false for all students. I'm also using borders and deny blocks in the world build.  In addition I have command blocks to clear certain inventory items (like obsidian so they cant build portals) anbd chorus fruit.  

    It might be possible to use items or flying, sprinting, etc to trigger code.  But the cde will not run unless the students have operator access.  Even if their character executes the correct trigger if they are not an operator the code will not execute.

    I only have a couple of problem students.  I may end up having them work alone or pair them with each other. 

    0
  • David Ahlemann

    Is there a command I can put in a repeating command block that will check the students world builder status?  And if the status changes to true, can that command then set it back to false for that student?

    I dont know the syntax to write that as an if then statement.  What I want to check for is this:

    /ability @a worldbuilder true 

    If that is true I want the command to change the value back to false for that student

     

     

     

    0
  • Moderator Beacon of Knowledge Super Star

    I am not sure how to run this code for each student in their own world, but in Python notebooks there are commands to clear inventory and set worldbuilder to false. If you could have a program in the student's Notebook code you can turn off worldbuilder and clear inventory. However, your kiddos are coding in MakeCode, and idk how to set this up. Here's the link to the code:

    http://tech.grandmadeb.com/index.php/2021/11/14/new-python-commands-in-minecraft-edu/

    0

Please sign in to leave a comment.