Started by
MDK
on
Topic category: Help with Minecraft modding (Java Edition)
Hello, im trying to make an item, that stops time. Well, it doesnt stop time but stops every entity from moving hence creating the effect of stopped time. I made an item and tried to make the procedure, but since the global trigger is the player right clicking with the item, the event/target entity is the player. It freezes the game trying to right click the item. I can´t find a way to only target mobs. Source entity can´t be used because the item dependencies dont allow it. Is there any way to just target the mobs?
Here is my procedure:
Also, the "Entity iterator" is a separate block. It's located under "Minecraft components" I just switched out the "event/target entity" manually
But why isnt it working on Mobss and only making the player stuck?
Can you resend your code? The image link seems broken
I just realized, I messed it up, right here, I put event/target entity instead of entity iterator. Should work once corrected:
https://imgur.com/0CT36IO
I'm noticing mobs can still move slightly. I found adding slowness makes it so they cannot move at all. The only "issue" is that if it's applied to a player, they can see the potion in their inventory, but if you don't mind that, then this works.
https://imgur.com/undefined
Ok, i gonna make this later, not on my PC rn, but thank you very much.
I changed out the potion block, with a find path and move to block, and this seems to work - https://imgur.com/itvbfhR
When mobs are in the air though they seem to move ever so slightly.
No problem at all! This has been fun to work on :)
Ive been thinking though, if you freeze the mobs and then move outside of the are, the frozen mobs won't unfreeze since they are no longer within the "for each" area, so you may want to create a timer for it, so they automatically unfreeze after set time. You can do his with NBT data.
Here's a video with how to do this: https://youtube.com/watch?v=gTbWiMu-M-0&feature=share9
Hi Stitch, theres now a block called apply potion effects (effect) ticks:(#) Particles(true - false) ambient: (true - false)
its called something close to that so if you turn off particles and ambient the effect will not show.
Its in entity management and its actually (Add potion () with level () for ()ticks. ambient:(true - false) particles:(true - false))