← Back to Mini Games Scripts

Chat Command Script

Customize your variables, then fill in the blanks!

Your Custom Settings

Word to trigger the action
Message to display
Potion effect to give
How long the effect lasts

Python Script (Code Builder)

This script creates a custom chat command that gives you a potion effect. Press C in Minecraft Education to open the Code Builder!

duration = 30
def ():
    player.("You triggered the command!")
    mobs.(SPEED, player.position(), duration)
def clear_effects():
    mobs.(player.position())
    player.say("Effects cleared!")
player.("jump", run_command)
player.on_chat("clear", clear_effects)