Solved how i can freeze mob

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
code_language.skript:
command /stopit:
 trigger:
  if target entity is villager:
   add "{NoAI:1}" to nbt of target entity
   send "This bitch won't move anymore!"
  else:
   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"
 
how i can code this
code_language.skript:
Loop entities in radius 25 of player:
Loop-entity is villager
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.
 
code_language.skript:
Loop entities in radius 25 of player:
Loop-entity is villager
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.

In this way , he still can be moved by collisions etc , best thing is just disable AI.
 
  • Like
Reactions: Selvati
xx.PNG
xx.PNG

[doublepost=1502037569,1502037431][/doublepost]
Disable the AI using nbt.
code_language.skript:
NoAI:1

the link of nbt
 
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_language.skript:
Loop entities in radius 25 of player:
Loop-entity is villager
Add "{NoAI:1}" to nbt of loop-entity
hi -- can you make sk file for me to freeze the villager
[doublepost=1502038043,1502037991][/doublepost]
You need skStuff for nbt stuff.
i download skstuff -- the same problem
 
Status
Not open for further replies.