Started by
Ray21354
on
Topic category: Help with Minecraft modding (Java Edition)
Hi
I'm making a mod about Herobrine but I have a problem with his appearance, does anyone know how I can make him appear every 5 minutes with a small chance?
Thanks in advance (sorry for bad english I use translator)
add a new procedure mod element
set the trigger to when player spawns
set player's nbt number tag to 0 (give the nbt tag your own name, something like "herobrineSpawnTimer" or something else)
then add a new procedure
set the trigger to loaded entity tick update
if player nbt tag is 6000 ticks (5 minutes), then
if random number is less than a certain threshold, then
spawn herobrine
otherwise, set nbt tag to nbt tag + 1