**扣费:
command: /suicide
type:
- ADD_COST
- COOLDOWN
cooldown: 10
cooldown-message: '&c不要频繁**!'
cost: 100
跃迁:
command: /yq
type: RUN_AS_OPERATOR
runcmd:
# - $Script$%if%%worldguard_region_name%!=区域名 #这是判定所在wg区域的脚本,为了避免原地tp,需要可启用
- '%PlayerOptions%addPotionEffect:CONFUSION:180'
- '%PlayerOptions%addPotionEffect:BLINDNESS:180:10'
- '%PlayerOptions%addPotionEffect:NIGHT_VISION:180:10'
- $delay$/title $player title "&0[&e跃迁装置预备&0] &43.."
- '%PlayerOptions%spawnParticle: PORTAL:300'
- '%PlayerOptions%playSound: BLOCK_STONE_BUTTON_CLICK_ON'
- $delay$/title $player title "&0[&e跃迁装置预备&0] &c2.."
- '%PlayerOptions%spawnParticle: PORTAL:300'
- '%PlayerOptions%playSound: BLOCK_STONE_BUTTON_CLICK_ON'
- $delay$/title $player title "&0[&e跃迁装置预备&0] &a1.."
- '%PlayerOptions%spawnParticle: PORTAL:300'
- '%PlayerOptions%playSound: BLOCK_STONE_BUTTON_CLICK_ON'
- $delay$/title $player title "&0[&e跃迁装置预备&0] &e跃迁已开启!!"
- '%PlayerOptions%playSound: BLOCK_END_PORTAL_SPAWN:1:2'
- $delay$/tp x x x #传送到的地方
- '$delay$%PlayerOptions%spawnParticle: PORTAL:300'
# - $Script$%else%
# - $text$&c你已经在xxx了! #已经在的地方,如果上面开了wg开启这一条
cost: 0
delaytimer: 1
delaytimer_format: SECONDS
permission-required: true
permission-node: xxxx #所需权限
permission-error: '&a$player! , &2以你现在的能力不足以驶向xxxx!' #没权限提示的信息
register: true
天基武器定位:
command: /xxxx #你要的指令
type: RUN_AS_OPERATOR
text:
- '%Repeat%10%Text'
runcmd:
- $delay$%Repeat%10%/playsound minecraft:entity.cat.hiss ambient @a[r=50] ~ ~ ~
10 0
- /title @a[r=50] actionbar [{"text":"&4你处于定位范围内!"}]
- /title @a[r=50] subtitle [{"text":"&3&l定位中(10%)"}]
- /title @a[r=50] title [{"text":"&6&l天基武器正在&c&l&n定位"}]
- $delay$%Repeat%10%/playsound minecraft:entity.cat.hiss ambient @a[r=50] ~ ~ ~
10 0
- /title @a[r=50] actionbar [{"text":"&4你处于定位范围内!"}]
- /title @a[r=50] subtitle [{"text":"&3&l定位中(20%)"}]
- /title @a[r=50] title [{"text":"&6&l天基武器正在&c&l&n定位"}]
- $delay$%Repeat%10%/playsound minecraft:entity.cat.hiss ambient @a[r=50] ~ ~ ~
10 0
- /title @a[r=50] actionbar [{"text":"&4你处于定位范围内!"}]
- /title @a[r=50] subtitle [{"text":"&3&l定位中(30%)"}]
- /title @a[r=50] title [{"text":"&6&l天基武器正在&c&l&n定位"}]
- $delay$%Repeat%10%/playsound minecraft:entity.cat.hiss ambient @a[r=50] ~ ~ ~
10 0
- /title @a[r=50] actionbar [{"text":"&4你处于定位范围内!"}]
- /title @a[r=50] subtitle [{"text":"&3&l定位中(40%)"}]
- /title @a[r=50] title [{"text":"&6&l天基武器正在&c&l&n定位"}]
- $delay$%Repeat%10%/playsound minecraft:entity.cat.hiss ambient @a[r=50] ~ ~ ~
10 0
- /title @a[r=50] actionbar [{"text":"&4你处于定位范围内!"}]
- /title @a[r=50] subtitle [{"text":"&3&l定位中(50%)"}]
- /title @a[r=50] title [{"text":"&6&l天基武器正在&c&l&n定位"}]
- $delay$%Repeat%10%/playsound minecraft:entity.cat.hiss ambient @a[r=50] ~ ~ ~
10 0
- /title @a[r=50] actionbar [{"text":"&4你处于定位范围内!"}]
- /title @a[r=50] subtitle [{"text":"&3&l定位中(60%)"}]
- /title @a[r=50] title [{"text":"&6&l天基武器正在&c&l&n定位"}]
- $delay$%Repeat%10%/playsound minecraft:entity.cat.hiss ambient @a[r=50] ~ ~ ~
10 0
- /title @a[r=50] actionbar [{"text":"&4你处于定位范围内!"}]
- /title @a[r=50] subtitle [{"text":"&3&l定位中(70%)"}]
- /title @a[r=50] title [{"text":"&6&l天基武器正在&c&l&n定位"}]
- $delay$%Repeat%10%/playsound minecraft:entity.cat.hiss ambient @a[r=50] ~ ~ ~
10 0
- /title @a[r=50] actionbar [{"text":"&4你处于定位范围内!"}]
- /title @a[r=50] subtitle [{"text":"&3&l定位中(80%)"}]
- /title @a[r=50] title [{"text":"&6&l天基武器正在&c&l&n定位"}]
- $delay$%Repeat%10%/playsound minecraft:entity.cat.hiss ambient @a[r=50] ~ ~ ~
10 0
- /title @a[r=50] actionbar [{"text":"&4你处于定位范围内!"}]
- /title @a[r=50] subtitle [{"text":"&3&l定位中(90%)"}]
- /title @a[r=50] title [{"text":"&6&l天基武器正在&c&l&n定位"}]
- $delay$%Repeat%10%/playsound minecraft:entity.cat.hiss ambient @a[r=50] ~ ~ ~
10 0
- /title @a[r=50] actionbar [{"text":"&4你处于定位范围内!"}]
- /title @a[r=50] subtitle [{"text":"&3&l定位中(100%)"}]
- /title @a[r=50] title [{"text":"&6&l天基武器正在&c&l&n定位"}]
- $delay$%Repeat%10%/playsound minecraft:entity.cat.hiss ambient @a[r=50] ~ ~ ~
10 0
- /title @a[r=50] actionbar [{"text":"&4你已无处可躲!"}]
- /title @a[r=50] subtitle [{"text":"&3&l你已被定位"}]
- /title @a[r=50] title [{"text":"&6&l定位完成"}] #你要干什么可以自己在下面加
cost: 0
delaytimer: 1
delaytimer_format: SECONDS
假装有op:
command: /opme
type: RUN_COMMAND
text:
- ''
runcmd:
- $Script$%if%$PlayerData%isOP%!=true
- $text$&r已将$player设为管理员
- $Script$%PlayerData%isOP=true
- $Script$%elseif%$PlayerData%isOP%==true
- $text$&r已夺去$player的管理员权限
- $Script$%PlayerData%isOP=false
cost: 0
delaytimer: 5
permission-required: false
register: true
抽奖:
command: /choujiang
type:
- RUN_AS_OPERATOR
text:
- $delay$&cText of the command &a32
runcmd:
- $Script$%if%%vault_eco_balance%<5000
- $text$&c余额不足!
- /eco take $player 5000
- $broadcasttext$&e$player&a即将向某个玩家送出一个&6炽热矿粉末&a,谁会中奖呢?
- '%TempVariable%sjwj=$randomplayer'
- $delay$<5>/title @a title [{"text":"sjwj","color":"green","bold":true}]
- $text$%sound_all_block_note_bass-1-0.5%
- '%TempVariable%sjwj=$randomplayer'
- $delay$<5>/title @a title [{"text":"sjwj","color":"green","bold":true}]
- $text$%sound_all_block_note_bass-1-0.6%
- '%TempVariable%sjwj=$randomplayer'
- $delay$<5>/title @a title [{"text":"sjwj","color":"green","bold":true}]
- $text$%sound_all_block_note_bass-1-0.7%
- '%TempVariable%sjwj=$randomplayer'
- $delay$<5>/title @a title [{"text":"sjwj","color":"green","bold":true}]
- $text$%sound_all_block_note_bass-1-0.8%
- '%TempVariable%sjwj=$randomplayer'
- $delay$<5>/title @a title [{"text":"sjwj","color":"green","bold":true}]
- $text$%sound_all_block_note_bass-1-0.9%
- '%TempVariable%sjwj=$randomplayer'
- $delay$<5>/title @a title [{"text":"sjwj","color":"green","bold":true}]
- $text$%sound_all_block_note_bass-1-1%
- '%TempVariable%sjwj=$randomplayer'
- $delay$<5>/title @a title [{"text":"sjwj","color":"green","bold":true}]
- $text$%sound_all_block_note_bass-1-1.1%
- '%TempVariable%sjwj=$randomplayer'
- $delay$<5>/title @a title [{"text":"sjwj","color":"green","bold":true}]
- $text$%sound_all_block_note_bass-1-1.2%
- '%TempVariable%sjwj=$randomplayer'
- $delay$<5>/title @a title [{"text":"sjwj","color":"green","bold":true}]
- $text$%sound_all_block_note_bass-1-1.3%
- '%TempVariable%sjwj=$randomplayer'
- $delay$<5>/title @a title [{"text":"sjwj","color":"green","bold":true}]
- $text$%sound_all_block_note_bass-1-1.4%
- '%TempVariable%sjwj=$randomplayer'
- $delay$<5>/title @a title [{"text":"sjwj","color":"green","bold":true}]
- $text$%sound_all_block_note_bass-1-1.5%
- '%TempVariable%sjwj=$randomplayer'
- $delay$<5>/title @a title [{"text":"sjwj","color":"green","bold":true}]
- $text$%sound_all_block_note_bass-1-1.6%
- '%TempVariable%sjwj=$randomplayer'
- $delay$<5>/title @a title [{"text":"sjwj","color":"green","bold":true}]
- $text$%sound_all_block_note_bass-1-1.7%
- '%TempVariable%sjwj=$randomplayer'
- $delay$<5>/title @a title [{"text":"sjwj","color":"green","bold":true}]
- $text$%sound_all_block_note_bass-1-1.8%
- '%TempVariable%sjwj=$randomplayer'
- $delay$<20>/title @a title [{"text":"sjwj","color":"green","bold":true}]
- $text$%sound_all_block_note_bass-1-1.9%
- '%TempVariable%sjwj=$randomplayer'
- $delay$<20>/title @a title [{"text":"sjwj","color":"green","bold":true}]
- $text$%sound_all_block_note_bass-1-2%
- '%TempVariable%sjwj=$randomplayer'
- $delay$<20>/title @a title [{"text":"sjwj","color":"gold","bold":true}]
- $text$%sound_all_entity_enderdragon_ambient-1-0%
- /bc &6&lsjwj&a&l中奖了!
- /中奖后执行的指令,抽中的玩家请使用sjwj变量 #需要PlaceholderAPI支持和修改过的sound扩展
|