246cd[可以更多]简易木剑

246cd[246命令方块]
首先创造以下积分版
/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循环抹除模式§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
冷却[延迟自己调]
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已关闭
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已关闭
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已关闭
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手持木剑触发
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已关闭
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]
低头关闭
title @a[scores={cd=1..},rx=90,rxm=85] actionbar §l§g『§r§l§4木§6剑§e菜§a单§3已§b关§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]}
标签为毁的前提
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模§a式§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
标签为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