Miscellaneous Minecraft Classroom Management Commands
Set up a starting area (holding area) that prevents others from ‘entering’ into the entire world.
- Build a platform of deny blocks and surround in border blocks, then stand in middle of platform and
- Type /setworldspawn
Set up a ‘ticking area’ so that these commands below work no matter where in the map you are.
- Stand near the command blocks created and type
- /tickingarea add circle ~ ~ ~ 2
Remove WorldBuilder Ability from players upon joining the world
This is great for teacher built worlds where students are hosting for themselves. Prevents students accidentally breaking NPC’s.
Command:
/execute @a ~ ~ ~ detect ~ ~-1 ~ stonebrick 0 ability @p worldbuilder false
Change “stonebrick” for what ever block you choose.
Command Block Settings:
Type – Repeat
Condition – Unconditional
Redstone – Needs Redstone
Activate with a redstone block once built.
Startup NPC for Equipment
/replaceitem entity @a[r=10] slot.hotbar 2 writable_book
/replaceitem entity @a[r=10] slot.hotbar 1 portfolio
/replaceitem entity @a[r=10] slot.hotbar 0 camera
Change the r=10 to something smaller if needed. Only use the lines you need particularly.
REMEMBER: The writable book will OVERWRITE any student work done in the book beforehand, so make sure students cannot get back to this NPC (or in range)
Prevent Ender-Dragons from being summoned
Command:
/kill @e[type=ender_dragon]
Command Block Settings:
Type – Repeat
Condition – Unconditional
Redstone – Needs Redstone
Activate with a redstone block once built.
Prevent Withers from destroying blocks upon creation, or death.
Command 1:
/tp @e[type=wither] ~ ~200 ~
Command Block Settings:
Type – Repeat
Condition – Unconditional
Redstone – Needs Redstone
Command 2:
/kill @e[type=wither]
Command Block Settings:
Type – Chain
Condition – Conditional
Redstone – Always Active
Activate with a redstone block once built.
Command Block 1 needs to ‘point into’ command block 2, and activate block 1 with a redstone block
once built.
Prevent Ender Crystals from exploding things upon ‘death’.
Command 1:
/tp @e[type=ender_crystal] ~ ~200 ~
Command Block Settings:
Type – Repeat
Condition – Unconditional
Redstone – Needs Redstone
Command 2:
/kill @e[type=ender_crystal]
Command Block Settings:
Type – Chain
Condition – Conditional
Redstone – Always Active
Activate with a redstone block once built.
Command Block 1 needs to ‘point into’ command block 2, and activate block 1 with a redstone block
once built.
Prevent access to particular items.
Any item can be ‘controlled’ in this way, the ones below are suggestions for the most ‘pesky’ items students tend to use, and preventing End Crystals from being used for decoration.
Command:
/clear @a end_crystal
/clear @a potion 7
/clear @a potion 8
/clear @a splash_potion 7
/clear @a splash_potion 8
/clear @a lingering_potion 7
/clear @a lingering_potion 8
/clear @a arrow 8
/clear @a arrow 9
Command Block Settings:
Type – Repeat
Condition – Unconditional
Redstone – Needs Redstone
Activate with a redstone block once built.
Prevent throwing of enderpearls
One way to stop students ‘escaping’ through border blocks.
Command:
/kill @e[type=ender_pearl]
Command Block Settings:
Type – Repeat
Condition – Unconditional
Redstone – Needs Redstone
Activate with a redstone block once built.
https://youtu.be/RICIIkuBLj4%20