Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- permission: gm.use
- permission message: &4Sorry. &cYou do not have permission.
- refresh time: 10 seconds
- resetOnLoad: true
- broadcast: &6&lGlowstone Mountain &8- &7Glowstone mountain appeared at <your coords here>
- command /glowstonemountain [<text>]:
- permission: {@permission}
- permission message: {@permission message}
- aliases: gmo, glowstone, gmountain, glowstonem, glow
- trigger:
- if argument 1 is not set:
- send "&e&m--------[&r &6&lGlowstone Mountain &e&m]--------"
- send "&6- &e/gmo reset &6Reset the mountain"
- send "&6- &e/gmo pos1 &6Set the position 1 of the GM"
- send "&6- &e/gmo pos2 &6Set the position 2 of the GM"
- send "&e&m--------[&r &6&lGlowstone Mountain &e&m]--------"
- stop
- if argument 1 is "reset":
- if {gm.pos1} is set:
- if {gm.pos2} is set:
- loop blocks within {gm.pos1} to {gm.pos2}:
- set block at loop-block to glowstone block
- broadcast "{@broadcast}"
- stop
- else:
- send "&6- &eEither&6 pos1 &eor &6pos2 &eare missing"
- stop
- else:
- send "&6- &eEither &6pos1 &eor &6pos2 &eare missing"
- stop
- if argument 1 is "pos1":
- set {gm.pos1} to target block
- send "&6- &eGlowstone Mountain &6Pos1 &eset!"
- stop
- if argument 1 is "pos2":
- set {gm.pos2} to target block
- send "&6- &eGlowstone Mountain &6Pos2 &eset!"
- else:
- send "&e&m--------[&r &6&lGlowstone Mountain &e&m]--------"
- send "&6- &e/gmo reset &6Reset the mountain"
- send "&6- &e/gmo pos1 &6Set the position 1 of the GM"
- send "&6- &e/gmo pos2 &6Set the position 2 of the GM"
- send "&e&m--------[&r &6&lGlowstone Mountain &e&m]--------"
- stop
- every {gm.refreshtime} in world "world_nether":
- if {gm.pos1} is set:
- if {gm.pos2} is set:
- loop blocks within {gm.pos1} to {gm.pos2}:
- set block at loop-block to glowstone block
- broadcast "{@broadcast}"
- stop
- on load:
- set {gm.refreshtime} to {@refresh time} parsed as a timespan
- if {@refreshOnLoad} is "true":
- loop blocks within {gm.pos1} to {gm.pos2}:
- set block at loop-block to glowstone block
- on unload:
- set {gm.refreshtime} to {@refresh time} parsed as a timespan
- if {@refreshOnLoad} is "true":
- loop blocks within {gm.pos1} to {gm.pos2}:
- set block at loop-block to glowstone bloc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement