system.runTimeout(() => { constonfire = entity.getComponent(EntityComponentTypes.OnFire); if (onfire) { world.sendMessage(`${onfire.onFireTicksRemaining} fire ticks remaining, extinguishing the entity.`); } // This will extinguish the entity entity.extinguishFire(true); }, 30); // Run in 30 ticks or ~1.5 seconds
Returns whether the component is valid. A component is
considered valid if its owner is valid, in addition to any
addition to any additional validation required by the
component.
When present on an entity, this entity is on fire.
Example: setEntityOnFire.ts