Date dependent fun condition

Any information about the fun attribute is given here.

Moderator: Plugin Moderators

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Date dependent fun condition

#21

Post by Lobby »

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
Pluche
Reactions:
Posts: 1141
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Date dependent fun condition

#22

Post by Kulche »

Wait, how can action be executed at random day of the year? :calc

User avatar
Yakka
Inhabitant of a Conurbation
Reactions:
Posts: 413
Joined: 06 Jan 2020, 09:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Date dependent fun condition

#23

Post by Yakka »

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

User avatar
CERRERA
Townsman
Reactions:
Posts: 48
Joined: 25 Jan 2020, 06:19
Location: Philippines
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: Date dependent fun condition

#24

Post by CERRERA »

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 ?

Post Reply Previous topicNext topic

Return to “Fun attribute”