Hytale Asset ReferenceUnofficial
Versions / 0.5.0-pre.9 / MacroCommands / _Examples / SetTimeAndGoHome.json

SetTimeAndGoHome

Server/MacroCommands/_Examples/SetTimeAndGoHome.json, 688 B

Fields

FieldType
Namestring
Aliasesarray[1]
Descriptionstring
Parametersarray[2]
Commandsarray[3]

Source

{
  "Name": "setTimeAndGoHome",
  "Aliases": ["macrotest"],
  "Description": "server.commands.setTimeAndGoHome.desc",
  "Parameters": [
    {
      "Name": "timeOfDay",
      "Description": "server.commands.setTimeAndGoHome.timeOfDay.desc",
      "Requirement": "Required",
      "ArgType": "Integer"
    },
    {
      "Name": "world",
      "Description": "server.commands.setTimeAndGoHome.world.desc",
      "Requirement": "Default",
      "ArgType": "World",
      "DefaultValue": "Default",
      "DefaultValueDescription": "server.commands.setTimeAndGoHome.world.default.desc"
    }
  ],
  "Commands": [
    "time set {timeOfDay}",
    "wait 2",
    "tp home --world={world}"
  ]
}