五月天青色头像情侣网名,国产亚洲av片在线观看18女人,黑人巨茎大战俄罗斯美女,扒下她的小内裤打屁股

歡迎光臨散文網(wǎng) 會(huì)員登陸 & 注冊(cè)

我的世界自定義發(fā)紅包系統(tǒng)指令教學(xué),玩家可以自定義金額和數(shù)量。

2022-12-09 23:24 作者:小鑫不會(huì)寫指令  | 我要投稿

自定義紅包系統(tǒng)

作者:?jiǎn)袅▎袅ㄐ■?/p>

介紹:本套指令可以實(shí)現(xiàn),玩家可以隨時(shí)隨地都可以發(fā)送紅包,因?yàn)榘l(fā)的紅包是平均的,所以搶到的紅包都是一樣的金額,原來(lái)我想做拼手氣紅包,可是因?yàn)閷?shí)力不足,最后只能做成這樣的,有能力的可以發(fā)視頻@我我想學(xué)習(xí)一下!

————————————————


前者指令

創(chuàng)建6個(gè)計(jì)分板分別是:

scoreboard objectives add 計(jì)時(shí) dummy

scoreboard objectives add 紅包 dummy

scoreboard objectives add 輸入 dummy

scoreboard objectives add 金額 dummy

scoreboard objectives add 數(shù)量 dummy

scoreboard objectives add 金幣 dummy

設(shè)置計(jì)分項(xiàng)“十”的分?jǐn)?shù)

scoreboard players set 十 輸入 10

(以上指令都是在聊天欄輸入)


==========================


①初始化玩家分?jǐn)?shù)


1.數(shù)量

scoreboard players add @a 數(shù)量 0

(循環(huán)/無(wú)條件/保持開啟)


2.金額

scoreboard players add @a 金額 0

(連鎖/無(wú)條件/保持開啟)


3.輸入

scoreboard players add @a 輸入 0

(連鎖/無(wú)條件/保持開啟)


4.計(jì)時(shí)

scoreboard players add @a 計(jì)時(shí) 0

(連鎖/無(wú)條件/保持開啟)


==========================


②綜合系統(tǒng)指令

1.丟蛋加分

execute @e[type=minecraft:egg] ~ ~ ~ scoreboard players add @p[r=4] 紅包 1

(循環(huán)/無(wú)條件/保持開啟)


2.刪除丟蛋原本音效

execute @e[type=minecraft:egg] ~ ~ ~ stopsound @p random.bow

(連鎖/無(wú)條件/保持開啟)


3.丟蛋新音效

execute @e[type=minecraft:egg] ~ ~ ~ playsound random.orb @p ~ ~ ~ 200 3

(連鎖/無(wú)條件/保持開啟)


4.kill雞蛋

execute @e[type=minecraft:egg] ~ ~ ~ kill @s

(連鎖/無(wú)條件/保持開啟)


5.低頭提示

execute @a[rxm=80,scores={紅包=0..29}] ~ ~ ~ title @s actionbar §l§6?已取消紅包菜單

(連鎖/無(wú)條件/保持開啟)


6.低頭音效

execute @a[rxm=80,scores={紅包=0..29}] ~ ~ ~ playsound beacon.deactivate @s ~ ~ ~ 200 30

(連鎖/無(wú)條件/保持開啟)


7.低頭初始化紅包分?jǐn)?shù)

execute @a[rxm=80,scores={紅包=!-1}] ~ ~ ~ scoreboard players set @s 紅包 -1

(連鎖/無(wú)條件/保持開啟)


8.紅包0..15t顯

