Hello I need help with my mod

Started by FRoginman on

Topic category: Help with Minecraft modding (Java Edition)

Active 44 minutes ago
Joined Dec 2023
Points:
178

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 18
Hello I need help with my mod

can you help me? is that I did two procedures, one for a mob to appear at a certain time and I did another for it to do the same but in reverse, now the problem is that only one version appears at one time and in a game of 1000 ticks the other appears, try to do in many ways but I can't make it work, basically it's like a werewolf, during the day it would be a mob and at night another. But it doesn't work well, I am doing it in mccreator 2022.2 1.16.5 forge

https://imgur.com/qllBItz

https://imgur.com/MeIEDfX

 

Active 1 day ago
Joined May 2022
Points:
1267

User statistics:

  • Modifications: 15
  • Forum topics: 25
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 1142
It looks like you have the…
Sun, 01/28/2024 - 17:40

It looks like you have the right idea. You want to get the world time, and MOD it out of 24000 to get the current daytime- I recommend double checking that you are running these on the update ticks of the correct entities, (either set the global trigger to 'on entity update tick' and check that it is your custom entity, or use the update tick triggers for your custom entities), and maybe use = instead of <. (It shouldn't make much of a difference, but it's more precise.) You also probably don't need to check that the world is clientside.

But yes, your code looks correct. If you want it to switch at dawn and dusk, I recommend using:

  • 'Get Current World Time, MOD 24000 = 13000' (For switching to night time)
  • 'Get Current World TIme, Mod 24000 = 1000' (For switching to day time.)
Active 44 minutes ago
Joined Dec 2023
Points:
178

User statistics:

  • Modifications: 0
  • Forum topics: 8
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 18
thnks guy, you are nice…
Fri, 09/13/2024 - 08:31

thnks guy, you are nice person.