This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Modder112's profile picture

CC dont't accept my Block

Started by Modder112, 30 August 2012 - 06:37 PM
Modder112 #1
Posted 30 August 2012 - 08:37 PM
Hello,
I'm trying at the moment to build a mod. But my computer accept not this block.

code:
mod_tets.java http://pastebin.com/2hWp8RPe
BlockTest.java http://pastebin.com/ggk424R6
TileEntityTest.java http://pastebin.com/rFaHzi9U

Can someone help me there now??
FuzzyPurp #2
Posted 30 August 2012 - 11:29 PM
Are you wrapping the peripheral?
Xfel #3
Posted 31 August 2012 - 12:46 PM
What output do you get on the console? Is the attach method even called, or are you just missing your api?
Modder112 #4
Posted 31 August 2012 - 01:23 PM
this is the api:



local sidee = "nichts"
local function isCASBlock(side)
return peripheral.getType(side) == "casblock"
end
function open( side )
if isCASBlock then
  sidee = side
  print("Seite wurde gesetzt!")
else
  error("Da ist kein CASblock!")
end
end
function GetSring() 
if isCASBlock(sidee) then
 
else
  if sidee == "nichts" then
   error("Benutzen sie testmod.open( side )")
  else
   error("Da ist kein CASBlock mehr!")
  end 
end
testmod = peripheral.wrap(sidee)
return testmod.getstring()
end
function help()
print("open() Zum bestimmen der seite!")
print("GetString() zm ansehen des gespeicherten Stringes")
end

i have locked in other apis
Xfel #5
Posted 01 September 2012 - 12:42 PM
Did you ever try to open the lua command prompt and use the peripheral api methods directly? If not, do it. Place your peripheral block right of the computer, and use this program http://pastebin.com/zP23RDsE with the argument "right". Tell me what it tells you.
Modder112 #6
Posted 01 September 2012 - 04:06 PM
no peripheral found!

this send the lua program to me.
Cloudy #7
Posted 01 September 2012 - 04:51 PM
Did you compile and reobsfucate the files?
Modder112 #8
Posted 01 September 2012 - 09:46 PM
yes i have compile wiht the reobsfucate. Why , is this wrong?

edit:
i have the code edit. I have upload the file: http://www.file-uplo...d_tets.zip.html
Modder112 #9
Posted 08 September 2012 - 06:45 PM
have who a answer?
Cloudy #10
Posted 08 September 2012 - 06:53 PM
I'll take a look at it later.
Modder112 #11
Posted 08 September 2012 - 07:07 PM
i thank you becaus i will make mods for my mc server :D/>/>
Xtansia #12
Posted 09 September 2012 - 08:04 AM
Your block needs to extend BlockContainer
Modder112 #13
Posted 09 September 2012 - 11:33 AM
how make i this?
Cloudy #14
Posted 09 September 2012 - 11:34 AM
If you can't even grasp basic Java concepts you shouldn't be making mods.
Modder112 #15
Posted 09 September 2012 - 12:31 PM
i can programming mods. i have 2 mods programing.
Modder112 #16
Posted 09 September 2012 - 12:59 PM
i thank all :D/>/> it go. I have read many websites an it go. i thank all in this theard :D/>/>