我的世界計(jì)算機(jī)(指令版)教學(xué)超級(jí)簡(jiǎn)單,一看就會(huì)。

我的世界計(jì)算機(jī)指令
————————————————
作者:?jiǎn)袅▎袅ㄐ■?/p>
介紹:可以在游戲內(nèi)實(shí)現(xiàn)加減乘除功能,原理簡(jiǎn)單,適合萌新練手,熟練之后可以自己加些音效提示語(yǔ),一鍵切換加減乘除等功能,完善指令,希望本套指令對(duì)你有所幫助~
————————————————
創(chuàng)建計(jì)分板
scoreboard objectives add 計(jì)算機(jī) dummy
(聊天欄輸入)
給計(jì)分項(xiàng)“十”設(shè)置為10分
scoreboard players set 十 計(jì)算機(jī) 10
(聊天欄輸入)
==========================
輸入a清除輸入指令
scoreboard players set 輸入a 計(jì)算機(jī) 0
(脈沖/無(wú)條件/紅石控制)
輸入a刪減鍵指令
scoreboard players operation 輸入a 計(jì)算機(jī) /= 十 計(jì)算機(jī)
(脈沖/無(wú)條件/紅石控制)
輸入a0到9第一層指令
scoreboard players operation 輸入a 計(jì)算機(jī) *= 十 計(jì)算機(jī)
(脈沖/無(wú)條件/紅石控制)
輸入a1+到9第二層指令
(0不用管因?yàn)闆](méi)有意義)
例:當(dāng)對(duì)應(yīng)1時(shí)
scoreboard players add 輸入a 計(jì)算機(jī) 1
(連鎖/無(wú)條件/保持開(kāi)啟)
例:當(dāng)對(duì)應(yīng)2時(shí)
scoreboard players add 輸入a 計(jì)算機(jī) 2
(連鎖/無(wú)條件/保持開(kāi)啟)
==========================
輸入b清除輸入指令
scoreboard players set 輸入b 計(jì)算機(jī) 0
(脈沖/無(wú)條件/紅石控制)
輸入b刪減鍵指令
scoreboard players operation 輸入b 計(jì)算機(jī) /= 十 計(jì)算機(jī)
(脈沖/無(wú)條件/紅石控制)
輸入b0到9第一層指令
scoreboard players operation 輸入b 計(jì)算機(jī) *= 十 計(jì)算機(jī)
(脈沖/無(wú)條件/紅石控制)
輸入b1+到9第二層指令
(0不用管因?yàn)闆](méi)有意義)
例:當(dāng)對(duì)應(yīng)1時(shí)
scoreboard players add 輸入b 計(jì)算機(jī) 1
(連鎖/無(wú)條件/保持開(kāi)啟)
例:當(dāng)對(duì)應(yīng)2時(shí)
scoreboard players add 輸入b 計(jì)算機(jī) 2
(連鎖/無(wú)條件/保持開(kāi)啟)
==========================
計(jì)算后面對(duì)應(yīng)的指令
結(jié)果標(biāo)題顯示
titleraw @a[r=10] title {"rawtext":[
{"text":"§o計(jì)算結(jié)果="},
?{"score":{"name":"結(jié)果","objective":"計(jì)算機(jī)"}}
]}
(脈沖/無(wú)條件/保持開(kāi)啟)
輸入a初始化
scoreboard players set 輸入a 計(jì)算機(jī) 0
(連鎖/無(wú)條件/保持開(kāi)啟)
輸入b初始化
scoreboard players set 輸入b 計(jì)算機(jī) 0
(連鎖/無(wú)條件/保持開(kāi)啟)
==========================
t顯
titleraw @a[r=10] actionbar {"rawtext":[
{"text":"§l§b計(jì)算機(jī)§f
"},
?{"score":{"name":"輸入a","objective":"計(jì)算機(jī)"}},{"text":"×"},{"score":{"name":"輸入b","objective":"計(jì)算機(jī)"}},{"text":"="},{"score":{"name":"結(jié)果","objective":"計(jì)算機(jī)"}}
]}
(循環(huán)/無(wú)條件/保持開(kāi)啟)
==========================
輸入a=結(jié)果
scoreboard players operation 結(jié)果 計(jì)算機(jī) = 輸入a 計(jì)算機(jī)
(循環(huán)/無(wú)條件/保持開(kāi)啟)
在將輸入b與結(jié)果相加
scoreboard players operation 結(jié)果 計(jì)算機(jī) *= 輸入b 計(jì)算機(jī)
(連鎖/無(wú)條件/保持開(kāi)啟)
————————————————
展示完畢!