CCUtils

Quick rating

Community listing page, reviews may not be monitored by the author.

CCUtils

By antonstikoOwner

No reviews yet

A Datapack that adds some cool features to CC: Tweaked

Mod Loaders
Minecraft
26.2

About

Description

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.