Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
MythicMobs MythicMobs
  • Project overview
    • Project overview
    • Details
    • Activity
  • Issues 137
    • Issues 137
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • MythicCraft
  • MythicMobsMythicMobs
  • Wiki
    • Skills
    • Mechanics
  • Time

Last edited by Lxlp Nov 29, 2024
Page history
This is an old version of this page. You can view the most recent version or browse the history.

Time

Description

Sets the world's time. Depending on the attributes used, the change in time can be absolute or relative to the target player.

Time mechanics must be synced to function. "sync=true;"

Attributes

Attribute Aliases Description Default
mode m The mode used in the time mechanic. Can be ADD/SET/RESET ADD
amount ticks, t, amt The amount of ticks by which the time will be changed 20
personal Sets whether to change the global time or the player's client time false
relative Sets whether to keep the player's time synchronized to its world time with an offset true

Mode Attribute

The different values the mode attribute can be all have different effects

  • ADD - Sets the current time of the world with an offset
  • SET - Sets the current time of the world
  • RESET - Re-syncs the target's world time with the server world time, if it is not already synced

Examples

# Mob File
ExampleMob:
  Type: ZOMBIE
  Skills:
  - sudoskill{s=MidnightAura} @PIR{r=30} ~onTimer:20
# Skills File
MidnightAura:
  Skills:
  - aura{auraName=midnight;i=1;ms=1;rd=true;
    onTick=[
      - time{mode=SET;a=18000;personal=true;relative=false;sync=true} @self
    ];
    onEnd=[
      - time{mode=RESET;sync=true} @self
    ]} @self

Aliases

  • setTime
Clone repository
Home
Changelogs
Premium Features
Commands and Permissions
Mythic Add-ons
Compatible Plugins
API Information

MythicScribe MythicScribe
Guides
  • Troubleshooting
  • FAQ / Common Issues
  • Examples
Packs

Mobs
  • Mob Options
    • Display Options
  • Mob Levels
  • Mob Factions
  • Power Scaling
  • Damage Modifiers
  • Equipment
  • BossBar
  • Custom AI
  • Custom Kill Messages
  • Threat Tables
  • Immunity Tables
  • Templates
  • Vanilla Overrides
  • Extra: Disguises
  • Extra: ModelEngine
Skills
  • Mechanics
  • Targeters
    • Filters
  • Triggers
  • Conditions
    • In-line conditions
  • Metaskills
  • Placeholders
  • Variables
Items
  • Options
  • Attributes
  • Enchantments
  • Potions
  • Banner Layers
  • Firework
Drops & DropTables
  • Drops
  • DropTables
  • FancyDrops
Spawning
  • Spawners
  • Random Spawns

Stats
  • Custom Stat Options
  • Modifiers
  • Built in Stats
Other
  • Particles Types
  • Audience
  • Equipment Slots
  • Pins
Technical
  • Math
  • Operations
    • Attribute Operations
    • Stats Modifiers
  • SkillTree
  • Advanced User Guides and Techniques