-
Notifications
You must be signed in to change notification settings - Fork 0
Actions
The options for the actions and the defaults can be found below.
All actions that have numbers as a string support the use of calculation from the event data.
All actions have the "target": "self" property, it can be "self", "random" or any player name.
Some actions require the client to have the mod, those are marked below.
Require client
Heals the player with the amount specified, 0 = full heal, negative value removes health
{
"type": "heal_player",
"amount": "0"
}Require client
Fills the players mana with the amount specified, 0 = full refill, negative value removes mana
{
"type": "fill_mana",
"amount": "0"
}Require client
Drops the currently held item
{
"type": "drop_item"
}Drops stars from above the player
{
"type": "drop_star",
"damage": "100",
"amount": "10",
"spread": "100",
"height": 600.0,
"width": "10"
}spread ho much the stars will spread when falling
height how far above the player the stars should spawn
width over how wide of an area the stars should spawn
Starts the BloodMoon and sets the time to night, queues if one is already running
{
"type": "start_blood_moon"
}Starts the Eclipse and sets the time to day, queues if one is already running
{
"type": "start_eclipse"
}Starts an invasion, only one invasion can run at the time. Invasions are queued if multiple are run.
{
"type": "start_invasion",
"id": 1
}| ID | Name |
|---|---|
| 1 | Goblin Army |
| 2 | Frost Legion |
| 3 | Pirate Invasion |
| 4 | Martian Madness |
Spawns an NPC close to the player with the name of the person running the event
{
"type": "spawn_npc",
"id": 3,
"amount": "1"
}id can be found here NPC ids. Default npc is a zombie.
Require client
Toggles a buff
{
"type": "toggle_buff",
"id": 18,
"duration": 10
}duration is in seconds
id can be found here Buff ids. Default buff is gravity.
Require client
Adds a buff to the player, if the player already has the buff the time is set to that if it's lower
{
"type": "add_buff",
"duration": 10
}duration is in seconds
Gives an item to the player
{
"type": "give_item",
"id": 2,
"amount": "1",
"drop": true
}id can be found here Item ids. Default item is dirt.
drop if the item should be dropped or go directly into the inventory
Skips the current time to the time in the action
{
"type": "set_time",
"time": 0,
"is_day": true
}time what time is should be set to. Terraia uses this to set the time during with night or day.
is_day if the time should be set to day. Terraria uses this to set if it's night or day.
And example of some times
time |
is_day |
|
|---|---|---|
| Day | 0 | true |
| Noon | 27000 | true |
| Night | 0 | false |
| Midnight | 16200 | false |
Launches a firework from the player location
{
"type": "launch_firework",
"amount": "1"
}Switches the location of two players
{
"type": "switch_location",
"target": "self",
"other": "random",
"style": 0
}target info is found at the top of the page
other either "random" or a name of a player
| Name | style |
|---|---|
| TeleporterTile | 0 |
| RodOfDiscord | 1 |
| TeleportationPotion | 2 |
| RecallPotion | 3 |
| Portal | 4 |
| MagicConch | 5 |
| DebugTeleport (no style) | 6 |
| DemonConch | 7 |
| PotionOfReturn | 8 |
| TeleportationPylon | 9 |
| QueenSlimeHook | 10 |
Drops bombs on the player position. Picks random ones from the supplied list if more then one
{
"type": "drop_bombs",
"amount": "1",
"damage": "60",
"radius": 100,
"types": [19, 24]
}types a list of ids to pick from, to only spawn one type add only one to the list
radius the area around the player to spawn the bombs in
| ID | Name |
|---|---|
| 0 | Bomb |
| 1 | StickyBomb |
| 2 | HappyBomb |
| 3 | BombSkeletronPrime |
| 4 | SmokeBomb |
| 5 | BouncyBomb |
| 6 | BombFish |
| 7 | SantaBombs |
| 8 | DD2GoblinBomb |
| 9 | ScarabBomb |
| 10 | WetBomb |
| 11 | LavaBomb |
| 12 | HoneyBomb |
| 13 | DryBomb |
| 14 | DirtBomb |
| 15 | DirtStickyBomb |
| 16 | Dynamite |
| 17 | StickyDynamite |
| 18 | BouncyDynamite, |
| 19 | Grenade |
| 20 | GrenadeI |
| 21 | GrenadeII |
| 22 | GrenadeIII |
| 23 | GrenadeIV |
| 24 | StickyGrenade |
| 25 | BouncyGrenade |
| 26 | PartyGirlGrenade |
| 27 | ClusterGrenadeI |
| 28 | ClusterGrenadeII |
| 29 | WetGrenade |
| 30 | LavaGrenade |
| 31 | HoneyGrenade |
| 32 | MiniNukeGrenadeI |
| 33 | MiniNukeGrenadeII |
| 34 | DryGrenade |