execute @a[scores={紅包=0..15}] ~ ~ ~ titleraw @s actionbar {"rawtext":[{"text":"§l§c???自定義紅包¥

§r§c=========================

§r§g§o??紅包金額1k-9999金幣

???§3紅包數(shù)量1-20個(gè)§l§7§r

"},{"translate":"%%2%%3","with":{"rawtext":[{"selector":"@s[scores={紅包=0}]"},{"text":"§7"},{"text":""}]}},{"text":"§7"},{"translate":"%%2%%3","with":{"rawtext":[{"selector":"@s[scores={紅包=1}]"},{"text":"§a"},{"text":" ①"}]}},{"text":"§7"},{"translate":"%%2%%3","with":{"rawtext":[{"selector":"@s[scores={紅包=2}]"},{"text":"§a"},{"text":" ②"}]}},{"text":"§7"},{"translate":"%%2%%3","with":{"rawtext":[{"selector":"@s[scores={紅包=3}]"},{"text":"§a"},{"text":" ③"}]}},{"text":"§7"},{"translate":"%%2%%3","with":{"rawtext":[{"selector":"@s[scores={紅包=13}]"},{"text":"§6"},{"text":" 確認(rèn)"}]}},{"text":"§7"},{"text":"§c"},{"score":{"name":"@s","objective":"數(shù)量"}},{"text":"個(gè)紅包§r§7\n"},{"translate":"%%2%%3","with":{"rawtext":[{"selector":"@s[scores={紅包=4}]"},{"text":"§a"},{"text":" ④"}]}},{"text":"§7"},{"translate":"%%2%%3","with":{"rawtext":[{"selector":"@s[scores={紅包=5}]"},{"text":"§a"},{"text":" ⑤"}]}},{"text":"§7"},{"translate":"%%2%%3","with":{"rawtext":[{"selector":"@s[scores={紅包=6}]"},{"text":"§a"},{"text":" ⑥"}]}},{"text":"§7"},{"translate":"%%2%%3","with":{"rawtext":[{"selector":"@s[scores={紅包=14}]"},{"text":"§6"},{"text":" 確認(rèn)"}]}},{"text":"§7"},{"text":"§e"},{"score":{"name":"@s","objective":"金額"}},{"text":"金幣§7\n"},{"translate":"%%2%%3","with":{"rawtext":[{"selector":"@s[scores={紅包=7}]"},{"text":"§a"},{"text":" ⑦"}]}},{"text":"§7"},{"translate":"%%2%%3","with":{"rawtext":[{"selector":"@s[scores={紅包=8}]"},{"text":"§a"},{"text":" ⑧"}]}},{"text":"§7"},{"translate":"%%2%%3","with":{"rawtext":[{"selector":"@s[scores={紅包=9}]"},{"text":"§a"},{"text":" ⑨"}]}},{"text":"§c"},{"text":"? ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄§7\n"},{"translate":"%%2%%3","with":{"rawtext":[{"selector":"@s[scores={紅包=10}]"},{"text":"§6"},{"text":" ?═"}]}},{"text":"§7"},{"translate":"%%2%%3","with":{"rawtext":[{"selector":"@s[scores={紅包=11}]"},{"text":"§a"},{"text":" (0)"}]}},{"text":"§7"},{"translate":"%%2%%3","with":{"rawtext":[{"selector":"@s[scores={紅包=12}]"},{"text":"§4"},{"text":" ?"}]}},{"text":"§7"},{"translate":"%%2%%3","with":{"rawtext":[{"selector":"@s[scores={紅包=15}]"},{"text":"§a"},{"text":"§l??發(fā)送紅包"}]}},{"text":"§r§7\n"},{"text":"§o§d當(dāng)前輸入:§4§l "},{"score":{"name":"@s","objective":"輸入"}},{"text":"

§r§d???? ̄ ̄ ̄ ̄ ̄ ̄"}]}

(連鎖/無(wú)條件/保持開啟)


9.重置分?jǐn)?shù)

execute @a[scores={紅包=16}] ~ ~ ~ scoreboard players set @s 紅包 0

(連鎖/無(wú)條件/保持開啟)


10.低頭初始化輸入分?jǐn)?shù)

execute @a[rxm=80] ~ ~ ~ scoreboard players set @s 輸入 0

(連鎖/無(wú)條件/保持開啟)


11.超出輸入提示

execute @a[scores={輸入=999999..}] ~ ~ ~ title @s title §4超出輸入范圍

