Chunky Peripherals(previously known as CRMod) is a computercraft addon that focuses on chunkloaders!
CHUNKY MODULE:
This is the basic chunkloader module, it's crafted this way:
Every turtle that has this upgrade equipped will keep it's chunk loaded.
(technically it keeps loaded the turtle's chunk, the one behind it, and the one in front of it)
MINY CHUNKY MODULE:
This turtle upgrade keeps the chunks loaded like the chunky module and also mines
like a diamond pickaxe.
To mine you have to use the peripheral's methods dig, digUp and digDown.
To call them you have to wrap the peripheral:
p=peripheral.wrap("left")
or
p=peripheral.wrap("right")
and then you can call the method on the p object:
p.dig()
p.digUp()
p.digDown()
CHUNKY PERIPHERAL
This is a computer peripheral that acts as a chunk loader. By default (even if not attached to a computer) it will keep loaded the chunk it's in. By connecting it to a computer you can change the shape of the loaded area. The possible shapes are: a circle centered on the peripheral, a square centered on the peripheral a rectangle centered on the peripheral and a generic rectangle around the peripheral. The shapes sizes are expressed in blocks not chunks, so if you set for example a circle of radius 19 all the blocks that are less than 20 blocks away from the peripheral will be kept loaded.
Here's peripheral's methods documentation:
Spoiler
- getShape() returns a string descripting the current shape.
- setShapeCircle(int radius) sets the shape to a circle of the defined radius centered on the peripheral Arguments: radius: radius of the circle, has to be positive. Non-integer values will be rounded up to the next integer
- setShapeSquare(int sideLength) sets the shape to a square of the defined size centered on the peripheral. Arguments: sideLength: length of the side of the square. has to be positive. Non-integer values will be rounded up to the next integer. If odd will be rounded up to the next even number.
- setShapeRectangle(int sideLength) equivalent to setShapeSquare(int sideLength)
- setShapeRectangle(int sideXLength, int sideZLength) sets the shape to a rectangle of the defined size centered on the peripheral. All arguments have to be positive. Non-integer values will be rounded up to the next integer. If odd will be rounded up to the next even number Arguments: sideXLength: length of the side aligned to the X axis (west-east) sideYLength: length of the side aligned to the Z axis (north-south)
- setShapeRectangle(int north, int east, int south, int west) sets the shape to a rectangle of the defined size. The parameters define the distances of the sides from the peripheral. All arguments have to be positive. Non-integer values will be rounded up to the next integer. - north: direction of the decreasing z - east: direction of the increasing x - south: direction of the increasing z - west: direction of the decreasing x Also, the south direction is indicated by the face with the red thing Arguments: north: distance of the north side. east: distance of the east side. south: distance of the south side. west: distance of the west side.
- getChunksNumber() returns the number of chunks the peripheral is keeping loaded.
- getChunksList() returns a list of the chunks the peripheral is keeping loaded.
- disable() disables the peripheral, it wont keep loaded any chunk. To re-enable it you have to set a new shape.
- help(command_name, arg1type, arg2type, …) returns the documentation of the methods. Arguments: command_name: string representing the name of the command. argNtype: string representing the type of the argument N.
WIRELESS CHUNKY MODEM
This upgrade is a wireless modem that keeps the chunks loaded like the chunky module.
peripheral.getType(…) will return "modem" like the wireless modem, you can distinguish it from the wireless modem by the presence the method isChunky() (that will return true)
CHUNKY DETECTOR
The chunky detector is a handheld tool to chek if a specific block is kept loaded by Chunky Peripherals. By right-clicking on a block you will see on the chat if it's loaded or not.
SERVER COMMANDS
The command /CRModListLoadedChunks will print on the console the list of the chunks loaded by this mod. Each ticket corresponds to a turtle, it'll print between square brackets the chunk's coordinates and then the corresponding normal world coordinates at which the chunk starts.
The command /CRModToggleInfoLogging enables or disables the logging of debugging information messages on the console
CONFIG
In the config file you can change the item ids, the upgrade ids, enabling an alternative recipe for the chunky module that uses a diamond instead of the ender pearl, and activate the debug logging.
The most important config is maxChunkLoadingRadiusInBlocks: it indicates the max size of the shapes of the chunky peripheral. Circles will have at most that radius, Squares will have at most a side double the radius. Rectangles will have at most the area of the max square ((north+south)*(east+west)<(maxChunkLoadingRadiusInBlocks*2)^2)
LICENSE & MODPACKS
Chunky Peripherals is released under the MIT license, you can use it freely and put it in all the modpacks you want. Only thing: if it's a public mod pack please tell me, there's no particular reason for this but I'd like to know it :)/>
SOURCES
The sources can be found on gitHub:
https://github.com/9...unkyPeripherals
DOWNLOADS
The latest version can be downloaded at:
https://github.com/9...releases/latest
All versions since 1.1.0.9 are hosted on gitHub at:
https://github.com/9...herals/releases
The last release for minecraft 1.6.4, CRMod v1.1.0.6 is at:
https://github.com/9...es/tag/v1.1.0.6