The Entity Lookup System
What is the Entity Lookup System?
Much like how the item lookup system allows for specifying many options for ItemStacks in a simple, user-friendly string, the entity lookup system is designed to do the same for entities.
Keys Explained
In each string is the key for an entity. A key looks one of two ways:
- A vanilla minecraft entity: (eg
husk) - An entity from another plugin: (eg
ecomobs:tarantula)
Using entities from other plugins
| Plugin | Item Lookup Key |
|---|---|
| EcoMobs | ecomobs:<id> |
| MythicMobs | mythicmobs:<id> |
Extra syntax
?between two entities means 'try to spawn the first entity, but if it doesn't exist, spawn the second entity'. You can chain these together.||groups two entities, allowing either one of them to be spawned, at random. You can chain these together to create further randomness on spawns.
Modifiers
Entities can have modifiers applied to them in the key. For example, lets say you're configuring a mob in EcoMobs. You want it to be a massive slime, a baby zombie, or a charged creeper, but you're not sure how to do that, because it looks like you have to just specify an entity type. Actually, in all of my plugins, wherever it asks for an entity, it's actually doing a lookup. You can specify any of the following modifiers to it:
adultForce the entity to be an adultattack-damageSet the entities attack damageattack-speedSet the entities attack speedbabyForce the entity to be a babychargedSet a creeper to be chargedexplosion-radiusSet a creepers explosion radiusfly-speedSet the entities fly speedfollow-rangeSet the entities follow rangehealthSet the entities healthjump-strengthSet a horses jump strengthknockbackSet the entities attack knockbackknockback-resistanceSet the entities knockback resistancenameSet the entities display name, use quotes (") for multi-word namesno-aiSet the entity to have no AIsizeSet the size of a slime or phantomspawn-reinforcementsSet a zombie to spawn reinforcementsspeedSet the movement speed of the entitysilentSet the entity to make no soundheadSet the helmet itemchestSet the chestplatelegsSet the leggingsfeetSet the bootshandSet the held itemoff_handSet the held item in the offhandmodel-engineSet the Model Engine ID and animation (for ID domodel-engine:id, for ID and animation domodel-engine:id,animation)
You simply chain the modifiers together, for example:
phantom size:5 follow-range:25 speed:2 health:200 name:"&4Deadly Phantom" model-engine:dragon,flap