(連鎖/無(wú)條件/保持開啟)


12.超過(guò)輸入就重置

execute @a[scores={輸入=999999..}] ~ ~ ~ scoreboard players set @s 輸入 0

(連鎖/無(wú)條件/保持開啟)


==========================


扣除計(jì)時(shí)玩家分?jǐn)?shù)從而實(shí)現(xiàn)倒計(jì)時(shí)效果

execute @a[tag=發(fā)紅包,scores={計(jì)時(shí)=1..}] ~ ~ ~ scoreboard players remove @s 計(jì)時(shí) 1

(循環(huán)/無(wú)條件/保持開啟/延遲25)


==========================


1.檢測(cè)有“發(fā)紅包”標(biāo)簽的玩家

testfor @a[tag=發(fā)紅包]

(循環(huán)/無(wú)條件/保持開啟)


2.檢測(cè)到就將其他玩家的分?jǐn)?shù)初始化

實(shí)現(xiàn)有人發(fā)紅包時(shí)別人發(fā)不了紅包

execute @a[tag=!發(fā)紅包] ~ ~ ~ scoreboard players set @s 紅包 -1

(連鎖/有條件/保持開啟)


==========================


③輸入功能

1.給輸入1-9的玩家都先*10

execute @a[scores={紅包=1..9},rx=-80] ~ ~ ~ scoreboard players operation @s 輸入 *= 十 輸入

(循環(huán)/無(wú)條件/保持開啟)


然后在將玩家加1-9

2.加1

execute @a[scores={紅包=1},rx=-80] ~ ~ ~ scoreboard players add @s 輸入 1

(連鎖/無(wú)條件/保持開啟)


3.加2

execute @a[scores={紅包=2},rx=-80] ~ ~ ~ scoreboard players add @s 輸入 2

(連鎖/無(wú)條件/保持開啟)


4.加3

execute @a[scores={紅包=3},rx=-80] ~ ~ ~ scoreboard players add @s 輸入 3

(連鎖/無(wú)條件/保持開啟)


5.加4

execute @a[scores={紅包=4},rx=-80] ~ ~ ~ scoreboard players add @s 輸入 4

(連鎖/無(wú)條件/保持開啟)


6.加5

execute @a[scores={紅包=5},rx=-80] ~ ~ ~ scoreboard players add @s 輸入 4

(連鎖/無(wú)條件/保持開啟)


7.加6

execute @a[scores={紅包=6},rx=-80] ~ ~ ~ scoreboard players add @s 輸入 6

(連鎖/無(wú)條件/保持開啟)


8.加7

execute @a[scores={紅包=7},rx=-80] ~ ~ ~ scoreboard players add @s 輸入 7

(連鎖/無(wú)條件/保持開啟)


9.加8

execute @a[scores={紅包=8},rx=-80] ~ ~ ~ scoreboard players add @s 輸入 8

(連鎖/無(wú)條件/保持開啟)


10.加9

execute @a[scores={紅包=9},rx=-80] ~ ~ ~ scoreboard players add @s 輸入 9

(連鎖/無(wú)條件/保持開啟)


11.重置紅包分?jǐn)?shù)

execute @a[scores={紅包=1..9},rx=-80] ~ ~ ~ scoreboard players set @s 紅包 0

(連鎖/無(wú)條件/保持開啟)


12.加0也就是乘10

execute @a[scores={紅包=11},rx=-80] ~ ~ ~ scoreboard players operation @s 輸入 *= 十 輸入

(連鎖/無(wú)條件/保持開啟)


13.退格也就是除以10

execute @a[scores={紅包=10},rx=-80] ~ ~ ~ scoreboard players operation @s 輸入 /= 十 輸入

(連鎖/無(wú)條件/保持開啟)


14.重置也就是設(shè)置為0

execute @a[scores={紅包=12},rx=-80] ~ ~ ~ scoreboard players set @s 輸入 0

(連鎖/無(wú)條件/保持開啟)


15.重置紅包分?jǐn)?shù)

