Everything posted by Mazetar
-
Changing the TileEntity from inside the block it's attacht to
Misunderstandings, anyways I'm sure the OP can agree that his problem was solved
-
Changing the TileEntity from inside the block it's attacht to
When do you want this to happen? If it is at a given point inn time where you know the location of your block then sure it's easy. So when do ya want to do it? On block clicked?
-
Custom Blocks for Custom Biome
Could you elaborate? What is your source for saying this, as to me this sounds wrong I would like to know why it wouldnt handle block ids above 256?
-
Custom Blocks for Custom Biome
Null is a basic programming term which you must look up and understand as its a common problem! Null is a value or well rather the lack of one, it's NOT to be confused with 0! Check it out on the web
-
Adding different redstone colors
If you got them working by letting them behave just like redstone, then it will behave like redstone. How's your code looking?
-
making building structures in game problem plz help (1.5.1)
that method does not exist check the world object, it got lots of other setBlockXXXX methods
-
Minecraft NPC Villages Explained (Or, Why Are My Villagers Clumping Together?)
I was wondering about creating a wiki page for it on the wiki, seeing as it's a good reference post I really liked it at least, thanks for creating it! <3
-
Enums
Here's a nice and short clip for ya which shows you how it works: http://thenewboston.org/watch.php?cat=31&number=44 Hope it helps
-
[SOLVED] Public static variable?
Pretty sure it ain't, but I'm quite sure there is an easier way to do what you really want to do So if you explain what you want to achieve by doing this?
-
Make HD textures 1.4.7
I believe mc supports higher resolution textures as of 1.5 yeah. not sure to which extent they do tough, but that should be easy to test by creating a 64x64 texture and testing it^^
-
Bounding Boxes: What are they?
You have access to the player as he places the block, if you look into player there are some fields you can access fields like: -rotationYaw -rotationPitch -prevRotationYaw and so on, I think you can use them to see which way the player is facing and the determine how to do the textures. For the piston it's quite easy since it has the same texture on all sides,
-
Bounding Boxes: What are they?
The names are not those Mojang/Notch wrote inn their code, the functions are named whatever the decompile set it to( like func_24443a). The methods which have real names are named based upon what they seemes to be doing by the Mcp/community after playing with the code. Anyways, what other parts did you find confusing?
-
setBlockWithMetadata and setBlockNotify replacement?
Have you tried checking what you got access to inn a World? What methods do you have which might do as the old ones did? Also when you say it errors out, which error? have you tried googling the error it gives?
-
get hitX/Y/Z from EntityPlayer
And with exact coordinates you mean which pixel on the block's surface did he point at? also client doesn't have all the information the server has, the server one should be the correct one
-
Block objects for in-world blocks.
You are correct. Every block only exist once, the game only stores the int BlockID, Metadata and if needed a TileEntity at any given location inn the world. If you want something to happen to a specific block inn the world (like rotation) then you need to use metadata or a TileEntity(if it's more complex than what metadata can hold).
-
get hitX/Y/Z from EntityPlayer
With hitX,hitY & hitZ are you reffering to which side of the block the player was hitting it, or? I'm unsure about exactly what you want to get. If you want the side he hit, I believe you could cast a ray from the player to see what side of the block you hit. Looking into the code for entityLiving.rayTrace(...); It returns an "MovingObjectPosition" which has among other things the following properties: typeOfHit - int which has 0 for Block and 1 for Entity. sideHit - int which is Bottom = 0, Top = 1, East = 2, West = 3, North = 4, South = 5 or -1 if the RayTrace went the full length of it's trace. Also it contains the entity you hit(if you hit one, else it's null of course). And the coordinates for the block etc. Check out the code for it, I believe you could use that to solve your problem
-
Need help!!
Well as the error you are getting is that it can't find a class I would assume that the class is not where it expected it to be, indicating either an error with reobf or more likely you have the folder structure wrong as it was suggested inn the above post.
-
Advanced Plants
No. Or nah telling you to study java and the src whon't help.. So no.
-
[1.5.1]Request for updated directional blocks tutorial
Well if you know your java then it shouldt be a problem So what line(s) of the above code does you not understand ?
-
Advanced Plants
No it will be harder without using metadat. The only thing that makes a normal block different from another of it's self is it's metadata. If you aren't using metadata you will need to use TilEntitys which ain't hard but harder than just using metadata.
-
Need help!!
check out the answers inn this thread, you have the same problem as they had. http://www.minecraftforge.net/forum/index.php/topic,7194.0.html
-
Item Not Working(FIXED)
They way you initialize your item's looks weird, why are you casting it to item and so on?
-
Polymorphism problem with mod
You can pass a class as an argument to the method. Take a look here: http://stackoverflow.com/questions/2240646/how-to-pass-a-type-as-a-method-parameter-in-java
-
unplaceable plant
This should help you understand those numbers with the block list; http://thenewboston.org/watch.php?cat=31&number=27
-
Coding Error Eclipse
The problem is probably eclipse doesn't know about IconRegister. Try hovering your mouse over it to see quick fixes and select import blablabla. Else, find out which package that contains IconRegister and import it.
IPS spam blocked by CleanTalk.