Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # # # # # # # # # # # # # # # #
- # # # #
- # # DEVELOPER: SakuraGFX # #
- # # SCRIPTver: 2.1.2 # #
- # # VERSION: 1.2 # #
- # # # #
- # # # # # # # # # # # # # # # #
- options:
- # =========================================== #
- # config #
- # =========================================== #
- other: %player% is dead.
- potion: &f
- fall: &f
- blockexplosion: &f
- entityexplosion: &f
- lava: &f
- drown: &f
- # %player% - playername
- # %attacker% - attackername
- # %attacker's health% - attackerhealth
- # # # # # # # # # # # # # # # # # # # # # # # #
- # ____ _ _____ _ _ _ #
- # | _ \ ___ _ __ | |_ | ____|__| (_) |_ #
- # | | | |/ _ \| '_ \| __| | _| / _` | | __| #
- # | |_| | (_) | | | | |_ | |__| (_| | | |_ #
- # |____/ \___/|_| |_|\__| |_____\__,_|_|\__| #
- # #
- # # # # # # # # # # # # # # # # # # # # # # # #
- on death of player:
- if arg-1 is not set:
- if victim is player:
- set the death message to "{@other}"
- if damage was caused by attack:
- if victim is player:
- set the death message to "&c%player%&7&l<< &f%attacker%'s HP &e&l%attacker's health%"
- if damage was caused by potion:
- if victim is player:
- set the death message to "{@potion}"
- if damage was caused by fall:
- if victim is player:
- set the death message to "{@fall}"
- if damage was caused by block explosion:
- if victim is player:
- set the death message to "{@blockexplosion}"
- if damage was caused by entity explosion:
- if victim is player:
- set the death message to "{@entityexplosion}"
- if damage was caused by lava:
- if victim is player:
- set the death message to "{@lava}"
- if damage was caused by drown:
- if victim is player:
- set the death message to "{@drown}"
- #_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/#
- # #
- # Anti Spam Chat&Command #
- # #
- #_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/#
- #■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
- #==========#
- # 設定 #
- #==========#
- options:
- prefix: &7&l[&4AntiSpam&7&l]&r
- 警告文[chat]: &c連続でチャットをすることは出来ません!
- 警告文[command]: &c連続でコマンドを実行することは出来ません!
- クールダウン[chat]: 2 second
- クールダウン[command]: 2 second
- #■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
- #==========#
- # コード #
- #==========#
- on join:
- set {%player%cooldwon-chat} to now
- set {%player%cooldwon-command} to now
- on chat:
- difference between {%player%cooldwon-chat} and now is less than {@クールダウン[chat]}:
- cancel event
- send "{@prefix} {@警告文[chat]}" to player
- else:
- set {%player%cooldwon-chat} to now
- on command:
- difference between {%player%cooldwon-command} and now is less than {@クールダウン[command]}:
- cancel event
- send "{@prefix} {@警告文[command]}" to player
- else:
- set {%player%cooldwon-command} to now
- #===================#
- # #
- # Big Ender Chest #
- # #
- #===================#
- on right click:
- event-block is ender chest
- cancel event
- open virtual chest inventory with size 6 named "Big Ender Chest" to player
- set {_slot} to 0
- loop {EnderChest%player%::*}:
- set slot {_slot} of player's current inventory to loop-value
- add 1 to {_slot}
- on inventory close:
- inventory name of player's current inventory is "Big Ender Chest"
- clear {EnderChest%player%::*}
- set {_slot} to 0
- loop 54 times:
- add slot {_slot} of player's current inventory to {EnderChest%player%::*}
- add 1 to {_slot}
- #------------------#
- # ガチャポンスクリプト #
- #------------------#
- options:
- gatya.prefix: &6&l[&2&lガチャポン&6&l]&f
- gatya.name.1: ガチャ1の名前
- gatya.lore.1: ガチャ1の説明文
- gatya.cost.1: stone #アイテムのIDを入れる ※有料ガチャのコスト
- #-------------------------------------------------------------------------------------#
- command /gatya give <player> <text> <text> <number>:
- permission: gatya.admin
- trigger:
- if arg 2 is "weapon":
- if arg 3 is "free":
- give arg 4 of name tag named "&e{@gatya.name.1}&a[無料]" with lore "{@gatya.lore.1}" to arg 1
- send "{@gatya.prefix} : &b%player%&fが&b%arg 1%&fに『&e{@gatya.name.1}&a[無料]&f』をあげました!" to player and arg 1
- else if arg 3 is "charge":
- give arg 4 of name tag named "&e{@gatya.name.1}&c[有料]" with lore "{@gatya.lore.1}" to arg 1
- send "{@gatya.prefix} : &b%player%&fが&b%arg 1%&fに『&e{@gatya.name.1}&c[有料]&f』をあげました!" to player and arg 1
- on rightclick:
- held item is name tag
- if name of item is "&e{@gatya.name.1}&a[無料]":
- if lore of item is "{@gatya.lore.1}":
- remove 1 of held item from player
- set {_gatya} to random integer between 1 and 14
- if {_gatya} is between 1 and 5:
- give 1 of wooden sword to player
- play "ENTITY_PLAYER_LEVELUP" to player at volume 1
- send "{@gatya.prefix} : &e景品がインベントリに送られました" to player
- else if {_gatya} is between 5 and 8:
- give 1 of stone sword to player
- play "ENTITY_PLAYER_LEVELUP" to player at volume 1
- send "{@gatya.prefix} : &e景品がインベントリに送られました" to player
- else if {_gatya} is between 9 and 11:
- give 1 of iron sword to player
- play "ENTITY_PLAYER_LEVELUP" to player at volume 1
- send "{@gatya.prefix} : &e景品がインベントリに送られました" to player
- else if {_gatya} is between 12 and 13:
- give 1 of golden sword to player
- play "ENTITY_PLAYER_LEVELUP" to player at volume 1
- send "{@gatya.prefix} : &e景品がインベントリに送られました" to player
- else if {_gatya} is 14:
- give 1 of diamond sword to player
- play "ENTITY_PLAYER_LEVELUP" to player at volume 1
- send "{@gatya.prefix} : &e景品がインベントリに送られました" to player
- else if name of item is "&e{@gatya.name.1}&c[有料]":
- if lore of item is "{@gatya.lore.1}":
- if player has 1 of {@gatya.cost.1}:
- remove 1 of held item from player
- remove 1 of {@gatya.cost.1} from player's inventory
- set {_gatya} to random integer between 1 and 14
- if {_gatya} is between 1 and 5:
- give 1 of wooden sword to player
- play "ENTITY_PLAYER_LEVELUP" to player at volume 1
- send "{@gatya.prefix} : &e景品がインベントリに送られました" to player
- else if {_gatya} is between 5 and 8:
- give 1 of stone sword to player
- play "ENTITY_PLAYER_LEVELUP" to player at volume 1
- send "{@gatya.prefix} : &e景品がインベントリに送られました" to player
- else if {_gatya} is between 9 and 11:
- give 1 of iron sword to player
- play "ENTITY_PLAYER_LEVELUP" to player at volume 1
- send "{@gatya.prefix} : &e景品がインベントリに送られました" to player
- else if {_gatya} is between 12 and 13:
- give 1 of golden sword to player
- play "ENTITY_PLAYER_LEVELUP" to player at volume 1
- send "{@gatya.prefix} : &e景品がインベントリに送られました" to player
- else if {_gatya} is 14:
- give 1 of diamond sword to player
- play "ENTITY_PLAYER_LEVELUP" to player at volume 1
- send "{@gatya.prefix} : &e景品がインベントリに送られました" to player
- else:
- send "{@gatya.prefix} : &c必要コストを持っていません・・・" to player
- options:
- p: &8[&4Explosive Pickaxe&8]
- noperm: &cSorry, but you don't have the permission &f{@perm}
- perm: explosivepickaxe.get
- command /explosive:
- permission: {@perm}
- permission message: {@noperm}
- trigger:
- if player's tool is a pickaxe with lore "&8[&4Explosive&8]":
- send "{@p} &cYou are already holding a Pickaxe with &4Explosive &con!"
- else:
- if player's tool is a pickaxe:
- if player's balance is greater than 999:
- execute console command "eco take %player% 1000"
- send "{@p} &4Explosive &chas now been applied on your Pickaxe!"
- set lore of player's tool to "&8[&4Explosive&8]"
- else:
- send "{@p} &cYou don't have enough money to apply &4Explosive &con your Pickaxe! You need &f1K&c!"
- else:
- send "{@p} &cYou need to hold a pickaxe!"
- on break:
- if player's tool is a pickaxe with lore "&8[&4Explosive&8]":
- loop blocks in radius 2.9 around the targeted block:
- create a fake explosion at targeted block
- give loop-block to player
- set loop-block to air
- else:
- uncancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement