*UNSOLVED* Help with entity spawning mechanism

Started by Lacx on

Topic category: Troubleshooting, bugs, and solutions

Last seen on 18:55, 28. Aug 2024
Joined Aug 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
*UNSOLVED* Help with entity spawning mechanism
Fri, 08/16/2024 - 10:11 (edited)

image of code: https://imgur.com/a/help-jwsJBNg

 

this is meant to if the player is on the deep dark biome it spawns with a chance a entity on the player position. it wont work

 

Edited by Lacx on Fri, 08/16/2024 - 10:11
Last seen on 04:06, 14. Sep 2024
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
This is only checking if the…
Sun, 08/18/2024 - 10:03

This is only checking if the player joins the world, such as clicking quit and joining in again, to have a chance while they are in the biome you should use player tick global trigger, however that mean it will run that procedure 20 times a second, so you should lower that chance from 0.1 = 10% to something smaller, so you don't crash in a minute because you spawned hundreds of your secret mob.