嘿!大家好哈,這是我製作的一個生存用的小玩意,一本有意思的書.
本數據包給遊戲添加了幾個小功能[實體是一本書]:
1.可以回收原版的部分野外生存所掉落的物品以及礦物;
針對一些原版的掉落物以及各類礦物的回收機制
2.可以購買一些生存必須的原版食物(節省農作物種植環節)
對於不喜歡浪費時間在農作物種植的一種食物機制
3.一些可在生存用的道具;
此處不建議玩家獲取道具,但是唯一的 凋零蛋 可以通過購買正常獲取(在生存中的一個虐怪彩蛋)
4.添加了一個世界計時清理器.
世界定時1200秒自動循環清理掉落物(類似於清掃機制)
5.新增進度系統;
為本數據包增添了一個進度系統,其中包含(存款進度/玩家死亡進度/擊殺進度)
明細可查看最後圖片進度部分.
6.新增一個鐵傀儡刷怪蛋;
購買鐵傀儡刷怪蛋後,右鍵召喚鐵傀儡一隻,這隻鐵傀儡可以產出多種物品,但需要配置.配置以加入書中以便自行安排.書中詳細記錄了該標記鐵傀儡可以生成的物品,當不用時最好點擊書中的關閉按鈕,避免遊戲卡頓或掉線(尤其在進行維度傳送前切記關閉正在執行的生成條件),若完全不再需要可手動擊殺該標記鐵傀儡且無掉落.
***** 因進度系統的加入,附帶了語言包,主要只包含了進度部分的語言類型,所以在使用本數據包時可以將語言包放進存檔目錄下,也可以放在材質包文件夾下並置頂加載即可. *****
#這是主體函數:
execute as @a run clear @a minecraft:bowl
execute as @a run function trade:book/texts
execute as @a at @s run function trade:ing/clean
execute as @a run function trade:ing/buy_0
execute as @a run function trade:ing/props_0
scoreboard players operation §e§l存款§f: Information = @p Money
scoreboard players operation §b§l清理§f: Information = @p Cleantime
execute as @e[tag=WitherEgg] at @e[tag=WitherEgg] run function trade:ing/wither_0
execute as @e[tag=Wither] at @e[tag=Wither] run function trade:ing/wither_1
#這是書本函數:
give @s[tag=!Book] minecraft:written_book{title:"§6§l《貿易手冊》§r",author:"§eCrown§r",Tags:["Booker"],pages:["[{\"text\":\" =-= 貿易手冊 =-=\\n\\n\",\"color\":\"dark_red\",\"bold\":true,\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"§e一本用來與系統交互的貿易書,可以與系統購買或出售物品。§r\"}},{\"text\":\"初始存款: \",\"color\":\"dark_aqua\",\"bold\":false,\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"§e每位玩家開啟貿易系統的初始存款獎勵!§r\"}},{\"score\":{\"objective\":\"Money\",\"name\":\"@s\"},\"color\":\"gold\",\"bold\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/function trade:book/prompt\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"§e點擊此處可將已有實際存款打印到聊天欄閱覽。§r\"}},{\"text\":\" ¥\",\"color\":\"yellow\",\"bold\":false},{\"text\":\"\\n\\n\\n\\n\",\"bold\":false},{\"text\":\" \",\"bold\":false},{\"text\":\"點擊出售\",\"color\":\"red\",\"bold\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tag @s[tag=!Selllisting] add Selllisting\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"§e點此打印出可出售物品清單到聊天欄,點擊對應物品將進行標記出售。§r\"}},{\"text\":\"\\n\\n\",\"bold\":false},{\"text\":\" \",\"bold\":false},{\"text\":\"點擊購買\",\"color\":\"dark_green\",\"bold\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tag @s[tag=!Buylisting] add Buylisting\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"§e點此打印出可購買物品清單到聊天欄,點擊對應物品將進行標記購買。§r\"}},{\"text\":\"\\n\\n\\n\\n\\n\",\"bold\":false},{\"text\":\" \",\"bold\":false},{\"text\":\"[???]\",\"color\":\"dark_red\",\"bold\":false,\"clickEvent\":{\"action\":\"change_page\",\"value\":\"99\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"§e我是誰?§r\"}}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\"\",\"bold\":false}]","[{\"text\":\" =-= 貿易手冊 =-=\\n\\n\",\"color\":\"dark_red\",\"bold\":true,\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"§e一本用來與系統交互的貿易書,可以與系統購買或出售物品。§r\"}},{\"text\":\"\\n\\n\\n\\n\\n\",\"bold\":false},{\"text\":\" \",\"bold\":false},{\"text\":\"【\",\"color\":\"aqua\",\"bold\":false},{\"text\":\"特殊道具\",\"color\":\"gold\",\"bold\":true,\"clickEvent\":{\"action\":\"run_command\",\"value\":\"/tag @s[tag=!Propslistin] add Propslistin\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"§e點此可打印出特殊道具清單到聊天欄,點擊對應道具將進行標記獲取。§r\"}},{\"text\":\"】\",\"color\":\"aqua\",\"bold\":false},{\"text\":\" \",\"bold\":false},{\"text\":\"[?]\",\"color\":\"white\",\"bold\":false,\"clickEvent\":{\"action\":\"change_page\",\"value\":\"1\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":\"§9點擊此處返回首頁§r\"}}]"]} 1
#這是對應的文本函數:
# 打印購買清單
tellraw @s[tag=Buylisting] [{"text":"《貿易系統》","color":"dark_red","bold":true},{"text":"[購買清單]","color":"blue","bold":false},{"text":"\n\n","bold":false},{"text":"金蘋果","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價988¥/組"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=988..}] add B00"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"小籠包","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價48¥/組"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=48..}] add B01"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"烤雞堡","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價126¥/組"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=126..}] add B02"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"水煮魚","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價148¥/組"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=148..}] add B03"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":"\n\n","bold":false},{"text":"豬排","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價240¥/組"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=240..}] add B04"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"神戶牛肉","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價260¥/組"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=260..}] add B05"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"涮羊肉","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價280¥/組"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=280..}] add B06"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"炸土豆","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價98¥/組"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=98..}] add B07"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":"\n\n","bold":false},{"text":"紫菜湯","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價10¥/碗"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=10..}] add B08"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"肉丁煲","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價25¥/碗"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=25..}] add B09"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"香菇煲","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價15¥/碗"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=15..}] add B10"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"潛影盒","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價499¥/個"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=499..}] add B15"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":"\n\n","bold":false},{"text":"煤炭塊","color":"dark_aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價68¥/個"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=68..}] add B11"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"鐵塊","color":"dark_aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價192¥/個"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=192..}] add B12"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"鑽石塊","color":"dark_aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價348¥/個"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=348..}] add B13"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"綠寶石塊","color":"dark_aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價688¥/個"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=688..}] add B14"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":"\n","bold":false}]
# 打印出售清單
tellraw @s[tag=Selllisting] [{"text":"【貿易系統】","color":"dark_red","bold":true},{"text":"[出售清單]","color":"blue","bold":false},{"text":"\n\n","bold":false},{"text":"石頭|圓石|草方塊|泥土|沙子|紅沙|砂礫|粘土|各種原木|各種羊毛|雪塊|冰|石英塊|地獄岩|靈魂沙|末地石|煤礦石|煤炭塊|鐵礦石|鐵塊|金礦石|金塊|鑽石礦石|鑽石塊|綠寶石礦石|綠寶石塊|紅石礦石|紅石塊|青金石礦石|青金石塊|石英礦石|黑曜石|南瓜|西瓜|干草塊|干海帶塊|腐肉|箭矢|骨頭|絲線|蜘蛛眼|火藥|羽毛|甘蔗|海帶|竹子|仙人掌|粘液塊","color":"dark_aqua","bold":false},{"text":"\n","bold":false},{"text":" ","bold":false},{"text":"點擊出售","color":"red","bold":true,"clickEvent":{"action":"run_command","value":"/function trade:ing/sell_0"},"hoverEvent":{"action":"show_text","value":"§6點此出售可標記物品。§r"}},{"text":"\n","bold":false}]
# 打印特殊道具清單
tellraw @s[tag=Propslistin] [{"text":"《貿易系統》","color":"dark_red","bold":true},{"text":"[特殊道具]","color":"blue","bold":false},{"text":"\n\n","bold":false},{"text":"清風劍","color":"gold","bold":false},{"text":"獲取","color":"white","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s add P00"},"hoverEvent":{"action":"show_text","value":"§6點此獲取§r"}},{"text":" ","bold":false},{"text":"清風護甲","color":"gold","bold":false},{"text":"獲取","color":"white","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s add P01"},"hoverEvent":{"action":"show_text","value":"§6點此獲取§r"}},{"text":" ","bold":false},{"text":"清風弓","color":"gold","bold":false},{"text":"獲取","color":"white","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s add P02"},"hoverEvent":{"action":"show_text","value":"§6點此獲取§r"}},{"text":" ","bold":false},{"text":"清風弩","color":"gold","bold":false},{"text":"獲取","color":"white","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s add P03"},"hoverEvent":{"action":"show_text","value":"§6點此獲取§r"}},{"text":"\n\n","bold":false},{"text":"清風鎬","color":"gold","bold":false},{"text":"獲取","color":"white","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s add P04"},"hoverEvent":{"action":"show_text","value":"§6點此獲取§r"}},{"text":" ","bold":false},{"text":"精·清風鎬","color":"gold","bold":false},{"text":"獲取","color":"white","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s add P05"},"hoverEvent":{"action":"show_text","value":"§6點此獲取§r"}},{"text":" ","bold":false},{"text":"清風斧","color":"gold","bold":false},{"text":"獲取","color":"white","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s add P06"},"hoverEvent":{"action":"show_text","value":"§6點此獲取§r"}},{"text":" ","bold":false},{"text":"精·清風斧","color":"gold","bold":false},{"text":"獲取","color":"white","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s add P07"},"hoverEvent":{"action":"show_text","value":"§6點此獲取§r"}},{"text":"\n\n","bold":false},{"text":"清風戟","color":"gold","bold":false},{"text":"獲取","color":"white","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s add P08"},"hoverEvent":{"action":"show_text","value":"§6點此獲取§r"}},{"text":" ","bold":false},{"text":"清風竿","color":"gold","bold":false},{"text":"獲取","color":"white","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s add P09"},"hoverEvent":{"action":"show_text","value":"§6點此獲取§r"}},{"text":" ","bold":false},{"text":"凋零蛋","color":"gold","bold":false},{"text":"獲取","color":"white","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=50..}] add P10"},"hoverEvent":{"action":"show_text","value":"§6點此獲取§r"}},{"text":"\n","bold":false}]
# 這是清理函數:
scoreboard players remove @s[scores={Cleantick=1..}] Cleantick 1
scoreboard players add @s[scores={Cleantick=..0,Cleantime=..-1}] Cleantime 1
execute as @s[scores={Cleantime=0..}] run function trade:ing/cleaning
scoreboard players set @s[scores={Cleantick=..0}] Cleantick 20
#這是召喚蛋的函數:
scoreboard players remove @e[tag=Wither,scores={Wither=1..}] Wither 1
execute at @e[tag=Wither,scores={Wither=1..}] run particle minecraft:witch ~ ~ ~ 3 1.5 3 5 50 force
execute at @e[tag=Wither] rotated as @e[tag=Wither] run tp @e[tag=Wither] ~ ~ ~ ~3 0
execute as @e[tag=Wither] run effect give @e[type=!player,type=!armor_stand,distance=..9] wither 1 2
execute as @e[tag=Wither,scores={Wither=..0}] run kill @e[tag=Wither,scores={Wither=..0}]
以上便是<<有用的書>>數據包的核心內容,編排不好,多次修改,敬請見諒!
如果要用的話講下載的壓縮包解壓放進存檔目錄下的datapacks文件夾中開啟食用吧!
最後...
最後......
最後.........
就是下載連接了 戳我吧!!!
下面是密碼:
最後是系統的圖組:
2021.12 数据,可能有更多内容
<<有用的書>>嘿!大家好哈,這是我製作的一個生存用的小玩意,一本有意思的書.
本數據包給遊戲添加了幾個小功能[實體是一本書]:
1.可以回收原版的部分野外生存所掉落的物品以及礦物;
針對一些原版的掉落物以及各類礦物的回收機制
2.可以購買一些生存必須的原版食物(節省農作物種植環節)
對於不喜歡浪費時間在農作物種植的一種食物機制
3.一些可在生存用的道具;
此處不建議玩家獲取道具,但是唯一的 凋零蛋 可以通過購買正常獲取(在生存中的一個虐怪彩蛋)
4.添加了一個世界計時清理器.
世界定時1200秒自動循環清理掉落物(類似於清掃機制)
5.新增進度系統;
為本數據包增添了一個進度系統,其中包含(存款進度/玩家死亡進度/擊殺進度)
明細可查看最後圖片進度部分.
6.新增一個鐵傀儡刷怪蛋;
購買鐵傀儡刷怪蛋後,右鍵召喚鐵傀儡一隻,這隻鐵傀儡可以產出多種物品,但需要配置.配置以加入書中以便自行安排.書中詳細記錄了該標記鐵傀儡可以生成的物品,當不用時最好點擊書中的關閉按鈕,避免遊戲卡頓或掉線(尤其在進行維度傳送前切記關閉正在執行的生成條件),若完全不再需要可手動擊殺該標記鐵傀儡且無掉落.
***** 因進度系統的加入,附帶了語言包,主要只包含了進度部分的語言類型,所以在使用本數據包時可以將語言包放進存檔目錄下,也可以放在材質包文件夾下並置頂加載即可. *****
#這是主體函數:
execute as @a run function trade:book/texts
execute as @a at @s run function trade:ing/clean
execute as @a run function trade:ing/buy_0
execute as @a run function trade:ing/props_0
scoreboard players operation §e§l存款§f: Information = @p Money
scoreboard players operation §b§l清理§f: Information = @p Cleantime
execute as @e[tag=WitherEgg] at @e[tag=WitherEgg] run function trade:ing/wither_0
execute as @e[tag=Wither] at @e[tag=Wither] run function trade:ing/wither_1
#這是書本函數:
#這是對應的文本函數:
tellraw @s[tag=Buylisting] [{"text":"《貿易系統》","color":"dark_red","bold":true},{"text":"[購買清單]","color":"blue","bold":false},{"text":"\n\n","bold":false},{"text":"金蘋果","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價988¥/組"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=988..}] add B00"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"小籠包","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價48¥/組"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=48..}] add B01"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"烤雞堡","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價126¥/組"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=126..}] add B02"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"水煮魚","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價148¥/組"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=148..}] add B03"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":"\n\n","bold":false},{"text":"豬排","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價240¥/組"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=240..}] add B04"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"神戶牛肉","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價260¥/組"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=260..}] add B05"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"涮羊肉","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價280¥/組"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=280..}] add B06"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"炸土豆","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價98¥/組"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=98..}] add B07"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":"\n\n","bold":false},{"text":"紫菜湯","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價10¥/碗"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=10..}] add B08"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"肉丁煲","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價25¥/碗"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=25..}] add B09"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"香菇煲","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價15¥/碗"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=15..}] add B10"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"潛影盒","color":"aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價499¥/個"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=499..}] add B15"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":"\n\n","bold":false},{"text":"煤炭塊","color":"dark_aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價68¥/個"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=68..}] add B11"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"鐵塊","color":"dark_aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價192¥/個"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=192..}] add B12"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"鑽石塊","color":"dark_aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價348¥/個"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=348..}] add B13"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":" ","bold":false},{"text":"綠寶石塊","color":"dark_aqua","bold":false,"hoverEvent":{"action":"show_text","value":"售價688¥/個"}},{"text":"購買","color":"dark_green","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=688..}] add B14"},"hoverEvent":{"action":"show_text","value":"§6點此購買§r"}},{"text":"\n","bold":false}]
# 打印出售清單
tellraw @s[tag=Selllisting] [{"text":"【貿易系統】","color":"dark_red","bold":true},{"text":"[出售清單]","color":"blue","bold":false},{"text":"\n\n","bold":false},{"text":"石頭|圓石|草方塊|泥土|沙子|紅沙|砂礫|粘土|各種原木|各種羊毛|雪塊|冰|石英塊|地獄岩|靈魂沙|末地石|煤礦石|煤炭塊|鐵礦石|鐵塊|金礦石|金塊|鑽石礦石|鑽石塊|綠寶石礦石|綠寶石塊|紅石礦石|紅石塊|青金石礦石|青金石塊|石英礦石|黑曜石|南瓜|西瓜|干草塊|干海帶塊|腐肉|箭矢|骨頭|絲線|蜘蛛眼|火藥|羽毛|甘蔗|海帶|竹子|仙人掌|粘液塊","color":"dark_aqua","bold":false},{"text":"\n","bold":false},{"text":" ","bold":false},{"text":"點擊出售","color":"red","bold":true,"clickEvent":{"action":"run_command","value":"/function trade:ing/sell_0"},"hoverEvent":{"action":"show_text","value":"§6點此出售可標記物品。§r"}},{"text":"\n","bold":false}]
# 打印特殊道具清單
tellraw @s[tag=Propslistin] [{"text":"《貿易系統》","color":"dark_red","bold":true},{"text":"[特殊道具]","color":"blue","bold":false},{"text":"\n\n","bold":false},{"text":"清風劍","color":"gold","bold":false},{"text":"獲取","color":"white","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s add P00"},"hoverEvent":{"action":"show_text","value":"§6點此獲取§r"}},{"text":" ","bold":false},{"text":"清風護甲","color":"gold","bold":false},{"text":"獲取","color":"white","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s add P01"},"hoverEvent":{"action":"show_text","value":"§6點此獲取§r"}},{"text":" ","bold":false},{"text":"清風弓","color":"gold","bold":false},{"text":"獲取","color":"white","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s add P02"},"hoverEvent":{"action":"show_text","value":"§6點此獲取§r"}},{"text":" ","bold":false},{"text":"清風弩","color":"gold","bold":false},{"text":"獲取","color":"white","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s add P03"},"hoverEvent":{"action":"show_text","value":"§6點此獲取§r"}},{"text":"\n\n","bold":false},{"text":"清風鎬","color":"gold","bold":false},{"text":"獲取","color":"white","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s add P04"},"hoverEvent":{"action":"show_text","value":"§6點此獲取§r"}},{"text":" ","bold":false},{"text":"精·清風鎬","color":"gold","bold":false},{"text":"獲取","color":"white","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s add P05"},"hoverEvent":{"action":"show_text","value":"§6點此獲取§r"}},{"text":" ","bold":false},{"text":"清風斧","color":"gold","bold":false},{"text":"獲取","color":"white","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s add P06"},"hoverEvent":{"action":"show_text","value":"§6點此獲取§r"}},{"text":" ","bold":false},{"text":"精·清風斧","color":"gold","bold":false},{"text":"獲取","color":"white","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s add P07"},"hoverEvent":{"action":"show_text","value":"§6點此獲取§r"}},{"text":"\n\n","bold":false},{"text":"清風戟","color":"gold","bold":false},{"text":"獲取","color":"white","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s add P08"},"hoverEvent":{"action":"show_text","value":"§6點此獲取§r"}},{"text":" ","bold":false},{"text":"清風竿","color":"gold","bold":false},{"text":"獲取","color":"white","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s add P09"},"hoverEvent":{"action":"show_text","value":"§6點此獲取§r"}},{"text":" ","bold":false},{"text":"凋零蛋","color":"gold","bold":false},{"text":"獲取","color":"white","bold":false,"clickEvent":{"action":"run_command","value":"/tag @s[scores={Money=50..}] add P10"},"hoverEvent":{"action":"show_text","value":"§6點此獲取§r"}},{"text":"\n","bold":false}]
# 這是清理函數:
scoreboard players add @s[scores={Cleantick=..0,Cleantime=..-1}] Cleantime 1
execute as @s[scores={Cleantime=0..}] run function trade:ing/cleaning
scoreboard players set @s[scores={Cleantick=..0}] Cleantick 20
#這是召喚蛋的函數:
execute at @e[tag=Wither,scores={Wither=1..}] run particle minecraft:witch ~ ~ ~ 3 1.5 3 5 50 force
execute at @e[tag=Wither] rotated as @e[tag=Wither] run tp @e[tag=Wither] ~ ~ ~ ~3 0
execute as @e[tag=Wither] run effect give @e[type=!player,type=!armor_stand,distance=..9] wither 1 2
execute as @e[tag=Wither,scores={Wither=..0}] run kill @e[tag=Wither,scores={Wither=..0}]
以上便是<<有用的書>>數據包的核心內容,編排不好,多次修改,敬請見諒!
如果要用的話講下載的壓縮包解壓放進存檔目錄下的datapacks文件夾中開啟食用吧!
最後...
最後......
最後.........
就是下載連接了 戳我吧!!!
下面是密碼: emkk
最後是系統的圖組:
如果是发布原版模组/数据包,请使用相应发帖模板,并给出详细的内容介绍。
提取码请明文给出
ruhuasiyu 发表于 2019-7-9 22:09
如果是发布原版模组/数据包,请使用相应发帖模板,并给出详细的内容介绍。
提取码请明文给出
...
o,好的。

此外,这个数据包内容并不少,请在正文中添加必要的使用说明。
以及,该原版模组有文字显示,为繁体中文,以及它并不支持多人游戏。
ruhuasiyu 发表于 2019-7-13 09:54
请问这个数据包是否是你原创?还是转载自其它论坛?
此外,这个数据包内容并不少,请在正文中添加必要的使 ...
完全是原创的,
这完全是对话栏商店了啊
(论取名字的重要性)
Jokey_钥匙 发表于 2019-7-15 13:35
我以为他只是一本书(
这完全是对话栏商店了啊
(论取名字的重要性)
是的,我觉得这玩意儿应该叫原版小卖部