Skip to content

P | Utility: EntitySizeUtils

Sartaj Singh edited this page May 29, 2025 · 2 revisions

Utility: EntitySizeUtils

EntitySizeUtils (requires the EntitySize plugin) lets you change the size of any entity in the world.


1. setSize(Entity entity, float scale)

What it does:
Sets the entity's size multiplier (visual and collision).

Example:

EntitySizeUtils.setSize(zombie, 3.0f); // Giant zombie!

2. resetSize(Entity entity)

What it does:
Resets the entity's scale to its default size.

Example:

EntitySizeUtils.resetSize(zombie);

3. isEntitySizePluginInstalled(): boolean

What it does:
Checks if the EntitySize plugin is loaded on the server.

Example:

if (EntitySizeUtils.isEntitySizePluginInstalled()) {
    // Safe to use size manipulation
}

Usage Patterns

  • Make huge or tiny mobs for bosses, events, or fun.
  • Always check isEntitySizePluginInstalled before using to avoid errors.

Clone this wiki locally