1. These forums are still being retired! Please use GitHub discussions or Discord. You cannot create new threads or new accounts now. If you need to contact some user of the forums, you should do it sooner, rather than later. This notice was last updated on May 30th, 2021.

Resolved Enabled Hard Mode at night, Normal Mode during the day.

Discussion in 'Plugin Suggestions' started by EightBit, Oct 22, 2014.

  1. EightBit

    EightBit Level 1

    Joined:
    Aug 17, 2013
    Messages:
    10
    As most of you that host a server know, there is someone always a bit behind because the server was put into Hard Mode within a matter of minutes. I would like the ability to have Hard Mode only enabled at night and Hard Mode OFF during the day. Would this be possible?
     
  2. Kojiro_S

    Kojiro_S Level 11

    Joined:
    Feb 16, 2014
    Messages:
    659
    Not with vanilla options, AFAIK. There are no public plugins that can achieve this currently (well, MAYBE advanced circuits). I dunno if there's a way to create a JIST command for SEc15 that reads the time and executes a command when night falls, but well, that's that.

    Try to be respectful to the /hardmode command though, as it will still generate the biome stripes. IMO you should try to create a prehard region using Diemob Regions instead.
     
  3. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,598
    Would not be difficult to make a plugin to do this.
    Basically
    Code:
    UpdateLoop
    {
        if !daytime && !hardmode
            hardmode = true
        if daytime && hardmode
            hardmode = false
    }
    
    Packets may need to be sent, idk
     
    • Like Like x 1
  4. nicatronTg

    nicatronTg Shank / hakusaro
    TShock Founder TShock Admin

    Joined:
    Jul 21, 2011
    Messages:
    727
    @Wight sounds like you want to do this plugin?
     
  5. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,598
    Sure why not
     
  6. nicatronTg

    nicatronTg Shank / hakusaro
    TShock Founder TShock Admin

    Joined:
    Jul 21, 2011
    Messages:
    727
  7. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,598
    @EightBit completed here: https://tshock.co/xf/index.php?resources/day-n-night.32/
     
    • Like Like x 2
  8. EightBit

    EightBit Level 1

    Joined:
    Aug 17, 2013
    Messages:
    10
    • Like Like x 1