Everything posted by Mazetar
-
[SOLVED/Workaround]How to use the Applied Energistics Materials API?
I'm not familiar with the specifics of the ic2 api, and in my experience there's not too many regulars here who are. I'd recommend that you ask on the API's forums or related channels as there are more likely to be people there whom are more familiar with the API. If you successfully imported the API and it seems fine, then you should read the source code of it and try to understand how it works. See if you can find any documentation for that specific API. Futher more: Sounds more like a problem with java/syntax and not with the API, sadly I'm unable to read your mind at the moment and therefore can't see the error message with my inner eye. Could you perhaps share that here instead unless you prefer to wait until my psychic pew pew return?
-
[SOLVED]Checking item in hand and onRightClick
This is quite easy to do, if you look into Item.java then you see some methods which every item inherits like this one: /** * Called whenever this item is equipped and the right mouse button is pressed. Args: itemStack, world, entityPlayer */ public ItemStack onItemRightClick(ItemStack itemStack, World world, EntityPlayer player) { return itemStack; } There you have access to the player, so you can see all the info about him and the item being used. The last question you can do from the clientside by grabbing the mouseOverObject from the minecraft.java which is the result of a raytrace to find what the player is looking at returning the information as a MovingObject(...) (forgot the whole name) which will let you see all the info about it (x,y,z, block ID, sideHit etc.) That should be all you need assuming the rest of your setup is updated to 1.3.X+ standards. If you are not familiar with them you should first start by looking into the basics of them, I recommend this article for that purpose: http://www.minecraftforge.net/wiki/Basic_Modding
-
How to sort minecraft files
Uh? No? The workspace is set up using Python and is written in Java. I guess he meant the thing he is trying to create? I assume he's trying to create something like a simple plugin that will setup the IDE ready to go with a setup like phaimar's or something?
-
Establishing a Connection to FML Server
Open the source for networking and read how it works there? The best documentation is the code itself I believe that's the best way to find your way around how it works
-
Determining the side a block is destroyed?
I just realized I forgot something, if you are on the client side you could use the objectMouseOver from Minecraft.java to give you access to an MovingObjectPosition. This contains information about the object which is directly in front of the cursor, including the side of the block it's looking at.
-
Determining the side a block is destroyed?
I guess you could do raytracing from the player to the block? may be other solutions, if you search you should find them as I have seen a few of these posts earlier
-
[Solved] Item/Block Texture Locations?
What folder structure is it you are doing now? Do you have the Png files inside the project explorer in eclipse?
-
Intermediate Modder Wanting to LEARN!?!?!?!
I would recommend learning programming in general, that will make you ready for all the cool and awesome stuff. I fully recommend the free lecture series from Stanford which introduces one to Java quite nicely. After finishing that you can even dip into more advance free programming lectures! But for now I recommend this: http://see.stanford.edu/see/lecturelist.aspx?coll=824a47e1-135f-4508-a5aa-866adcae1111 Also the best way to learn is by doing, and by having goals you want to reach. I find that I learn the most and fastest if I learn to accomplish a certain goal. When you are familiar with more than just the basics of programming methodology and thinking, then you can look into open source projects and pull them apart piece by piece to understand how they work and thereby learning a lot from doing so I wish you good luck on you're fantastic journey into Modding and Programming <3
-
Multiple things I wish to know to simplify my life
Isnt that what reobf does for you?
-
Using forge interact hook to control vanilla cow
Whoa, I'm not sure where to begin mate. I think you should look at your code line by line and try to understand what it really means. (Did you look into those videos?) The problems I'd guess to be many, and they seem to all be tied to a misunderstanding of java basics. For example: final EntityAIControlledByPlayer aiControlledByPlayer; Doesn't this redline/error in eclipse as a compiler error? I would at least assume so. And what is the purpose of the first if statement?
-
How to add damage source?
Where is this mysterious var defined? Horrible variable name btw, have no idea what it is Anyways something on that line is null, I'd just set a breakpoint and check what. But first go read up on Null pointer exceptions, when you know what null is, understanding the crash is way easier. Also if you want more specific help with the code then showing the whole class or atleast the whole scoope would be helpful
-
help to make Multiple Machines and Items use single Block IDs
I'm not familiar with how exactly this works but using nbt data is one solution. If you search these boards I'm sure you can find quite a few threads about it, some of which have written solutions
-
Issue with saving float in TileEntity
What value does rotate get at this line during debugg? float rotation = tile.getRotation(); Also all the renderAt methods ask for the TE as input, where do you call this from? During debug, what is the value for rotation inn the passed inn TE?
-
How to keep the Client and Server synced using packets.
http://www.minecraftforge.net/wiki/Packet_Handling
-
How to keep the Client and Server synced using packets.
then you are doing something wrong, but no one can say why since you ddin't show what you are doing
-
Water flow direction
If you find the source, then you find the direction? Or check two blocks and find out how far from it's source they are, then you know it's direction as well
-
Help understanding making a block
As a big newbie new to programming and modding I started working wtih modding before I learned a programming language, and boy how slow it went compared to the speed I could do things at after just a few lectures inn programming! Do yourself a huge favour learn java basics first Check out cs106a from standord high quallity and free!
-
Blocks & instances. way over my head, could anyone explain?
well now that you mention it that's true. I didn't think of that despite of the fact that I now realize I knew that inn theory, thank you So that's true and the different Block Classes aren't static so in theory one could create instances of them elsewhere. But since blocks only are defined inside the Block.class and when the game refers to a block it looks at the instance defined inside Block.class? then it's not completely unrelated Or well i guess since it's meaningless information, as if you know that there are no other places blocks are defined then you know the answer to the issue regardless of whether it's static or not
-
test mod to try and understand packets
From your KeyHandler: if (ent!=null && ent instanceof EntitySpeedBoat) From here, you say that if you are driving a SpeedBoat, then you do NOTHING!!! and else if, you do something, but you only do that IF you are not riding a entity
-
Blocks & instances. way over my head, could anyone explain?
Yeah I know the pure basics at the very least, that's why his post and replies made no sense to me. Since he made his statement in the way that he did I figured there must either be something I failed completely at understanding or he's way into ponyland on this one I know that blocks are defined as static inn Block.java and I do have a understanding of the programming basics for OOP. But I considered this to be something so simple, so trivial that someone claiming against it in a tutorial on mcf would make someone react. Therefore since I'm only learning programming by self-study between full time work and all, for about a year.. I reasoned that the possibility of me being dead wrong, would be quite likely So I wouldn't go right out and accuse him of being mistaken. Especially considering that if I where to be wrong, then this would require me to get someone who could explain me how and why I would be wrong. And insulting someone wouldn't lead me too learn anything Thanks <3
-
Blocks & instances. way over my head, could anyone explain?
I was sure I knew how blocks where handled and at least the general idea of it, but I guess I'm completely stupid then as I doubt he's trolling inn such a way:P So a guy on the MCF has a tutorial inn which he does this: public int blockDataValue; @Override public void onBlockAdded(World world, int i, int j, int k) { this.blockDataValue = ItemBlockBattery.value; } And upon dropping it returns a item with the proper value of the block. However, I thought there was only 1 single instance of any given block at any given time? that the world was just a bunch of block ID's (and meta/te), not several block instances? Into which he replies: So uhm, I'd like to know whats going on? ref: http://www.minecraftforum.net/topic/1793233-tutorial152forge-cephrus-advanced-modding-tutorials/
-
test mod to try and understand packets
can't you take a look into how the ai for controlling pigs work? or the original boat movement?
-
[1.5.2][SOLVED]Multitextured block like a Pumpkin!
oh well then it's exactly like the furnace mentioned by Draco! And like I said above about Icon arrays and the getIcon methods. You already have the solution
-
[1.5.2] Creating a pipe?
if you understand programming concepts (not just the keywords but what they do and what they actually mean) then it's like a 2, on the other hand if you are new to it all then It could quickly be a 4 or 9 on the 1-5 scale
-
Adjusting camera position
If he tells you how he did it, your code, logic and implementation of it will be the same. But even without that, as you're competitor you should understand his position, I hoped so at least
IPS spam blocked by CleanTalk.