Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /firstload:
- permission: refill.admin
- trigger:
- clear {refill.items::*}
- add 1 diamond sword of sharpness 1 to {refill.items::*}
- add 2 golden apples to {refill.items::*}
- add 4 emeralds to {refill.items::*}
- add 1 diamond helmet to {refill.items::*}
- add 1 diamond chestplate to {refill.items::*}
- add 1 diamond leggings to {refill.items::*}
- add 1 diamond boots to {refill.items::*}
- add 1 nether star to {refill.items::*}
- add 1 bow of power 2 to {refill.items::*}
- add 1 diamond chestplate of protection 1 to {refill.items::*}
- add 1 diamond leggings of protection 1 to {refill.items::*}
- add 1 paper named "&6&l$500" with lore "&7&oKlik for at indløse." to {refill.items::*}
- command /refill:
- permission: refill.admin
- trigger:
- set {refilltid.min} to 9
- set {refilltid.sec} to 59
- loop blocks in radius 50 around {refill.chest}:
- if loop-block is a chest:
- clear loop-block's inventory
- set {_randomitem1} to random element out of {refill.items::*}
- set {_randomitem2} to random element out of {refill.items::*}
- set {_randomitem3} to random element out of {refill.items::*}
- set {_location1} to a random integer from 4 to 15
- set {_location2} to a random integer from 2 to 23
- set {_location2} to a random integer from 5 to 20
- set slot {_location1} of loop-block's inventory to {_randomitem1}
- chance of 25%:
- set slot {_location2} of loop-block's inventory to {_randomitem2}
- chance of 7%:
- set slot {_location3} of loop-block's inventory to {_randomitem3}
- send "&6&lREFILL &8» &eDu har refillet alle kisterne"
- command /setmiddle:
- permission: refill.admin
- trigger:
- set {refill.chest} to location of player
- send "&6&lREFILL &8» &eDu har addet en chest lokation!"
- every 1 second:
- if {refilltid.sec} is less or equal to 0:
- if {refilltid.min} is less or equal to 0:
- set {_Online} to number of all players
- if {_Online} is greater or equal to 8:
- execute console command "refill"
- stop
- else:
- remove 1 from {refilltid.min}
- set {refilltid.sec} to 59
- else:
- remove 1 from {refilltid.sec}
- on join:
- if {refilltid.sec} is less or equal to 0:
- if {refilltid.min} is less or equal to 0:
- set {_Online} to number of all players
- if {_Online} is greater or equal to 8:
- execute console command "refill"
- on quit:
- if {refilltid.sec} is less or equal to 0:
- if {refilltid.min} is less or equal to 0:
- set {_Online} to number of all players
- if {_Online} is greater or equal to 8:
- execute console command "refill"
Advertisement
Add Comment
Please, Sign In to add comment