September 8, 2026
JUNON . IO
Username
Would you like to play another round?
A function call looks like this
$getGold($player)
Basically, given an input (player), it returns an output (gold of the player). Functions can be used in commands or in ifelse conditions.
On a PlayerDestroyed trigger, you can run this command:
/caption subtitle $player was killed with $getEquip($killingPlayer)
On an InteractBuilding trigger, you can run these two commands:
/give $player potato 1
/chat @a $player has gotten a potato from $entityId
On a PlayerJoined trigger, you can set up a welcoming script:
/chat @a %green% Welcome our newest player, $player !
You can alarm everyone that a player has bought the ultimate weapon from the trader on a ItemBuy trigger:
(if [$itemType] == [RocketLauncher])
/caption title $player has bought the rocket launcher!
At the end of the timer 'healthreset', loop and reset everyone's health (Timer:healthreset:end):
/timer start healthreset 10
/sethealth @a 100
Access denied