CC dont't accept my Block
Started by Modder112, Aug 30 2012 07:37 PM
15 replies to this topic
#1
Posted 30 August 2012 - 07: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??
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??
#2
Posted 30 August 2012 - 10:29 PM
Are you wrapping the peripheral?
#3
Posted 31 August 2012 - 11:46 AM
What output do you get on the console? Is the attach method even called, or are you just missing your api?
#4
Posted 31 August 2012 - 12:23 PM
this is the api:
i have locked in other apis
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
#5
Posted 01 September 2012 - 11:42 AM
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.
#6
Posted 01 September 2012 - 03:06 PM
no peripheral found!
this send the lua program to me.
this send the lua program to me.
#7
Posted 01 September 2012 - 03:51 PM
Did you compile and reobsfucate the files?
#8
Posted 01 September 2012 - 08: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
edit:
i have the code edit. I have upload the file: http://www.file-uplo...d_tets.zip.html
#9
Posted 08 September 2012 - 05:45 PM
have who a answer?
#10
Posted 08 September 2012 - 05:53 PM
I'll take a look at it later.
#11
Posted 08 September 2012 - 06:07 PM
i thank you becaus i will make mods for my mc server
/>
#12
Posted 09 September 2012 - 07:04 AM
Your block needs to extend BlockContainer
#13
Posted 09 September 2012 - 10:33 AM
how make i this?
#14
Posted 09 September 2012 - 10:34 AM
If you can't even grasp basic Java concepts you shouldn't be making mods.
#15
Posted 09 September 2012 - 11:31 AM
i can programming mods. i have 2 mods programing.
#16
Posted 09 September 2012 - 11:59 AM
i thank all
/> it go. I have read many websites an it go. i thank all in this theard
/>
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users











