skyfactory 4 有一个进步,你必须在饼干罐里装满饼干。
setTitle(“谁从饼干罐里偷了饼干?”)
setIcon(bibliocraft:cookiejar)
//setDescription("用 Cookie 填充 Cookie 罐并右键单击它!")
setDescription({"translate":"advancement.sf4.age_allthethingsomgol.cookie.description","with":[{"keybind":"key.use"}]})
addParent(“sf4:age_allthethingsomgol /根”)
//标准
criteria = addCriteria("右键单击填充饼干罐", "胜利:right_click_block")
criteria.setBlock(
乙
//奖励
设置奖励经验(60)
隐藏线() 始终可见() 设置位置(-79,51)
我尝试将 biliocraft:cookiejar 更改为minecraft:cookiejar,我得到了进步,但我得到了它,但罐子里没有饼干,但就在我把它放下时
要修复 SkyFactory 4 中的进度,使其仅在 Cookie 罐装满 Cookie 时触发,您需要确保正确设置标准以检查 Cookie 罐的填充状态。这是代码的更正版本:
setTitle("Who Stole the Cookies from the Cookie Jar?")
setIcon(bibliocraft:cookiejar)
setDescription({"translate":"advancement.sf4.age_allthethingsomglol.cookie.description","with":[{"keybind":"key.use"}]})
addParent("sf4:age_allthethingsomglol/root")
// Correct criteria to check for a filled cookie jar
Criteria criteria = addCriteria("Right Click Filled Cookie Jar", "triumph:right_click_block")
criteria.setBlock(<bibliocraft:cookiejar, tile:{cookiecount:8, names:["item.cookie","item.cookie","item.cookie","item.cookie","item.cookie","item.cookie","item.cookie","item.cookie"], Inventory:[{Slot:0b,id:"minecraft:cookie",Count:64b,Damage:0s},{Slot:1b,id:"minecraft:cookie",Count:64b,Damage:0s},{Slot:2b,id:"minecraft:cookie",Count:64b,Damage:0s},{Slot:3b,id:"minecraft:cookie",Count:64b,Damage:0s},{Slot:4b,id:"minecraft:cookie",Count:64b,Damage:0s},{Slot:5b,id:"minecraft:cookie",Count:64b,Damage:0s},{Slot:6b,id:"minecraft:cookie",Count:64b,Damage:0s},{Slot:7b,id:"minecraft:cookie",Count:64b,Damage:0s}]}>)
setRewardExperience(60)
hideLines()
alwaysVisible()
setPos(-79,51)