1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved how i can freeze mob

Discussion in 'Skript' started by iAstora, Aug 5, 2017.

Thread Status:
Not open for further replies.
  1. iAstora

    iAstora Member

    Joined:
    Jul 29, 2017
    Messages:
    32
    Likes Received:
    1
    how i can freeze mob
     
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Disable the AI using nbt.
    Code (Skript):
    1. NoAI:1
     
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    trying this:
    Code (Skript):
    1.  
    2. on move:
    3.     if event-entity is zombie: #Or if event-entity is a zombie:
    4.         cancel event
    5.     else:
    6.         stop
    7. #idk
    8.  
     
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    With a lot of entities, this will be a lag machine. Never use "on move" in a situation like this.
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Is it too difficult to do a laggy work around?
     
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Really, never use on any move/on move ever. There's more than likely a better way to do whatever you want to do
     
  7. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Give me some more detail on like, when do you want the mob to be frozen? How long is it frozen for? Does the freeze have conditions?
     
  8. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    i need to freeze villager all the time
     
  9. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Please use skStuff and nbt stuff for doing this.
     
  10. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    If you dont want to fo what YoshYz suggested, I suggest too, you can loop all entities in a radius of 25 of the player, and check if they're villager, then apply slowness 500 to them
     
  11. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    how i can code this
     
  12. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Code (Skript):
    1. command /stopit:
    2.  trigger:
    3.   if target entity is villager:
    4.    add "{NoAI:1}" to nbt of target entity
    5.    send "This bitch won't move anymore!"
    6.   else:
    7.    send "You told you just wanna freeze Villager, so look at vilalger! -.-"
    Common, its pretty easy to understand? If you are not good at skripting then maybe next time Requesting instead "dissusicion"
     
  13. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Code (Skript):
    1. Loop entities in radius 25 of player:
    2. Loop-entity is villager
    3. Apply slowness 500 for a day to loop-entity
    Should work, haven't tested it, I understand you posting here, this way, in a way instead of just being handed the solutions, you learn how to make the solutions! Cheers.
     
  14. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    In this way , he still can be moved by collisions etc , best thing is just disable AI.
     
    • Like Like x 1
  15. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Agreed. :emoji_wink:
     
  16. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    xx.PNG xx.PNG
    --- Double Post Merged, Aug 6, 2017, Original Post Date: Aug 6, 2017 ---
    the link of nbt
     
  17. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    Alternatively, if you want to use the no ai method, preferred by most, this code below should work, also allow me to demonstrate the beauty of a quick google, using keywords.
    Another thread with answers
    Code (Skript):
    1. Loop entities in radius 25 of player:
    2. Loop-entity is villager
    3. Add "{NoAI:1}" to nbt of loop-entity
     
  18. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    • Useful Useful x 1
  19. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    hi -- can you make sk file for me to freeze the villager
    --- Double Post Merged, Aug 6, 2017, Original Post Date: Aug 6, 2017 ---
    i download skstuff -- the same problem
     
  20. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    222
    ¯\(x_x)/¯

    i don't understand anymore how people ingnore my post or what?
     
Thread Status:
Not open for further replies.

Share This Page

Loading...