-
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.
Heals the player with the amount specified, 0 = full heal, negative value removes health
{
"type": "heal_player",
"amount": "0"
}Fills the players mana with the amount specified, 0 = full refill, negative value removes mana
{
"type": "fill_mana",
"amount": "0"
}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
{
"type": "start_blood_moon"
}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
}id can be found here NPC ids. Default npc is a zombie.
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.
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
Drops bombs on the player position. Picks random ones from the supplied list if more then one
{
"type": "drop_bombs",
"amount": 1,
"damage": 60,
"types": [20, 26]
}| ID | Name |
|---|---|
| 1 | Bomb |
| 2 | StickyBomb |
| 3 | HappyBomb |
| 4 | BombSkeletronPrime |
| 5 | SmokeBomb |
| 6 | BouncyBomb |
| 7 | BombFish |
| 8 | SantaBombs |
| 9 | DD2GoblinBomb |
| 10 | ScarabBomb |
| 11 | WetBomb |
| 12 | LavaBomb |
| 13 | HoneyBomb |
| 14 | DryBomb |
| 15 | DirtBomb |
| 16 | DirtStickyBomb |
| 17 | Dynamite |
| 18 | StickyDynamite |
| 19 | BouncyDynamite, |
| 20 | Grenade |
| 21 | GrenadeI |
| 22 | GrenadeII |
| 23 | GrenadeIII |
| 24 | GrenadeIV |
| 25 | StickyGrenade |
| 26 | BouncyGrenade |
| 27 | PartyGirlGrenade, |
| 28 | ClusterGrenadeI |
| 29 | ClusterGrenadeII |
| 30 | WetGrenade |
| 31 | LavaGrenade |
| 32 | HoneyGrenade |
| 33 | MiniNukeGrenadeI |
| 34 | MiniNukeGrenadeII |
| 35 | DryGrenade |
| 36 | DynamiteKitten |