Topic category: Help with Minecraft modding (Java Edition)
Hello, guys. I'm new to MCreator and Modding.
I'm trying to make a procedure to play an engine sound when I'm riding an entity.
I have a 1.5 second seamless (30 ticks duration?) engine sound, so I guessed the best way to do it was in the "OnEntityTickUpdate" procedure, and I created the following:
I declared a local variable of the type number to handle the tick_counter:
It doesn't seem to work, and now I'm kinda stuck.
I don't even know if this is the best way to do it... I'm pretty new, so any help would be appreciated.
Update 08/06/2020
Nevermind, guys. I figured out all I had to do was using NBT Tags instead of local variables. Now I understand the difference.
If anyone is curious about, the final procedure looks like this:
Might be helpful for the future reference: https://mcreator.net/wiki/variables
im trying to check that out, do i need to make anything besides that? like creating variables?
its crashing my world on creation
oh nvm it was crashing because of my error, thanks for that code!
ok I'm sure this is a noob question but where is the (if Get Event/target entity...) 1/3 of the way down and (if is Event/target entity s...) 2/3 of the way down in the Final product pic located in the block procedures files?????
guess i'm not going to get an answer