Mod aiming to improve TARDIM
Find a file
2023-01-28 15:51:12 +03:00
gradle/wrapper 1.19 2022-08-30 13:37:15 +02:00
src/main Infinite Potential 2023-01-28 15:51:12 +03:00
.gitignore Initial commit 2021-05-21 16:29:43 +02:00
build.gradle All of time and space 2023-01-28 08:49:14 +03:00
gradle.properties 1.19 2022-08-30 13:37:15 +02:00
gradlew Initial commit 2021-05-21 16:29:43 +02:00
gradlew.bat Initial commit 2021-05-21 16:29:43 +02:00
README.md Update README.md 2022-10-22 03:15:29 +02:00
settings.gradle Initial commit 2021-05-21 16:29:43 +02:00

CC Tutorial

This is a little tutorial on how peripherals in cc work. We use the simple system with the IPeripheral interface.

If you want to see, how I use this system with more functions and blocks, take a look at Advanced Peripherals

We create a peripheral with two functions:

  • isRaining - a main thread function which will return true when it rains
  • sendMessage - a function which will send a message to every player

Supported Versions

Content

  • CCBlock - Our normal block, nothing special

  • CCPeripheral - Our peripheral, here we register functions and manage connected computers

  • Registration - Normal registration to register our blocks, items and so on

  • CCTutorial - Our main class

  • CCTileEntity - Our tile entity

  • /src/main/resources/META-INF/mods.toml - Here we have our name of the mod, the mod id, the versiond and more. The most importang thing in the file is the modid and the dependencies for addons like cc-tweaked.

Pictures

Functions

Blocks