SHI_YE Posted May 13, 2021 Share Posted May 13, 2021 Hi,there.I add a staff in my mod and I want it to change the moon phase to full moon when I use it.How could I make it? Link to comment Share on other sites More sharing options...
Yakuzashi Posted May 14, 2021 Share Posted May 14, 2021 (edited) Howdy. Put this lil fella inside onequip, if that's what you mean with "when I use it". if TheWorld.state.isnight then TheWorld:PushEvent("ms_setmoonphase", {moonphase = "full"}) end Cheers! Edit: test it with console (default "~") Quote TheWorld:PushEvent("ms_nextphase") Edited May 14, 2021 by Yakuzashi 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now