Time is up

Time is up

2M Downloads

Time is up adds a timer to each dimensions in the game. 

Your exploration is now limited in time. Quickly get back to your portal before the timer reaches 00:00 if you don't want to die !

The timer for the dimension you are in decreases until reaches 00:00.
Each dimension recovers its time while you are not in.

Each player has their own timer for each dimension.

Configurations

The config file allows you to modify :

- The max timer duration by default. (set to 1 hour by default)

- The timer duration by default when the player enter the dimension for the first time. (set to 10 minutes by default)

- The time to spend in another dimension to recover time for the timer. (set to 4/1 by default)

- The timer for a specific dimension.

- The dimensions that have no timer. (the overworld by default)

- Some features related to player warning.

Items

Timer anchor : can be set to your current timer. You gain half the passed time on use and cooldown is set to 2 times the passed time. Can be refilled with ender pearls.

Timer bonus : adds 1 minute to your timer. cooldown of 1 minute and 30 seconds.

    These items could change in futur updates.

CraftTweaker (optional)

MC 1.16.5

These events can be imported : 

  • crafttweaker.api.event.timeisup.TickEvent : Fired each tick for each timer phase (dangerous, emergency and time is up).
  • crafttweaker.api.event.timeisup.DangerousEvent : Fired each tick for 'dangerous'  phase.
  • crafttweaker.api.event.timeisup.EmergencyEvent : Fired each tick for 'emergency' phase.
  • crafttweaker.api.event.timeisup.TimeIsUpEvent : Fired each tick for 'time is up' phase.

.

You can catch these events to customize the effects of the corresponding phase. CraftTweaker wiki page : https://docs.blamejared.com/1.16/en/vanilla/api/event/CTEventManager/

call .cancel() to disable default effects of the mod. CraftTweaker wiki page : https://docs.blamejared.com/1.16/en/vanilla/api/event/MCEvent/

Each event has the properties :

.

MC 1.12.2

To catch time is up events, you have to import the custom EventManager  : import crafttweaker.events.timeisup.EventManager;

The EventManager functions are : 

  • onDangerous : for crafttweaker.api.event.timeisup.DangerousEvent 
  • onEmergency : for crafttweaker.api.event.timeisup.EmergencyEvent 
  • onTimeIsUp : for crafttweaker.api.event.timeisup.TimeIsUpEvent 
  • onTimerTick : for crafttweaker.api.event.timeisup.TickEvent

How to catch events : https://docs.blamejared.com/1.12/en/Vanilla/Events/IEventManager/

(Replace "events" by "EventManager.getInstance()")

Example :


import crafttweaker.api.event.timeisup.DangerousEvent;
import crafttweaker.events.timeisup.EventManager;
EventManager.getInstance().onDangerous(function(event as DangerousEvent){
     if(event.tick % 20 == 0) {
        print(event.player.name + " dangerous " + event.tick);
     }
});

Will print the player name with "dangerous" and the current timer tick in CraftTweaker logs every second.

Game Stages (optional) (1.16 only)

You can "unlock" a dimension (remove the timer) by adding the corresponding stage to the player.

      - Stage format : timeisup_<modid>_<dimension_name>

      - Example : for the nether with the id "minecraft:the_nether",  the corresponding game stage is "timeisup_minecraft_the_nether".

Changelog 1.3.0

- Timer Ward is now available in creative inventory. 

- New potion effects :

       - Exile Effect : Accelerates the timer decrease.

       - Doom Effect : Mobs are summoned around the player during this effect. (WIP)

- Boss : You can choose a boss in configs. All timers are disabled for the player who killed the boss.

- Every entity has a chance to give Exile Effect to the player who killed it. Chances and strength of the effect are configurable.

Changelog 1.3.2

- New effects format :  effectId;duration;amplifier;show_icon

- Added config option for safe respawn.

- Added CraftTweaker integration.

These events can be imported : 

  • crafttweaker.api.event.timeisup.TickEvent : Fired each tick for each timer phase (dangerous, emergency and time is up).
  • crafttweaker.api.event.timeisup.DangerousEvent : Fired each tick for 'dangerous'  phase.
  • crafttweaker.api.event.timeisup.EmergencyEvent : Fired each tick for 'emergency' phase.
  • crafttweaker.api.event.timeisup.TimeIsUpEvent : Fired each tick for 'time is up' phase.

Changelog 1.3.3

- Doom effect spawnset is now configurable. 

- Doom spawn chance is now configurable.

- Fix Doom effect : mobs were spawning on top of the world only. 

- Cooldown before applying timer effects is now configurable. 

- You can now get the current timer tick from events.  ( .tick property for CraftTweaker)

- Fix events : the timer was stopped if event was canceled.

- Port 1.12.2


 

Recipes :

Timer bonus recipe

Timer anchor recipe

Timer anchor refill

Modpacks :

You are allowed to add this mod in any public modpack as long as it contains a link to this webpage or it is published on curseforge.