Skip to main content

Variables in JSON Text

Example:

MCFunction('herobrine_kills', () => {
const herobrineDeaths = Objective.create('herobrine_deaths', 'deathCount')('herobrine')

tellraw('@a', [
'Herobrine has been killed ', herobrineDeaths, ' times!'
])
}, {
runEvery: '30s'
})