execute @a[scores={紅包=10..12},rx=-80] ~ ~ ~ scoreboard players set @s 紅包 0

(連鎖/無(wú)條件/保持開啟)


==========================


④檢測(cè)紅包數(shù)量

1.檢測(cè)輸入21后

execute @a[scores={紅包=13},rx=-80] ~ ~ ~ scoreboard players test @s 輸入 21 *

(循環(huán)/無(wú)條件/保持開啟)


2.就提示過(guò)大

execute @a[scores={紅包=13},rx=-80] ~ ~ ~ tellraw @s {"rawtext":[{"text":"§4§l數(shù)量過(guò)大不能>20個(gè)紅包"}]}

(連鎖/有條件/保持開啟)


3.檢測(cè)在1-20

execute @a[scores={紅包=13},rx=-80] ~ ~ ~ scoreboard players test @s 輸入 1 20

(連鎖/無(wú)條件/保持開啟)


4.數(shù)量=輸入

execute @a[scores={紅包=13},rx=-80] ~ ~ ~ scoreboard players operation @s 數(shù)量 = @s 輸入

(連鎖/有條件/保持開啟)


5.重置分?jǐn)?shù)

execute @a[scores={紅包=13},rx=-80] ~ ~ ~ scoreboard players set @s 輸入 0

(連鎖/無(wú)條件/保持開啟)


==========================


⑤檢測(cè)紅包金額

1.檢測(cè)在9999后

execute @a[scores={紅包=14},rx=-80] ~ ~ ~ scoreboard players test @s 輸入 9999 *

(循環(huán)/無(wú)條件/保持開啟)


2.就提示過(guò)大

execute @a[scores={紅包=14},rx=-80] ~ ~ ~ tellraw @s {"rawtext":[{"text":"§4§l數(shù)量過(guò)大不能>1w金幣"}]}

(連鎖/有條件/保持開啟)


3.檢測(cè)在1000-9998

execute @a[scores={紅包=14},rx=-80] ~ ~ ~ scoreboard players test @s 輸入 1000 9998

(連鎖/無(wú)條件/保持開啟)


4.就將金額=輸入

execute @a[scores={紅包=14},rx=-80] ~ ~ ~ scoreboard players operation @s 金額 = @s 輸入

(連鎖/有條件/保持開啟)


5.重置輸入分?jǐn)?shù)

execute @a[scores={紅包=14},rx=-80] ~ ~ ~ scoreboard players set @s 輸入 0

(連鎖/無(wú)條件/保持開啟)


==========================


⑥發(fā)紅包系統(tǒng)

1.檢測(cè)數(shù)量不足提示

execute @a[scores={紅包=15},rx=-80] ~ ~ ~ tellraw @s[scores={數(shù)量=..0}] {"rawtext":[{"text":"§l§c紅包數(shù)量必須大于0個(gè)!"}]}

(循環(huán)/無(wú)條件/保持開啟)


2.就重置分?jǐn)?shù)

execute @a[scores={紅包=15},rx=-80] ~ ~ ~ scoreboard players set @s[scores={數(shù)量=..0}] 紅包 0

(連鎖/有條件/保持開啟)


3.檢測(cè)金額過(guò)小就提示

execute @a[scores={紅包=15},rx=-80] ~ ~ ~ tellraw @s[scores={金額=..1001}] {"rawtext":[{"text":"§l§c紅包金額必須大于1k金幣!"}]}

(連鎖/無(wú)條件/保持開啟)


4.重置金額分?jǐn)?shù)

execute @a[scores={紅包=15},rx=-80] ~ ~ ~ scoreboard players set @s[scores={金額=..1000}] 紅包 0

(連鎖/有條件/保持開啟)


5.將金幣-金額

execute @a[scores={紅包=15},rx=-80] ~ ~ ~ scoreboard players operation @s 金幣 -= @s 金額

(連鎖/無(wú)條件/保持開啟)


6.>1就給標(biāo)簽

execute @a[scores={金幣=1..}] ~ ~ ~ tag @s[scores={紅包=15},rx=-80]?add 發(fā)紅包

