Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Options:
- P: &8[&eTime &3Bomb&8]&b #Prefix
- Perm: timebomb.use #Permission
- Gheads: true #If Golden heads should spawn in the chests
- ExplosionForce: 15 #The size of the explosion
- Time: 30 #Wait time for the chest to explode
- UHCSK: false # IMPORTANT! If you have minemidnight's UHCsk skript, then make the to TRUE, and if you don't have it, make it false!
- on load:
- set {timebomb.gheads} to {@Gheads}
- set {timebomb.uhcsk} to {@UHCSK}
- command /timebomb [<text>]:
- permission: {@Perm}
- aliases: /tb
- trigger:
- if arg-1 is set:
- if arg-1 is "on" or "true" or "enable":
- set {timebomb.bomb} to true
- message "{@P} &9&lTimebomb is now &b&lenabled!"
- if arg-1 is "off" or "false" or "disable":
- set {timebomb.bomb} to false
- message "{@P} &9&lTimebomb is now &b&ldisabled!"
- else:
- message "{@P} &9&lUsage&f: &b/timebomb <On&f|&bOff>"
- on death of player:
- if {timebomb.bomb} is true:
- set the block below the victim to a chest
- set the block 1 meter east of the block below the player to a chest
- set the inventory of the block below the victim to victim's inventory
- add the victim's helmet slot to the inventory of the block below the victim
- add the victim's chestplate slot to the inventory of the block below the victim
- add the victim's leggings slot to the inventory of the block below the victim
- add the victim's boots slot to the inventory of the block below the victim
- if {timebomb.Gheads} is true:
- add a golden apple named "&6Golden Head" to the inventory of the block below the victim
- clear the victim's inventory
- clear drops
- wait {@Time} seconds
- set the block below the victim to air
- set the block 1 meter east of the block below the player to air
- create an explosion of force {@ExplosionForce} at block below the victim
- strike lightning effect at the block below the victim
- on consume:
- if {timebomb.uhcsk} is false:
- if name of player's tool contains "&6Golden Head":
- remove regeneration from player
- apply regeneration 2 to the player for 10 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement