Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Skript made by Torciv
- # Suscribe to https://www.youtube.com/channel/UChv-5Sdg58mW_s4D32fHmkg
- #
- # Looking for a cool factions server! Join pvp.overclaims.com
- # Start of the world will be 3/12/2016
- #
- # Options config:
- #
- # Item(1,2,3,4,5,6,7,8,9) is the item you want to put on the custom craft
- #
- # ---------- Craft view format ------------
- #
- # item1 item2 item3
- # item4 item5 item6
- # item7 item8 item9
- #
- # -----------------------------------------
- #
- # permission if you want to add a permission to only make players with that permission craft the item and use it.
- # Do not change the permission! - Just add it to your permission plugin
- #
- # Craft: genwall.craft -- This is the permission to craft
- # Use: genwall.use -- This is the permission to use the item and gen walls
- # Command: genwall.admin -- This is the permission to use the command /gengive <player> <amount>
- #
- # noperm >> is the message sned to all players on craft if they don't have permission to craft it
- # Lore >> is the lore you want to add to your custom item
- # Block >> is the block you want gen
- # Time >> is the time frame to gen a new block
- # Timetype >> is what you want to use seconds or ticks
- #
- # IMPORTANT! If you put 1 in time you must put on timetype -- 'second' or 'tick' without 's'
- #
- # BlockPlaced >> is the block type you want them to place to gen the wall
- # Holding! >> You must change this to the type of block placed.
- # For instance, if you change BlockPlaced: 'lava' to 'dirt' You must change also Holding to 'dirt'.
- # It is also the item to craft
- #
- # name >> is the name you want the GenWall Bucket to be
- # prefix >> prefix of the skript that will be shown at the start of the given message! (Player will see it)
- # sound >> Sound that player will hear when they are given a GenWall Bucket
- # All sounds of minecraft: page >> http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/1571574-all-minecraft-playsound-file-names-1-9
- options:
- item1: air
- item2: empty bucket
- item3: air
- item4: lapis block
- item5: lava bucket
- item6: magma cream
- item7: obsidian
- item8: obsidian
- item9: obsidian
- noperm: &c&l(!) &cYou don't have permission to craft that.
- name: &9&l&ko&6&lGen&e&lBucket&9&l&ko
- lore: &cWall generator
- block: obsidian
- time: 46
- timetype: ticks
- blockplaced: lava
- holding: lava bucket
- prefix: &7&l[&a&lGen&b&lWall&7&l]
- sound: random.levelup
- # CraftItem
- on script load:
- register new shaped recipe for {@holding} named "{@name}" with lore "{@lore}" using {@item1}, {@item2}, {@item3}, {@item4}, {@item5}, {@item6}, {@item7}, {@item8}, {@item9}
- on craft of {@holding}:
- player does not have permission "genwall.craft"
- cancel event
- send "{@noperm}" to the player
- # Command
- command /gengive <player> <number>:
- usage: /gengive <player> <amount>
- description: &eGive to a player an amount of X GenWall Buckets!
- executable by: players
- permission: genwall.admin
- permission message: &eYou don't have permission to do that!
- trigger:
- if arg 1 is a player:
- if arg 2 is a number:
- set {_player} to arg 1
- set {_amount} to arg 2
- set {_item} to {@holding} named "{@name}" with lore "{@lore}"
- loop {_amount} times:
- add {_item} to {_player}'s inventory
- play raw sound "{@sound}" at {_player} with pitch 1 volume 1
- send "{@prefix} You have been given %arg 2% GenWall Buckets" to {_player}
- command /gengiveall <number>:
- usage: /gengiveall <amount>
- description: &eGive to all online players an amount of X GenWall Buckets!
- executable by: players
- permission: genwall.admin
- permission message: &eYou don't have permission to do that!
- trigger:
- if arg 1 is a number:
- set {_amount} to arg 1
- set {_item} to {@holding} named "{@name}" with lore "{@lore}"
- loop {_amount} times:
- add {_item} to all players
- play raw sound "{@sound}" at players with pitch 1 volume 1
- broadcast "{@prefix} You have been given %arg 1% GenWall Buckets"
- send "{@prefix} All online players have been given %arg 1% GenWall Buckets" to player
- # GENWALL
- on place of {@blockplaced}:
- player has permission "genwall.use"
- if player is holding a {@holding} named "{@name}" with lore "{@lore}":
- set block to {@block}
- Loop 256 times:
- if block loop-number below event-block is air:
- wait {@time} {@timetype}
- set block loop-number below event-block to {@block}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement