16 posts
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/2hWp8RPeBlockTest.java
http://pastebin.com/ggk424R6TileEntityTest.java
http://pastebin.com/rFaHzi9UCan someone help me there now??
496 posts
Location
Harlem, NY
Posted 30 August 2012 - 11:29 PM
Are you wrapping the peripheral?
510 posts
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?
16 posts
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
510 posts
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.
16 posts
Posted 01 September 2012 - 04:06 PM
no peripheral found!
this send the lua program to me.
2447 posts
Posted 01 September 2012 - 04:51 PM
Did you compile and reobsfucate the files?
16 posts
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
16 posts
Posted 08 September 2012 - 06:45 PM
have who a answer?
2447 posts
Posted 08 September 2012 - 06:53 PM
I'll take a look at it later.
16 posts
Posted 08 September 2012 - 07:07 PM
i thank you becaus i will make mods for my mc server :D/>/>
496 posts
Location
New Zealand
Posted 09 September 2012 - 08:04 AM
Your block needs to extend BlockContainer
16 posts
Posted 09 September 2012 - 11:33 AM
how make i this?
2447 posts
Posted 09 September 2012 - 11:34 AM
If you can't even grasp basic Java concepts you shouldn't be making mods.
16 posts
Posted 09 September 2012 - 12:31 PM
i can programming mods. i have 2 mods programing.
16 posts
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/>/>