• Hey! Register here to create your account, engage with the community, and talk about what is new!

Spawning Mobs on join.

Pancake

New member
Joined
Aug 5, 2023
Messages
5
Reaction score
1
I have gotten mob spawning to work properly. I made it work on left click so whenever I left click mobs spawn. But for some reason when moving it to the on player join event it stops working. Everything else works together outside of it but when I move it to player joins it stops. I inserted screenshots of every chest and the repeat forever loop.
 

Attachments

  • 2023-08-06_19.33.05.png
    2023-08-06_19.33.05.png
    706.1 KB · Views: 1
  • 2023-08-06_19.33.09.png
    2023-08-06_19.33.09.png
    552.2 KB · Views: 1
  • 2023-08-06_19.33.13.png
    2023-08-06_19.33.13.png
    290.4 KB · Views: 1
  • 2023-08-06_19.33.15.png
    2023-08-06_19.33.15.png
    523.3 KB · Views: 1
  • 2023-08-06_19.33.16.png
    2023-08-06_19.33.16.png
    559.6 KB · Views: 1
Solution
The chunks are unloaded when I first join but its a forever loop for 1 second so they should start spawning after a second when the chunks load. There is two forever loops in the when player joins event if that's important.
the code after a Forever repeat won't run (unless you stop the repeat), so you might need to consider to use Processes for player loops

I would've provided more context on how to use Processes but unfortunately I am banned from the server and discord server, so sorry.

Pancake

New member
Joined
Aug 5, 2023
Messages
5
Reaction score
1
Mobs don't spawn if the chunks aren't loaded, perhaps that's the problem?
The chunks are unloaded when I first join but its a forever loop for 1 second so they should start spawning after a second when the chunks load. There is two forever loops in the when player joins event if that's important.
 

ARMcPro

Forum adept
Overlord
Joined
Oct 20, 2020
Messages
1,263
Reaction score
353
The chunks are unloaded when I first join but its a forever loop for 1 second so they should start spawning after a second when the chunks load. There is two forever loops in the when player joins event if that's important.
the code after a Forever repeat won't run (unless you stop the repeat), so you might need to consider to use Processes for player loops

I would've provided more context on how to use Processes but unfortunately I am banned from the server and discord server, so sorry.
 
Solution

Pancake

New member
Joined
Aug 5, 2023
Messages
5
Reaction score
1
the code after a Forever repeat won't run (unless you stop the repeat), so you might need to consider to use Processes for player loops

I would've provided more context on how to use Processes but unfortunately I am banned from the server and discord server, so sorry.
Thanks! I just had to use two start process blocks and it worked. Real question is why are you banned from the server and discord server?
 
Top Bottom