介绍
This datapack adds usefull features to the CC: Tweaked mod.
It contains:
modemutils:
Modemutils is a programm designed to extend the functionality of the already existing modem.
It can be used in lua.
It has several functions:
modemutils.sendTable(modem, data, channel, replyChannel):
“data” has to be a table here.
as a modem, you can provide anything with a “transmit” function, so this is also compatible with other modifications that add more modems.
This function will turn your table into a string using textutils.serialize and send it via your modem.
modemutils.receiveTable(modem, channel):
This function will receive a string generated by modemutils.sendTable and will return event, side, channel, replyChannel, data, distance back to you. The returned “data” value is a table.
modemutils.sendAndReceiveTable(modem, data, channel, replyChannel):
This function will send your table as a string and then wait for data to arrive on the specified reply channel. It will return event, side, channel, replyChannel, data, distance back to you, received from your specified return channel.
sendTableJSON
receiveTableJSON
sendAndReceiveTableJSON
will do the exact same thing exept it will use textutils.serializeJSON to send the data in a json formated string. the normal and JSON methods are NOT compatible with each others.
常见问题
CCUtils 支持哪些 Minecraft 版本?
CCUtils 支持 Minecraft Java 版 1.12–26.2,共 53 个版本。下载时注意选择和你游戏版本一致的文件。
CCUtils 怎么安装?
新建世界时在「数据包」里把下载的 .zip 拖进去;已有的存档,把文件放进存档目录下的 datapacks 文件夹,进游戏输入 /reload 即可生效。服务器同样放在世界目录的 datapacks 里。
antonstiko 的其他作品
查看全部 →
Random Stuff
Random stuff, for example, a puma.
Better Mobs
A Resourcepack with better mob textures
Electricitymeters
This mod adds electricitymeters, which can be used to count and pay energie. There are also Emerald pieces, piece pieces, ...
评论
登录后评论和评分