(連鎖/無(wú)條件/保持開啟)


7.全服通告有人發(fā)紅包

say §l§a玩家§e @a[tag=發(fā)紅包] §c發(fā)紅包啦!§d跳+抬頭即可領(lǐng)取§b先到先得。

(連鎖/有條件/保持開啟)


8.<1就提示金幣不足

execute @a[scores={金幣=..0}] ~ ~ ~ title @s[scores={紅包=15},rx=-80]?title §4金幣不足!

(連鎖/無(wú)條件/保持開啟)


9.退還金幣

execute @a[scores={金幣=..0}] ~ ~ ~ scoreboard players operation @s 金幣 += @s 金額

(連鎖/有條件/保持開啟)


10.有標(biāo)簽玩家設(shè)置紅包為30分

execute @a[tag=發(fā)紅包] ~ ~ ~ scoreboard players set @s 紅包 30

(連鎖/無(wú)條件/保持開啟)


11.30分玩家顯示t顯

execute @a[scores={紅包=30}] ~ ~ ~ titleraw @s actionbar {"rawtext":[{"text":"§e§o查看紅包進(jìn)度

====================§r

§l§6玩家名稱:

"},{"selector":"@s"},{"text":"

§g剩余紅包余額:"},{"score":{"name":"@s","objective":"金額"}},{"text":"

§b剩余紅包數(shù)量:"},{"score":{"name":"@s","objective":"數(shù)量"}},{"text":"

§a搶紅包倒計(jì)時(shí):§4"},{"score":{"name":"@s","objective":"計(jì)時(shí)"}}]}

(連鎖/無(wú)條件/保持開啟)


12.有標(biāo)簽玩家計(jì)時(shí)設(shè)置30分

execute @a[scores={計(jì)時(shí)=-1},tag=發(fā)紅包] ~ ~ ~ scoreboard players set @s 計(jì)時(shí) 30

(連鎖/無(wú)條件/保持開啟)


13.重置紅包分?jǐn)?shù)

execute @a[scores={紅包=15},rx=-80] ~ ~ ~ scoreboard players set @s 紅包 0

(連鎖/無(wú)條件/保持開啟)


14.紅包沒(méi)時(shí)給玩家計(jì)時(shí)設(shè)置為0

execute @a[scores={數(shù)量=0},tag=發(fā)紅包] ~ ~ ~ scoreboard players set @s[scores={計(jì)時(shí)=0..}] 計(jì)時(shí) 0

(連鎖/無(wú)條件/保持開啟)


==========================


⑦計(jì)時(shí)管理

1.退回金幣提示

execute @a[scores={計(jì)時(shí)=0},tag=發(fā)紅包] ~ ~ ~ tellraw @s {"rawtext":[{"text":"§l§c本次紅包已結(jié)束§g已歸還剩余的"},{"score":{"name":"@s","objective":"金額"}},{"text":"金幣到你的賬戶上"}]}

(循環(huán)/無(wú)條件/保持開啟)


2.全服通告

say §l§a本次紅包已結(jié)束§a謝謝§d @a[scores={計(jì)時(shí)=0},tag=發(fā)紅包] §a的紅包,老板大氣!

(連鎖/有條件/保持開啟)


3.退回金幣

execute @a[scores={計(jì)時(shí)=0},tag=發(fā)紅包] ~ ~ ~ scoreboard players operation @s 金幣 += @s 金額

(連鎖/無(wú)條件/保持開啟)


4.初始化紅包分?jǐn)?shù)

execute @a[scores={計(jì)時(shí)=0},tag=發(fā)紅包] ~ ~ ~ scoreboard players set @s 紅包 -1

(連鎖/無(wú)條件/保持開啟)


5.初始化計(jì)分分?jǐn)?shù)

execute @a[scores={計(jì)時(shí)=0},tag=發(fā)紅包] ~ ~ ~ scoreboard players set @s 計(jì)時(shí) -1

