Jump to content

Recommended Posts

Posted

Hi. I have a little question. I want to do a ComputerCraft peripheral that emits a redstone signal when get a request from computer. I did a TileEntity that can be a peripheral, but i don't know how to make my block to emit a signal. Can you tell me what functions i must have in my block and tile class?

Posted

Here is a list of overrides you might want to focus on:

int isProvidingWeakPower(IBlockAccess p_149709_1_, int p_149709_2_, int p_149709_3_, int p_149709_4_, int p_149709_5_);

int isProvidingStrongPower(IBlockAccess p_149748_1_, int p_149748_2_, int p_149748_3_, int p_149748_4_, int p_149748_5_);

boolean canProvidePower();

boolean canConnectRedstone(IBlockAccess world, int x, int y, int z, int side);

updateTick(World p_149674_1_, int p_149674_2_, int p_149674_3_, int p_149674_4_, Random p_149674_5_);

I require Java, both the coffee and the code :)

Posted

I have a problem with a canProvidePower() method. When i add this method to my block, i can't attach modems from ComputerCraft to block. Without this method modems are working well and communication between block and computer is good too. With this method communication is good only if block is next to computer.

Posted

I have a problem with a canProvidePower() method. When i add this method to my block, i can't attach modems from ComputerCraft to block. Without this method modems are working well and communication between block and computer is good too. With this method communication is good only if block is next to computer.

 

That sounds like a ComputerCraft specific question (that is: what its blocks assume about other blocks).

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

Wiki doesn't have any info about making a peripheral, but author of the mod, dan200, shared a doc about ComputerCraft API. In the meantime, i wrote a post on the CC official forum and now i'm waiting for some answer.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.