Entity

Generates an entity that follows you, will give effects to players in a radius and will be eliminated after the specified time.

It can also be killed; the killer will execute the totem's effects and actions.

Options

Options available for all entities

OptionValueDescription

type

String

Entity Type

name

String

Entity Name

nameVisible

Boolean

Whether or not the name is visible

ai

Boolean

If the entity has IA

collidable

Boolean

If the entity has collision

gravity

Boolean

If the entity has gravity

invulnerable

Boolean

If the entity is invulnerable

visible

Boolean

If the entity is visible

Item

Defines the player's equipment (Uses the same format as a totem item).

Armor stand options

OptionValueDescription

arms

Boolean

If the armor stand has arms

basePlate

Boolean

If the armor stand has baseplate

small

Boolean

If the armor stand is small

marker

Boolean

If the armor stand is a marker

glow

Boolean

If the armor stand is glowing

Vector

Defines the armor stand pose

Example

ZombieTotem:
  name: "{#3A6E3B}Zombie Totem"
  types:
    type: "Entity"
    options:
      duration: 60
      radius: 15
      giveEffect: "self"
      executeActions: "self"
      executeScripts: "self"
      entity:
        type: ZOMBIE
        name: "{#3A6E3B}Zombie Totem"
        runOnKill: true
        nameVisible: true
        ai: true
        gravity: true
        invulnerable: false
        glow: true
  item:
    material: ZOMBIE_HEAD
    name: "{#3A6E3B}Zombie Totem"
    lore:
      - ""
      - "&7I'm a zombie now!"
      - ""
  options:
    health: 20.0
    isThrowable: true
    playAnimation: true
  conditions:
    chance:
      value: 100
    permission:
      value: "plutotems.use.zombietotem"
    kether:
      - "check player food level > 10"
  actions:
    - "title: {#3A6E3B}ZOMBIE | &7You have used the {#3A6E3B}Zombie Totem &7totem!"
    - "broadcast: &7{player} has used the {#3A6E3B}Zombie Totem &7totem!"
    - "sound: ENTITY_PLAYER_LEVELUP-1-1"
  effects:
    - 'SLOW:1:600'

Last updated