最美情侣中文字幕电影,在线麻豆精品传媒,在线网站高清黄,久久黄色视频

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

【我的世界】售賣與回收的商店

2023-06-09 20:55 作者:還沒想好取什么名2  | 我要投稿

本視頻是免窮舉商店指令的教學(xué),非首發(fā)。

-無需每個售賣點窮舉三四個命令塊,只需要

設(shè)置價格和放置商品就可

-對比普通的商店,無需查物品的英文id

-不會吞幣,有顯示和音效

-回收商店是半免舉


一、商店

聊天欄輸入:

/scoreboard objectives add 價格 dummy

/scoreboard objectives add 金幣2 dummy

/scoreboard objectives add 金幣 dummy

指令區(qū):

①execute @a ~~~ scoreboard players operation @s 金幣2 = @s 金幣

②execute @a[scores={價格=1..}] ~~~ scoreboard players operation @s 金幣2 -= @s 價格

③title @a[scores={金幣2=..-1,價格=0..}] title §l§c金幣不足!

④title @a[scores={金幣2=0..,價格=0..}] title §l§a購買成功?

⑤execute @a[scores={金幣2=0..,價格=0..}] ~~~ scoreboard players operation @s 金幣 -= @s 價格

⑥execute @a[scores={金幣2=0..,價格=0..}] ~~~ clone ~~-3~ ~~-3~ ~~2~

⑦execute @a[scores={金幣2=0..,價格=0..}] ~~~ setblock ~~2~ air 0 destroy

⑧kill @e[type=item,name="木桶"]

⑨execute @a[scores={金幣2=0..,價格=0..}] ~~~ title @s subtitle §d @e[type=item,dy=2,c=1] §f已放入您的背包

⑩execute @a[scores={金幣2=0..,價格=0..}] ~~~ playsound random.levelup @s

?scoreboard players reset @a 價格

售賣點處:

scoreboard players set @p[dy=2] 價格 數(shù)字


二、回收

聊天欄:/scoreboard objectives add 回收 dummy

指令區(qū):

①execute @a[scores={回收=1..}] ~~~ title @s title §l§c回收失敗

②execute @a[scores={回收=1..}] ~~~ testforblocks ~~-1~ ~~-1~ ~~-3~

③execute @a[scores={回收=1..}] ~~~ scoreboard players operation @s 金幣 += @s 回收

④execute @a[scores={回收=1..}] ~~~ title @s title §l§a回收成功?

⑤execute @a[scores={回收=1..}] ~~~ playsound random.levelup @s

⑥execute @a[scores={回收=1..}] ~~~ setblock ~~-1~ barrel 1

⑦scoreboard players reset @a 回收

回收點處的指令:

scoreboard players set @p[dy=2] 回收 數(shù)字


?注意命令塊的有無條件和箭頭方向

?給指令區(qū)設(shè)置常加載區(qū)域



【我的世界】售賣與回收的商店的評論 (共 條)

分享到微博請遵守國家法律
浪卡子县| 潼南县| 庄浪县| 上饶县| 新宁县| 恩施市| 远安县| 霍山县| 固镇县| 永济市| 汽车| 萨迦县| 中西区| 潜山县| 塔河县| 河北省| 日土县| 枣阳市| 府谷县| 文昌市| 呼玛县| 嘉义市| 乳山市| 酉阳| 卫辉市| 博客| 老河口市| 兴安县| 和林格尔县| 溧阳市| 聂拉木县| 泾川县| 读书| 马公市| 桐城市| 仙居县| 凤庆县| 民和| 东丰县| 洪湖市| 大渡口区|