Advertisement
UDON_JP

MobSpawnLimiter

Sep 12th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. #前提:「Skript」、「SkStuff」
  2.  
  3. #改造:基本的に自由ですが、作成者を偽るのは禁止です
  4.  
  5. #使用:[if {mob} is less than or equal to 4:]のところの数字を変えることによって、
  6. #mobの沸き上限を設定できます。(lessなので100にしたいときは99と書いてください)
  7. #[wait 100 second]のところの数字を変えることで、召喚されてからデスポーンまでの時間を変更できます
  8.  
  9. #必須:リピート・常時のコマンドブロックを設置し、[/entitydata @e {PersistenceRequired:1}]
  10. #と書いてください、こうしないとバグります。
  11. #このSkriptを導入したら初めに[/mob-reset]と打ってください。
  12.  
  13. #コマンド:[/mob]にて今世界にいるmobの数が確認できます。(誰でも使えます)
  14. #[/mob-reset]変数mobを0にセットできます。(最初以外使わないで下さい、permission[adomin]もちのみ使えます)
  15.  
  16. on spawn:
  17. if {mob} is less than or equal to 4:
  18. add 1 to {mob}
  19. wait 100 second
  20. teleport event-entity to location (8,0,8)
  21. wait 1 tick
  22. kill the event-entity
  23. else:
  24. cancel event
  25.  
  26. on death:
  27. victim isn't a player
  28. if {mob} is more than or equal to 1:
  29. remove 1 from {mob}
  30.  
  31. command /mob:
  32. trigger:
  33. send "There are now %{mob}% mobs in this world" to player
  34.  
  35. command /mob-reset:
  36. permission: adomin
  37. trigger:
  38. set {mob} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement