Sprache

CCUtils

Modrinth

A Datapack that adds some cool features to CC: Tweaked

3 Downloads aktualisiert 4d ago
neueste v1.0 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.

Versionen

Release
1.0
datapack · 1.12, 1.12.1, 1.12.2 · 4d ago
Added the modemutils program.
3

Kommentare 0

Noch keine Kommentare. Sei der Erste, der seine Meinung teilt.

Herunterladen CCUtils

Dateien werden direkt von der Originalquelle bereitgestellt. Modgrid hostet oder verändert sie nicht.