1.2 KiB
1.2 KiB
Getting Started
1. Build and run
gradlew.bat shadowJar
gradlew.bat runServer
2. Create a minigame asset
Create src/main/resources/Server/Minigames/My_Game.json:
{
"Id": "My_Game",
"Name": "My Game",
"Description": "A quick test minigame.",
"Enabled": true,
"MinPlayers": 1,
"MaxPlayers": 4,
"TeamMode": "SOLO",
"WinCondition": "HIGHEST_SCORE",
"RoundLengthSeconds": 120,
"CountdownSeconds": 5
}
The filename and Id should match.
3. Confirm the asset loaded
/minigame list
/minigame info My_Game
/minigame validate My_Game
4. Add trigger-volume logic
Use the Hytale trigger-volume editor:
- Create a normal trigger volume.
- Add the
StartMinigameeffect. - Set
MinigameIdtoMy_Gamefrom the dropdown.
To make the volume award score:
- Add the
PlayerInMinigamecondition. - Add the
ModifyPlayerScoreeffect. - Set
Operation = ADDandAmount = 1.
5. Start from commands when needed
/minigame enable My_Game
/minigame join My_Game
/minigame start My_Game
Command starts are useful for testing. Production interaction should normally come from Hytale trigger volumes.