Posted November 1, 201311 yr Hi, i made a block that stores variables in a tileentity so if i have another block how can i make it check the other block variable if is in x-1. For expample if i place the first block in x:0 y:10 z:0 thath has a variable j with the valor 4 and i place the second in x:-1 y:10 z:0 how can i make the second acces j valor?
November 1, 201311 yr world.getBlockTileEntity(...) 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.
November 1, 201311 yr Author Used this TileEntityPc t = (TileEntityPc) world.getBlockTileEntity(par2 +1, par3, par4); but how do I use the variables?
November 1, 201311 yr Just use: t#(YOUR_VARIABLE_NAME/YOUR_METHOD_NAME Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
November 1, 201311 yr Author Using this public boolean onBlockActivated(World world, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9) { if(!world.isRemote) { TileEntityPc t = (TileEntityPc) world.getBlockTileEntity(par2 +1, par3, par4); par5EntityPlayer.addChatMessage(TileEntityPc.visitor1); } return true; } But it says me that i have to change visitor to static. Where is the problem in this code?
November 1, 201311 yr No shit. Might want to go finish learning Java. 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.
November 1, 201311 yr Author Big fail, sorry, im just trying to help a little a friend, i know im so noob, thanks for all type of help.
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.