Date dependent fun condition

Any information about the fun attribute is given here.
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3756
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: Date dependent fun condition

Post by Lobby » 18 Feb 2018, 00:50

Date condition works on the absolute date, so that's not suited here.

I recommend to use the current frame of your building instead as some sort of a counter. You can increase it on a daily basis and when it reaches a specific value you can execute the replacement action.
User avatar
Kulche
Inhabitant of a Continent
Reactions:
Posts: 1194
Joined: 07 Jun 2017, 18:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Date dependent fun condition

Post by Kulche » 26 Apr 2018, 18:26

Wait, how can action be executed at random day of the year? :calc
get yoked!!
User avatar
Yakka Works
Inhabitant of a Conurbation
Reactions:
Posts: 412
Joined: 06 Jan 2020, 07:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Date dependent fun condition

Post by Yakka Works » 13 Jul 2021, 05:50

I want add sound fun for nature+ Plugin,it depends on time,such as at day it plays daytime sound when is night it play nighttime sounds, please provide me with code samples
My plugins,up to date and it's free on my website. So check it out.
My website
Community/Creators Discord Server List
User avatar
CERRERA
Townsman
Reactions:
Posts: 48
Joined: 25 Jan 2020, 04:19
Location: Philippines
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Date dependent fun condition

Post by CERRERA » 06 Sep 2023, 02:38

Code: Select all    Reset

"random fun":[ {"condition":{"type":"and","inner":[ {"type":"date","min":0,"max":5}, {"type":"building","id":"$rusty_industry_1"} ]}, "actions":[ {"type":"burn","id":"$rusty_industry_1"} ] }]
JSON checker
Check
Hello good day
I have a question about my fun command
Why the building are not burning ?
Everything you can imagine is real