Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Maeyrl's skript
- #
- #
- on place:
- if tool is redstone block:
- if lore of player's tool contains "health":
- set {kitlocations::%block's location%} to the block's location
- set {kitplayer::%block's location%} to the player
- set {kitplayername::%block's location%} to the player's display name
- send "<yellow>Success!"
- command /health:
- permission: rankspank.mod
- trigger:
- if tool is red wool:
- set lore of tool to "health"
- else:
- send "This only works when holding red wool!"
- on click:
- if block is redstone block:
- if {kitlocations::%block's location%} is set:
- if the player can hold 1 soup:
- set the block to iron block
- set the data value of the block to 14
- set {health.timeslot::%block's location%} to now
- set {health.location::%block's location%} to the block's location
- set {health.blocktype::%block's location%} to redstone block
- set {health.blockdata::%block's location%} to 14
- set {_randomitem} to a random integer between 1 and 2
- if {_randomitem} is 1:
- give player 1 mushroom soup
- else if {_randomitem} is 2:
- give player 2 mushroom soup
- else:
- message "You can't hold your soup!" to player
- stop
- every 3 seconds:
- loop {health.location::*}:
- if difference between now and {health.timeslot::%loop-value%} is more than 15 seconds:
- set the block at the loop-value to {health.blocktype::%loop-value%}
- set the data value of the block at loop-value to {health.blocktype::%loop-value%}
- clear {health.timeslot::%loop-value%}
- clear {health.location::%loop-value%}
- clear {health.blocktype::%loop-value%}
- clear {health.blockdata::%loop-value%}
Advertisement
Add Comment
Please, Sign In to add comment