Язык

CCUtils

Modrinth

A Datapack that adds some cool features to CC: Tweaked

3 загрузок обновлено 4d ago
Modrinth
Datapack 1.12 – 26.2 ManagementTechnology

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.

Версии

История версий недоступна. Нажми «Скачать», чтобы получить последнюю версию с источника.

Комментарии 0

Пока нет комментариев. Будь первым, кто поделится мнением.

Скачать CCUtils

Файлы отдаются напрямую с первоисточника. Modgrid не хранит и не изменяет их.