Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # created by Climbed
- # skripted by yours truly, Fleft
- # variables:
- # {NineSlots.Enabled} : is scenario enabled?
- options:
- On: §8[§fNineSlots >>§a Enabled >> &e%command sender%§8]
- Off: §8[§fNineSlots >>§c Disabled >> &e%command sender%§8]
- command /nineslots <text>:
- permission: skript.nineslots
- usage: /nineslots on/off/toggle
- trigger:
- if arg-1 is "on" or "enable":
- set {NineSlots.Enabled} to true
- broadcast "{@On}"
- else if arg-1 is "off" or "disable":
- delete {NineSlots.Enabled}
- broadcast "{@Off}"
- else if arg-1 is "toggle":
- if {NineSlots.Enabled} is set:
- command sender command "/nineslots off"
- stop trigger
- else:
- command sender command "/nineslots on"
- stop trigger
- on pickup:
- {NineSlots.Enabled} is set
- (size of (items in event-player's inventory)) is greater than 8
- number of event-item in player's inventory is greater than or equal to (max stack size of event-item):
- cancel the event
- player's inventory does not contain event-item:
- cancel the event
- every second:
- {NineSlots.Enabled} is set
- loop all players:
- loop items in loop-player's inventory:
- add 1 to {_Size}
- {_Size} is greater than 9
- drop loop-item at location 0.3 above loop-player
- set loop-item to air
- delete {_Size}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement