A Tynker code block isn't available for what I want to do!

If there is a command in Minecraft Chat that will achieve the effect, you can use the Tynker's execute block. Whatever text you place inside the execute block, it will run just as if the player chatted it within Minecraft. This technique can help you achieve effects not yet added to Tynker's modding system.

Here's one example. Let's say you wanted to give all the players of your mod an XP boost when they complete the mission or beat the boss.

Here's what the command looks like in Tynker:

execute-xp.png

This is equivalent to running the command /xp 1000 @a in Minecraft chat, which gives 1000 XP to all players.

Here's another example of the execute block, which equips all players with an Iron Sword.

execute-demo.png

Explore Minecraft chat commands on your own. And make sure you type carefully while using the execute block! Mistyped commands won't work.

Or browse available courses for Tynker subscribers:

Browse Minecraft Courses

Still need help? Contact us

Upgrade for Ultimate Minecraft Access

Unlock the Full Minecraft Experience on Tynker!

GET STARTED FOR FREE

TYNKER LIVE CLASSES

Accelerate your child’s coding with Tynker’s expert guidance for personalized growth.

VIEW COURSES
Explore Your Creativity
Your Minecraft Exploration Starts Now!
Tynker is the #1 way kids learn to code Get Started for Free