Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on skript load:
- loop {generators::*}:
- if {generatorstatus::%loop-value%} is true:
- create a hologram with lines "&a%{generatortype::%loop-value%}% &aGenerator" and "%{generatorstars::%loop-value%}%" at block above above block at loop-value and store it in {generatorholograms::%loop-value%}
- else if {generatorstatus::%loop-value%} is false:
- create a hologram with lines "&c%{generatortype::%loop-value%}% &cGenerator" and "%{generatorstars::%loop-value%}%" at block above above block at loop-value and store it in {generatorholograms::%loop-value%}
- wait 1 tick
- command /serveritems:
- trigger:
- open virtual chest inventory with size 3 named "Server Items" to player
- set {_i} to 0
- loop 5 times:
- if loop-number is 1:
- set {_star} to "&e&l✰&f✰✰✰✰"
- else if loop-number is 2:
- set {_star} to "&e&l✰✰&f✰✰✰"
- else if loop-number is 3:
- set {_star} to "&e&l✰✰✰&f✰✰"
- else if loop-number is 4:
- set {_star} to "&e&l✰✰✰✰&f✰"
- else if loop-number is 5:
- set {_star} to "&e&l✰✰✰✰✰"
- format a gui slot {_i} of player with smoker named "&6Plasma Generator &8[%{_star}%&8]" with lore "&7Discovered by %player%" and "" and "&fSimply place the generator and allow" and "&fit to generate the specified items" and "" and "&dDrops: &d&lPlasma Fragment" to run:
- give 1 of clicked item to player
- format a gui slot 6 of player with black dye named "&ePlasma Fragment" with lore "&7## Craftable & Tradeable ##" and "" and "&fUse this item to craft new generators" and "&for trade them for better equipment/gear" and "" and "&dUses: &d&lCrafting & Trading" to run:
- give 1 of clicked item with nbt "{Level:1}" to player
- add 1 to {_i}
- set {_ii} to 9
- loop 5 times:
- if loop-number is 1:
- set {_star} to "&e&l✰&f✰✰✰✰"
- else if loop-number is 2:
- set {_star} to "&e&l✰✰&f✰✰✰"
- else if loop-number is 3:
- set {_star} to "&e&l✰✰✰&f✰✰"
- else if loop-number is 4:
- set {_star} to "&e&l✰✰✰✰&f✰"
- else if loop-number is 5:
- set {_star} to "&e&l✰✰✰✰✰"
- format a gui slot {_ii} of player with smoker named "&6Magma Generator &8[%{_star}%&8]" with lore "&7Discovered by %player%" and "" and "&fSimply place the generator and allow" and "&fit to generate the specified items" and "" and "&dDrops: &d&lMagma Fragment" to run:
- give 1 of clicked item to player
- format a gui slot 15 of player with brown dye named "&eMagma Fragment" with lore "&7## Craftable & Tradeable ##" and "" and "&fUse this item to craft new generators" and "&for trade them for better equipment/gear" and "" and "&dUses: &d&lCrafting & Trading" to run:
- give 1 of clicked item to player
- format a gui slot 16 of player with cauldron named "&6Chunk Buster" with lore "&7## Purchasable & Tradeable ##" and "" and "&fUse this to destroy a chunk" and "&fthis will remove all blocks in the chunk" and "" and "&dUses: &d&lTrading" to run:
- give 1 of clicked item to player
- add 1 to {_ii}
- on place of smoker:
- if name of player's tool contains "&6Plasma Generator":
- if player cannot build at the event-block:
- cancel event
- send "&cYou cannot build at this area" to player
- stop
- add event-location to {generators::*}
- set {generatortype::%event-location%} to "Plasma"
- set {generatordrops::%event-location%} to black dye named "&ePlasma Fragment" with lore "&7## Craftable & Tradeable ##" and "" and "&fUse this item to craft new generators" and "&for trade them for better equipment/gear" and "" and "&dUses: &d&lCrafting & Trading"
- set {generatorstatus::%event-location%} to true
- if name of player's tool contains "&e&l✰&f✰✰✰✰":
- set {generatorlevel::%event-location%} to 1
- create a hologram with lines "&a%{generatortype::%event-location%}% &aGenerator" and "&e&l✰&f✰✰✰✰" at block above above event-block and store it in {generatorholograms::%event-location%}
- set {generatorstars::%event-location%} to "&e&l✰&f✰✰✰✰"
- else if name of player's tool contains "&e&l✰✰&f✰✰✰":
- set {generatorlevel::%event-location%} to 2
- set {generatorstars::%event-location%} to "&e&l✰✰&f✰✰✰"
- create a hologram with lines "&a%{generatortype::%event-location%}% &aGenerator" and "&e&l✰✰&f✰✰✰" at block above above event-block and store it in {generatorholograms::%event-location%}
- else if name of player's tool contains "&e&l✰✰✰&f✰✰":
- set {generatorlevel::%event-location%} to 3
- set {generatorstars::%event-location%} to "&e&l✰✰✰&f✰✰"
- create a hologram with lines "&a%{generatortype::%event-location%}% &aGenerator" and "&e&l✰✰✰&f✰✰" at block above above event-block and store it in {generatorholograms::%event-location%}
- else if name of player's tool contains "&e&l✰✰✰✰&f✰":
- set {generatorlevel::%event-location%} to 4
- set {generatorstars::%event-location%} to "&e&l✰✰✰✰&f✰"
- create a hologram with lines "&a%{generatortype::%event-location%}% &aGenerator" and "&e&l✰✰✰✰&f✰" at block above above event-block and store it in {generatorholograms::%event-location%}
- else if name of player's tool contains "&e&l✰✰✰✰✰":
- set {generatorlevel::%event-location%} to 5
- set {generatorstars::%event-location%} to "&e&l✰✰✰✰✰"
- create a hologram with lines "&a%{generatortype::%event-location%}% &aGenerator" and "&e&l✰✰✰✰✰" at block above above event-block and store it in {generatorholograms::%event-location%}
- remove 1 of player's tool from player
- else if name of player's tool contains "&6Magma Generator":
- add event-location to {generators::*}
- set {generatortype::%event-location%} to "Magma"
- set {generatordrops::%event-location%} to brown dye named "&eMagma Fragment" with lore "&7## Craftable & Tradeable ##" and "" and "&fUse this item to craft new generators" and "&for trade them for better equipment/gear" and "" and "&dUses: &d&lCrafting & Trading"
- set {generatorstatus::%event-location%} to true
- if name of player's tool contains "&e&l✰&f✰✰✰✰":
- set {generatorlevel::%event-location%} to 1
- create a hologram with lines "&a%{generatortype::%event-location%}% &aGenerator" and "&e&l✰&f✰✰✰✰" at block above above event-block and store it in {generatorholograms::%event-location%}
- set {generatorstars::%event-location%} to "&e&l✰&f✰✰✰✰"
- else if name of player's tool contains "&e&l✰✰&f✰✰✰":
- set {generatorlevel::%event-location%} to 2
- set {generatorstars::%event-location%} to "&e&l✰✰&f✰✰✰"
- create a hologram with lines "&a%{generatortype::%event-location%}% &aGenerator" and "&e&l✰✰&f✰✰✰" at block above above event-block and store it in {generatorholograms::%event-location%}
- else if name of player's tool contains "&e&l✰✰✰&f✰✰":
- set {generatorlevel::%event-location%} to 3
- set {generatorstars::%event-location%} to "&e&l✰✰✰&f✰✰"
- create a hologram with lines "&a%{generatortype::%event-location%}% &aGenerator" and "&e&l✰✰✰&f✰✰" at block above above event-block and store it in {generatorholograms::%event-location%}
- else if name of player's tool contains "&e&l✰✰✰✰&f✰":
- set {generatorlevel::%event-location%} to 4
- set {generatorstars::%event-location%} to "&e&l✰✰✰✰&f✰"
- create a hologram with lines "&a%{generatortype::%event-location%}% &aGenerator" and "&e&l✰✰✰✰&f✰" at block above above event-block and store it in {generatorholograms::%event-location%}
- else if name of player's tool contains "&e&l✰✰✰✰✰":
- set {generatorlevel::%event-location%} to 5
- set {generatorstars::%event-location%} to "&e&l✰✰✰✰✰"
- create a hologram with lines "&a%{generatortype::%event-location%}% &aGenerator" and "&e&l✰✰✰✰✰" at block above above event-block and store it in {generatorholograms::%event-location%}
- remove 1 of player's tool from player
- on break of smoker:
- if {generators::*} contains event-location:
- cancel drops
- if {generatortype::%event-location%} is "Plasma":
- set {_item} to smoker named "&6Plasma Generator &8[%{generatorstars::%event-location%}%&8]" with lore "&7Discovered by %player%" and "" and "&fSimply place the generator and allow" and "&fit to generate the specified items" and "" and "&dDrops: &d&lPlasma Fragment"
- drop 1 of {_item} at event-location without velocity
- else if {generatortype::%event-location%} is "Magma":
- set {_item} to smoker named "&6Magma Generator &8[%{generatorstars::%event-location%}%&8]" with lore "&7Discovered by %player%" and "" and "&fSimply place the generator and allow" and "&fit to generate the specified items" and "" and "&dDrops: &d&lMagma Fragment"
- drop 1 of {_item} at event-location without velocity
- remove event-location from {generators::*}
- delete {generatortype::%event-location%}
- delete {generatordrops::%event-location%}
- delete {generatorlevel::%event-location%}
- delete {generatorstars::%event-location%}
- delete {generatorstatus::%event-location%}
- delete holo {generatorholograms::%event-location%}
Add Comment
Please, Sign In to add comment