Configuration
Add theTimedPortals block under the Addon: section in your portal’s .yml file.
Fields
DestroyAfterMillis — Any integer greater than zero. This is the number of milliseconds the portal stays active after being ignited before the action triggers. For example, 5000 keeps the portal open for exactly 5 seconds.
Action — Controls how the portal is removed when the timer expires. Two base values are available:
Close— Breaks the portal interior only, leaving the frame blocks in place. Equivalent to attacking the inside of the portal.Destroy— Removes both the portal interior and all frame blocks.
{explode%<0-100>} to either action to add an explosion chance at destruction time. The integer is the percentage probability.
Effects — An optional list of particle pack events to fire during the countdown. Each entry maps a millisecond offset (measured from ignition) to a particle pack name defined in the Particles addon. List entries fire in the order they are defined.
Example: 5-Second Portal with Countdown Effects
timer1 particle pack each second for the first four seconds, switches to timer2 at the five-second mark, plays a final timer3 effect as the portal destroys itself, and has a 75 % chance of exploding on destruction.
Example: Simple 30-Second Portal
The
Effects section requires the Particles addon to be installed. If the Particles addon is not present, omit the Effects key entirely to avoid configuration errors.