介绍
介绍由机器翻译自 Modrinth 原页面,仅供参考。
鸣谢 Amygdaloideae(GitHub 上的 Prunoideae)。原模组在这里 \
特别感谢 richie3366 帮忙让移植版成功运行! \
模组图标由 FooterMan16 制作 \
可在 Curseforge 和 Modrinth
上获取
CurseForge: \Modrinth:
支持通过 KubeJS 为任意方块添加外设。
快来访问维基百科,点这里!所有内容都在那里!
以下是你可以添加到熔炉的方法示例:
// priority: 0
// The following code was last updated: April 30th 2024
// Visit the wiki for more info - https://kubejs.com/
ComputerCraftEvents.peripheral(event => {
// First Param: peripheral type
// Second Param: What block it goes to
// Note: you can use regex for the second param
event.registerPeripheral("furnace", "minecraft:furnace")
// This limits the method to 1 call/tick,
// as the method is scheduled on main thread.
// The main thread is synced with the block
.mainThreadMethod("burnTime", (container, direction, arguments) => {
// This custom method returns the current
// remaining burntime the furnace has.
return container.entityData.getInt("BurnTime")
})
.mainThreadMethod("cookingProgress", (container) => {
// This custom method returns the percentage
// of the current cooking process going on.
// A progress of 0 returned during two consecutive
// ticks means that there is no cooking happening.
let data = container.entityData
let cookTime = data.getInt('CookTime')
let cookTimeTotal = data.getInt('CookTimeTotal')
if (!cookTimeTotal) return 0;
return (cookTime / cookTimeTotal) * 100
})
// This has no limit on calling
// however, the method can't access most of the in-world data.
// For example, it couldn't access the NBT of a tile entity
.method("say_hi", (container, direction, arguments) => {
container.up.set("diamond_block")
return "hi, here's your diamond block"
})
})
常见问题
KubeJS + CC: Tweaked 支持哪些 Minecraft 版本?
KubeJS + CC: Tweaked 支持 Minecraft Java 版 1.19.2–1.20.2,共 3 个版本,可用的加载器:Forge。下载时注意选择和你游戏版本一致的文件。
KubeJS + CC: Tweaked 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
Wolfieboy09 的其他作品
查看全部 →
Mekanism x Create: Northstar
by Wolfieboy09
Mekanism 与 Create: Northstar 的兼容性
17万
3 个月前
Modrinth · CurseForge
Create: TFMG Community Edition
by Metallurgists of Create
Create: TFMG Community Edition 是 DrMangoTea 制作的 Create: TFMG 的分支版本,旨在尽可能修复更多漏洞。
12.2万
3 天前
Modrinth · CurseForge
Flux Network x CC: Tweaked
by Wolfieboy09
Flux Networks 与 CC: Tweaked 的兼容性
12万
11 个月前
CurseForge
KubeJS TFMG
by Wolfieboy09
为《Create: The Factory Must Grow》提供 KubeJS 集成。
11.1万
2 天前
Modrinth · CurseForge
评论
登录后评论和评分