(連鎖/無(wú)條件/保持開啟)


6.刪除發(fā)紅包標(biāo)簽

execute @a[tag=發(fā)紅包] ~ ~ ~ tag @s remove 發(fā)紅包

(連鎖/有條件/保持開啟)


7.刪除收紅包標(biāo)簽

tag @a remove 收紅包

(連鎖/有條件/保持開啟)


==========================


⑧玩家搶紅包系統(tǒng)

1.檢測(cè)有人發(fā)紅包

testfor @a[tag=發(fā)紅包]

(循環(huán)/無(wú)條件/保持開啟)


比較器?


2.檢測(cè)到就平均等于金額

execute @a[tag=發(fā)紅包] ~ ~ ~ scoreboard players operation 平均 輸入 = @s 金額

(脈沖/無(wú)條件/紅石控制)


3.在平均除以數(shù)量

execute @a[tag=發(fā)紅包] ~ ~ ~ scoreboard players operation 平均 輸入 /= @s 數(shù)量

(連鎖/有條件/保持開啟)


==========================


1.在檢測(cè)是否有人發(fā)紅包

testfor @a[tag=發(fā)紅包]

(循環(huán)/無(wú)條件/保持開啟)


比較器?


2.抬頭加跳玩家金幣加平均

execute @a[rx=-80,tag=!收紅包] ~ ~ ~ detect ~ ~-1 ~ air 0 scoreboard players operation @s 金幣 += 平均 輸入

(循環(huán)/無(wú)條件/紅石控制)


3.全服通告比如某某人搶到了紅包

execute @a[tag=!收紅包,rx=-80] ~ ~ ~ detect ~ ~-1 ~ air 0 tellraw @a {"rawtext":[{"text":"§d玩家?§e"},{"selector":"@a[tag=!收紅包,rx=-80]"},{"text":"§d?§6搶到了§c紅包!§a恭喜獲得§e"},{"score":{"name":"平均","objective":"輸入"}},{"text":"金幣"}]}

(連鎖/有條件/保持開啟)


4.在減去發(fā)紅包玩家的余額

execute @a[rx=-80,tag=!收紅包] ~ ~ ~ detect ~ ~-1 ~ air 0 scoreboard players operation @a[tag=發(fā)紅包] 金額 -= 平均 輸入

(連鎖/無(wú)條件/保持開啟)


5.紅包數(shù)量-1

execute @a[rx=-80,tag=!收紅包] ~ ~ ~ detect ~ ~-1 ~ air 0 scoreboard players remove @a[tag=發(fā)紅包] 數(shù)量 1

(連鎖/無(wú)條件/保持開啟)


6.搶到紅包音效

execute @a[rx=-80,tag=!收紅包] ~ ~ ~ detect ~ ~-1 ~ air 0 playsound random.levelup @s ~ ~ ~

(連鎖/無(wú)條件/保持開啟)


7.給沒(méi)標(biāo)簽的玩家跳加抬頭給予標(biāo)簽

execute @a[rx=-80,tag=!收紅包] ~ ~ ~ detect ~ ~-1 ~ air 0 tag @s add 收紅包

(連鎖/無(wú)條件/保持開啟)

————————————————

展示完畢!

我的世界自定義發(fā)紅包系統(tǒng)指令教學(xué),玩家可以自定義金額和數(shù)量。的評(píng)論 (共 條)

分享到微博請(qǐng)遵守國(guó)家法律
团风县| 遵义市| 蕲春县| 贵港市| 西充县| 景谷| 邢台县| 婺源县| 马鞍山市| 开化县| 五莲县| 阳西县| 明溪县| 枞阳县| 丰镇市| 阿瓦提县| 鄯善县| 宜宾县| 封丘县| 东兰县| 龙州县| 马关县| 四会市| 桂阳县| 察哈| 罗源县| 盐亭县| 东山县| 黄梅县| 冀州市| 德州市| 社会| 枣庄市| 江达县| 松溪县| 清涧县| 资讯 | 修文县| 徐水县| 甘德县| 荆门市|