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:
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.
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 CoursesUpgrade for Ultimate Minecraft Access
Unlock the Full Minecraft Experience on Tynker!
GET STARTED FOR FREETYNKER LIVE CLASSES
Accelerate your child’s coding with Tynker’s expert guidance for personalized growth.
VIEW COURSES