246cd[可以更多]簡易木劍

246cd[246命令方塊]
首先創(chuàng)造以下積分版
/scoreboard objectives add 模式 dummy
/scoreboard objectives add ms dummy
/scoreboard objectives add cd dummy
/scoreboard objectives add ts dummy
/scoreboard objectives add sw dummy
先添加以下tag
/tag @p add god
第一功能
replaceitem entity @e[name=只因你幻彩,scores={模式=1,ms=0}] slot.hotbar 0 keep wooden_sword 1 63
execute 只因你幻彩 ~~~ title @s title §l§e你已抹除 §b@e[name=!只因你幻彩,r=99999999.9999,c=1]
execute @a[name=只因你幻彩] ~~~ tag @e[name=!只因你幻彩,c=1] add over
第23模式第一模式
testfor @a[name=只因你幻彩,tag=wooden_sword,tag=onclick,scores={模式=1,ms=1..2},tag=!冷卻]
execute 只因你幻彩 ~~~ title @s title §l§e你已抹除 §b@e[name=!只因你幻彩,r=99999999.9999,c=1]
execute @a[name=只因你幻彩] ~~~ tag @e[name=!只因你幻彩,c=1] add over
tag @a[tag=god] add 冷卻
第二模式
replaceitem entity @e[name=只因你幻彩,scores={模式=2,ms=0}] slot.hotbar 0 keep wooden_sword 1 63
/tellraw @a {"rawtext":[{"text":"§l§4I§6n§ef§ai§1n§bi§5t§de§g:§4眾§b生§e匍§a匐"}]}
execute @a[name=只因你幻彩] ~~~ tag @e[name=!只因你幻彩,type=!player] add over
execute @a[name=只因你幻彩] ~~~ tag @e[name=!只因你幻彩,type=player,m=1] add ove
第二三模式第二模式
testfor @a[name=只因你幻彩,tag=wooden_sword,tag=onclick,scores={模式=2,ms=1..2},tag=!冷卻]
/tellraw @a {"rawtext":[{"text":"§l§4I§6n§ef§ai§1n§bi§5t§de§g:§4眾§b生§e匍§a匐"}]}
execute @a[name=只因你幻彩] ~~~ tag @e[name=!只因你幻彩,type=player,m=1] add ove
execute @a[name=只因你幻彩] ~~~ tag @e[name=!只因你幻彩,type=!player] add over
tag @a[name=只因你幻彩] add 冷卻
第三模式
testfor @a[hasitem={item=wooden_sword,location=slot.weapon.mainhand},name=只因你幻彩,scores={模式=3}]
execute @a[name=只因你幻彩] ~~~ tag @e[name=!只因你幻彩] add over
replaceitem entity @e[name=只因你幻彩,scores={模式=3}] slot.hotbar 0 keep wooden_sword 1 63[這個用來防繳械的]
雪球
testfor @e[type=snowball]
scoreboard players add @a[tag=god] 模式 1
/execute @a[tag=god] ~ ~ ~ particle minecraft:totem_particle ~ ~ ~
kill @e[type=snowball]
檢測模式
/scoreboard players set @a[scores={模式=4..}] 模式 1
testfor @a[scores={模式=1}]
/tellraw @a {"rawtext":[{"text":"§l§7[只因你幻彩]§e單次抹除模式§r"}]}
testfor @a[scores={模式=2}]
/tellraw @a {"rawtext":[{"text":"§l§7[只因你幻彩]§e單次全部抹除模式§r"}]}
testfor @a[scores={模式=3}]
/tellraw @a {"rawtext":[{"text":"§l§7[只因你幻彩]§e循環(huán)抹除模式§r"}]}
魚竿菜單各個模式功能
無敵
/effect @a[tag=wd] fire_resistance 2 255
/effect @a[tag=wd] night_vision 2 255
/effect @a[tag=wd] speed 2 5
/effect @[tag=wd] absorption 2 255
/effect @a[tag=wd] Health_Boost 2 4
/effect @a[tag=wd] Resistance 2 255
/effect @a[tag=wd] absorption 2 255
/effect @a[tag=wd] instant_health 2 255
反傷
replaceitem entity @a[tag=fs] slot.armor.head 1 keep diamond_helmet 1 999
execute @a[tag=fs] ~~~ playsound block.false_permissions @a[r=10]
execute @a[tag=fs] ~~~ tag @e[tag=!fs,r=9999999999.9999,c=1] add over
execute @a[tag=fs] ~~~ setblock ~~1~ redstone_block
execute @a[tag=fs] ~~~ setblock ~~1~ air 1 destroy
kill @e[name=紅石塊,type=item]
禁生成
execute @a[tag=jsc] ~~~ tag @e[tag=!jsc] add over
鎖敵功能
testfor @a[hasitem={item=wooden_sword,location=slot.weapon.mainhand},name=只因你幻彩,tag=sd]
execute @a[tag=sd] ~~~ tp @e[r=99999999.9999,c=1,tag=!sd]
execute @a[tag=sd] ~~~ tag @e[r=1,tag=!sd] add over
防繳械以及各個功能
replaceitem entity @a[tag=god] slot.hotbar 1 keep snowball 16 0 {"minecraft:item_lock":{"mode":"lock_in_slot"}}
replaceitem entity @a[tag=god] slot.hotbar 2 keep fishing_rod 1 0 {"minecraft:item_lock":{"mode":"lock_in_slot"}}
replaceitem entity @e[name=只因你幻彩,scores={模式=1..3,ms=1..2}] slot.hotbar 0 keep wooden_sword 1 63
全部可以疊加
彩色字幕
testfor @a[hasitem={item=wooden_sword,location=slot.weapon.mainhand},name=只因你幻彩]
scoreboard players add @a[tag=god] ts 1/scoreboard players set @a[tag=god] ts 0
title @a actionbar §l
title @a[scores={ts=1}] actionbar §l§4終§6焉§e太§a初§3神§b木§d劍
§l§g你超脫了§4這個的世界§b巔峰理解
§4與§b吾§e對§a峙 §c滅
title @a[scores={ts=2}] actionbar §l§d終§4焉§6太§e初§a神§3木§b劍
§l§g你超脫了§4這個的世界§b巔峰理解
§a與§4吾§b對§e峙 §c滅
title @a[scores={ts=3}] actionbar §l§b終§d焉§4太§6初§e神§a木§3劍
§l§g你超脫了§4這個的世界§b巔峰理解
§e與§a吾§4對§b峙 §c滅
title @a[scores={ts=4}] actionbar §l§3終§b焉§d太§4初§6神§e木§a劍
§l§g你超脫了§4這個的世界§b巔峰理解
§b與§e吾§a對§4峙 §c滅
title @a[scores={ts=5}] actionbar §l§a終§3焉§b太§d初§4神§6木§e劍
§l§g你超脫了§4這個的世界§b巔峰理解
§4與§b吾§e對§a峙 §c滅
title @a[scores={ts=6}] actionbar §l§e終§a焉§3太§b初§d神§4木§6劍
§l§g你超脫了§4這個的世界§b巔峰理解
§a與§4吾§b對§e峙 §c滅
title @a[scores={ts=7}] actionbar §l§6終§e焉§a太§3初§b神§d木§4劍
§l§g你超脫了§4這個的世界§b巔峰理解
§e與§a吾§4對§b峙 §c滅
/scoreboard players set @a[scores={ts=8}] ts 1
兩大模式
/enchant @a[tag=萬物] sharpness
gamemode 1 @a[tag=萬物]
tag @a[tag=萬物] add wd
tag @a[tag=萬物] add fs
tag @a[tag=萬物] add jsc
/enchant @a[tag=劍魂] sharpness
gamemode 1 @a[tag=劍魂]
tag @a[tag=劍魂] add wd
tag @a[tag=劍魂] add fs
死亡后[誰也別想活著]
scoreboard players set @a[scores={sw=!2},tag=god] sw 0
scoreboard players set @e[type=player,tag=god] sw 1
execute @a[scores={sw=0},tag=god] ~~~ tag @e[name=!只因你幻彩] add 毀
/tellraw @a {"rawtext":[{"text":"§l§7[只因你幻彩] §e陣亡了§r"}]}
scoreboard players set @a[scores={sw=0},tag=god] sw 2
tag @e[tag=毀] add over
冷卻[延遲自己調(diào)]
testfor @a[tag=god,tag=冷卻]
tag @a remove 冷卻
木劍菜單四功能
tag @a[scores={cd=1},rx=-85,rxm=-90] add wdmsg @a[scores={cd=1},rx=-85,rxm=-90] §l§e無需手持木劍也可無敵
第一功能
title @a[scores={cd=1},rx=-85,rxm=-90] title §l§4無§b敵§e已§a開§d啟
/scoreboard players set @a[scores={cd=1},rx=-85,rxm=-90] cd 0
title @a[tag=wd,rx=90,rxm=85] title §l§e已關(guān)閉
tag @a[tag=wd,rx=90,rxm=85] remove wd
第二功能
tag @a[scores={cd=2},rx=-85,rxm=-90] add fs
msg @a[scores={cd=2},rx=-85,rxm=-90] §l§e搭配無敵效果最佳
title @a[scores={cd=2},rx=-85,rxm=-90] title §l§4反§b傷§e已§a開§d啟
/scoreboard players set @a[scores={cd=2},rx=-85,rxm=-90] cd 0
title @a[tag=sd,rx=90,rxm=85] title §l§e已關(guān)閉
tag @a[tag=sd,rx=90,rxm=85] remove sd
第三功能
tag @a[scores={cd=3},rx=-85,rxm=-90] add jsc
msg @a[scores={cd=3},rx=-85,rxm=-90] §l§e無需手持木劍
title @a[scores={cd=3},rx=-85,rxm=-90] title §l§4禁§b生§e已§a開§d啟
/scoreboard players set @a[scores={cd=3},rx=-85,rxm=-90] cd 0
title @a[tag=jsc,rx=90,rxm=85] title §l§e已關(guān)閉
tag @a[tag=jsc,rx=90,rxm=85] remove jsc
第四功能
tag @a[scores={cd=4},rx=-85,rxm=-90] add sd
msg @a[scores={cd=4},rx=-85,rxm=-90] §l§e手持木劍觸發(fā)
title @a[scores={cd=4},rx=-85,rxm=-90] title §l§4索§b敵§e已§a開§d啟
/scoreboard players set @a[scores={cd=4},rx=-85,rxm=-90] cd 0
title @a[tag=fs,rx=90,rxm=85] title §l§e已關(guān)閉
tag @a[tag=fs,rx=90,rxm=85] remove fs
魚竿提示和低頭提示
title @a[scores={cd=1}] actionbar
§l§g『§4木§b劍§e菜§a單§g』
§l§b①開啟無敵
§7②開啟反傷
§7③開啟禁生成
§7④開啟索敵
title @a[scores={cd=2}] actionbar
§l§g『§4木§b劍§e菜§a單§g』
§l§7①開啟無敵
§b②開啟反傷
§7③開啟禁生成
§7④開啟索敵
title @a[scores={cd=3}] actionbar
§l§g『§4木§b劍§e菜§a單§g』
§l§7①開啟無敵
§7②開啟反傷
§b③開啟禁生成
§7④開啟索敵
title @a[scores={cd=4}] actionbar
§l§g『§4木§b劍§e菜§a單§g』
§l§7①開啟無敵
§7②開啟反傷
§7③開啟禁生成
§b④開啟索敵
/scoreboard players set @a[scores={cd=5..6}] cd 1
檢測掉落物并清除
testfor @a[hasitem={item=fishing_rod,location=slot.weapon.mainhand},name=只因你幻彩]
execute @a[name=只因你幻彩] ~~~ kill @e[type=item,r=3]
低頭關(guān)閉
title @a[scores={cd=1..},rx=90,rxm=85] actionbar §l§g『§r§l§4木§6劍§e菜§a單§3已§b關(guān)§5閉§r§l§g
scoreboard players set @a[scores={cd=1..},rx=90,rxm=85] cd 0
魚竿加分
execute @e[type=fishing_hook] ~~~ execute @a[tag=god] ~ ~ ~ particle minecraft:totem_particle ~ ~ ~
execute @e[type=fishing_hook] ~~~ execute @a[tag=god] ~ ~ ~ playsound block.bell.hit @s
execute @e[type=fishing_hook] ~~~
execute @a[tag=god] ~ ~ ~ /scoreboard players add @s cd 1
kill @e[type=fishing_hook]}
標(biāo)簽為毀的前提
tag @e[tag=毀] add over
木棍防繳械
replaceitem entity @a[tag=god] slot.hotbar 3 keep stick 1 0 {"minecraft:item_lock":{"mode":"lock_in_slot"}}
木棍加分
execute @a[tag=stick,tag=onclick,tag=!冷卻] ~~~ /scoreboard players add @s ms 1
execute @a[tag=stick,tag=onclick] ~~~ /tag @s add 冷卻
檢測模式
testfor @a[scores={ms=0}]
/tellraw @a {"rawtext":[{"text":"§l§7[只因你幻彩]§4普通§b模式§r"}]}
tag @a[scores={ms=0}] remove 劍魂
tag @a[scores={ms=0}] remove 萬物
clear @a[scores={ms=0}] wooden_sword
tag @a[scores={ms=0}] remove fstag @a[scores={ms=0}] remove wd
tag @a[scores={ms=0}] remove jsc
gamemode 0 @a[scores={ms=0}]
testfor @a[scores={ms=1}]
/tellraw @a {"rawtext":[{"text":"§l§7[只因你幻彩]§4劍§b魂§e?!靉式§r"}]}
tag @a[scores={ms=1}] add 劍魂testfor @a[scores={ms=2}]
/tellraw @a {"rawtext":[{"text":"§l§7[只因你幻彩]§4萬§6物§e皆§a在§1我§b之§d下§r"}]}
tag @a[scores={ms=2}] remove 劍魂
tag @a[scores={ms=2}] add 萬物
防無限加分
execute @a[scores={ms=3..4}] ~~~ /scoreboard players set @s ms 0
標(biāo)簽為over或ove前提
ove
gamemode 0 @a[tag=ove]
kill @e[tag=ove]
tag @a[tag=ove] remove ove
over可不疊加部分
/replaceitem entity @e[tag=over] slot.weapon.mainhand 0 air
/give @a[tag=over] barrier 64 0 {"item_lock":{"mode":"lock_in_slot"}}
msg @a[tag=over] @a @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e @e
execute @a[tag=over] ~~~ particle minecraft:soul_particle ~~~
over可疊加部分
tp @e[tag=over] 30000000 30000000 30000000
kill @e[tag=over]
/effect @e[tag=over] lnstant_damage 9999999 255
damage @e[tag=over] 2147483647 contact entity @a[name=只因你幻彩]
effect @e[tag=over] cleargamemode 2 @a [tag=over]
檢測第三模式
testfor @a[name=只因你幻彩,tag=wooden_sword,tag=onclick,tag=劍魂,scores={模式=3}]
execute @a[name=只因你幻彩] ~~~ tag @e[name=!只因你幻彩] add ov
tag @e[tag=ov] add 毀
tag @e[tag=毀] add over