Code Monkey home page Code Monkey logo

cc_ic2's Introduction

ComputerCraft with IndustrialCraft2

This mod provide peripheral interface few IC2 mechanics for using in Comuters from ComputerCraft mod, and add controlled reactor component cc_ic2:prototype_heat_vent_2.

Realised mechanics:

Reactor:

for using, place computer closly to reactor, reactor chamber or reactor vessel (pump, readstone or access hatch).

  • getOut - return output of reactor and units (Eu/t in single mode and H/t in fluid mode).
  • getHeat - return current heat and maximum heat
  • getFluidCold - return name of cooling fluid, amount and capacity (only for fluid mode).
  • getFluidHot - return name of hot cooler fluid, amount and capacity (only for fluid mode).
  • getFuelRemaining - return least duration of uranium or MOX cells.
  • hasDepleted - return true, if reactor have depleted cells.
  • isActive - return true, if reactor is active.
  • getSizeInvertory - return size invertory of reactor.
  • getStackInSlot - return information about item in slot of reactor (name, count, durability, maximal damage).
  • getStatePrototype - return current status (power) of prototype heat vent. if reactor have vents with different status, return average.
  • setStatePrototype - write status to all prototype heat vents.

examples:

reactor = peripheral.wrap("<side-where-reactor>") -- see more in ComputerCraft Wiki

-- getting output:
out, out_units = reactor.getOut()

-- getting heat:
heat, max_heat = reactor.getHeat()
heat_in_percents = (heat * 100) / max_heat

-- getting status of prototype vents
status = reactor.getStatePrototype()
while status < 0.5 do
    reactor.setStatusPrototype(status + 0.1)
    status = reactor.getStatePrototype()
end

-- etc...

Writing readme in progress

cc_ic2's People

Contributors

x1b6e6 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.