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 1 leather helmet to {refill.items::*}
- command /refillchest1 [<text>]:
- trigger:
- if arg-1 is "*" or "all":
- loop integers between 1 and 1000:
- if {refill.chest1.%loop-number%} is set:
- set block at {refill.chest1.%loop-number%} to air
- set block at {refill.chest1.%loop-number%} to chest
- 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 {refill.chest1.%loop-number%}'s inventory to {_randomitem1}
- chance of 25%:
- set slot {_location2} of {refill.chest1.%loop-number%}'s inventory to {_randomitem2}
- chance of 7%:
- set slot {_location3} of {refill.chest1.%loop-number%}'s inventory to {_randomitem3}
- command /setchesta1 [<text>]:
- permission: refill.admin
- trigger:
- set {refill.chest1.%arg-1%} to location of target block
- send "&6&lREFILL &8» &eDu har sat en lokation for chest %arg-1%"
- send "&6&lREFILL &8» &e%{refill.chest1.%arg-1%}%"
- every 1 second:
- loop integers between 1 and 1000:
- if {refill.chest1.%loop-number%} is set:
- if {sec.refill.chest1.%loop-number%} is less or equal to 0:
- if {min.refill.chest1.%loop-number%} is less or equal to 0:
- execute console command "refillchest1 %loop-number%"
- stop
- else:
- remove 1 from {min.refill.chest1.%loop-number%}
- set {sec.refill.chest1.%loop-number%} to 59
- else:
- remove 1 from {sec.refill.chest1.%loop-number%}
Advertisement
Add Comment
Please, Sign In to add comment