please help, im having performance issues with ticking blocks

Started by Muzaki on

Topic category: Help with modding (Java Edition)

Last seen on 05:06, 30. Aug 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
please help, im having performance issues with ticking blocks

I have this block thats supposed to spread to other blocks every few ticks, but if theres alot of them then it lags the internal server a bunch, is there anything i could do to fix this?

(dont tell me to have less blocks, the entire point is that theres supposed to be tons of them)

Last seen on 02:40, 4. Jan 2022
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yea use the wait block more…
Tue, 08/10/2021 - 15:44

Yea use the wait block more often

Last seen on 05:06, 30. Aug 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes i have tried using the…
Tue, 08/10/2021 - 16:19

yes i have tried using the wait block and making it a random tick, it doesnt improve performance much

Last seen on 02:40, 4. Jan 2022
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hmm what is the trigger you…
Tue, 08/10/2021 - 16:38

Hmm what is the trigger you are using?

 

If its on world tick, thats the issue

Last seen on 02:40, 4. Jan 2022
Joined Jun 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Its basically overloading…
Tue, 08/10/2021 - 16:39

Its basically overloading the CPU with calculations

Last seen on 05:06, 30. Aug 2021
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
that makes sense but what…
Tue, 08/10/2021 - 16:47

that makes sense but what should i use as the trigger then?

Last seen on 09:42, 5. Sep 2023
Joined May 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Things you can try 1, Make…
Wed, 08/11/2021 - 10:56

Things you can try

1, Make it only work in certain biomes to off set some of the load

2, Only a few ticks is very fast. You want it to tick slower. I use this Tick Calculator. >>  Tick Calculator (mapmaking.fr)

3, Depending on how your spawning them into the world. You may want to make another block that it can spawn off of so you have more control of how it spawns into the world.

GL

Chew