Skip to main content

Emissive (Power Type)

Makes the entity with the power glow. Its model renders at full brightness, and with LambDynamicLights installed it also casts real light on the blocks around it.

Type ID: apoli:emissive

Fields

FieldTypeDefaultDescription
luminanceInteger15The light level, from 0 to 15, on the same scale as block light. 15 is one level brighter than a torch, and 7 matches a redstone torch.
self_litBooleantrueWhether the entity's own model renders at that brightness. Set it to false for an entity that lights the room without looking lit itself.
water_sensitiveBooleanfalsePassed to LambDynamicLights. When true, the light goes out underwater, the way a torch's would.

Several active apoli:emissive powers don't stack. The highest luminance wins.

LambDynamicLights

Lighting the world is optional. Without LambDynamicLights the power still renders the entity at full brightness, and nearby blocks stay unlit. Apoli detects the mod at runtime, so the data pack doesn't change either way. Unlike the types under Compatibility, apoli:emissive always loads.

Dynamic lighting is drawn by each client, so on the same server, players with LambDynamicLights see the light and players without it don't.

Examples

{
	"type": "apoli:emissive"
}

The entity glows and lights its surroundings at full strength.

{
   "type":"apoli:emissive",
   "luminance":10,
   "water_sensitive":true,
   "condition":{
      "type":"apoli:power_active",
      "power":"example:flame_mode"
   }
}

A torch-like glow that only shows while example:flame_mode is on, and goes out underwater.

note

The power works on any entity that can hold powers, mobs included.