Started by
One_and_Online
on
Topic category: Help with MCreator software
So i wanted to create herobrine, so i made a procedure that should make him despawn when i get into a 25 block radius around him. Here's the procedure i used:
OnInitialEntetySpawn
repeat [infinite] times
- if does entity exist at: x: [x] y: [y] z: [z] in square cube with size [25] of type [player]
- - play at x: [x] y: [y] z: [z] level: [1] pitch: [1] category: [neutral] sound: [ambient.cave]
- - Despawn Event/Target entety
- - [break out] of loop
- if-then end
repeat end
Thats how it logically should work in my opinion, but it does not for some reason. it only does when i spawn him right next to me.
Can someone please help me?
Don't use on initial entity spawn, use on entity tick update and do not use repeat.
On entity tick update:
- if does entity exist at: x: [x] y: [y] z: [z] in square cube with size [25] of type [player]
- - play at x: [x] y: [y] z: [z] level: [1] pitch: [1] category: [neutral] sound: [ambient.cave]
- - Despawn Event/Target entety
If this issue has not been resolved, you can check out the example I've created on my website for download! There are two examples, and two procedures.
On has a Tick Timer, while the other is just on player tick update.
You can download and import them into your MCreator software!
[ View Website ]
[ Virus Total Report ] : Entity_Despawn_Timer.zip
[ Virus Total Report ] : Entity_Despawn_NoTimer.zip