Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Leaderboard

Popular Content

Showing content with the highest reputation on 02/28/17 in all areas

  1. 2 points
  2. I won't be giving you an more information, because the method that exists is built into the Java framework and mucking about with it and not knowing what you're doing means you're going to do it wrong. Even if it does compile and run without problems you'd still be doing it wrong and you'll end up incompatible with some mod somewhere because of some random thing you didn't account for. Like some other dickhead also mucking about doing the same thing you are for some reason. Then the game crashes and users come here and complain to Forge and it isn't Forge's problem and no one can slap you up side the head for doing something dumb because there's no indication in the crash report that your mod modified things. TL;DR just don't.
    1 point
  3. You declared fields (pos, facing & title) in a class and never gave them values. I told you above that you need to get data from the message m. What did you expect would happen when you passed uninitialized arguments to that constructor? Why are you even posting the crash here when it points directly to a face-palm level programming omission? Your effort here is looking more and more like cargo-cult programming, which will leave you wondering why you stop getting help in this forum. You've left the realm of Forge learning and entered the realm of either Java ignorance or just plain laziness. Put some effort into understanding Java, and the plain English meaning of your error message, and the "logic" of your own program sequence before asking for any more help.
    1 point
  4. Note: Forge has an energy capability system already set up for use, you just need to implement it.
    1 point
  5. The building of a system, you need to know how your energy will work. Is it going to be pipe based or wireless? If it is pipe based you need to know how to transfer that energy between pipes, will you store it in a single pipe, if you have pipes connected from one place to another and break one connection in the middle what happens, how do you separate the pipe system? If you plan on it being wireless how will you send it, in an area, through whitelisting, or through the player like extra utils?
    1 point
  6. well you need to know what is tranfered, and how to store them , in and int/flaot also do you need some kind of path tracing so the eergy knows were to flow to. Also to what extend do you plan your power system, simple like RF or complex like real V and A
    1 point
  7. That is not what that document says. It is saying that EntityJoinWorldEvent extends EntityEvent already, not that YOU need to extend EntityEvent in order to use it.
    1 point
  8. first of all. If you want to listen to events you should be doing that inside an event listener class (if you dont know what im talking about google minecraft event handling you will find enough information there) You are using the EntityJoinWorld event. Which is the wrong event for listening for the impact of an arrow.. I dont even think there is such an event in forge. I was coding sth similar once, and I remember that I had to use the event for updating entities (LivingUpdateEvent), check if the arrow is inside an block (I see the EntityArrow class now has the property inTile, you will need reflection to access the private field) if that is != null you can create an explosion at the position of the arrow. Although I am not sure if using reflection is the right thing for something that isnt that experienced in java Greetz Failender
    1 point
  9. Try moving assignments such as "EntityRegistration registration = ..." into methods whose timing assures that they'll get values other than null at the time of assignment. You might be far enough along in this that you need more general help to understand the differences between preinit, init etc, so you might want to start a new thread.
    1 point
  10. Your models don't have to use the item's registry name as their file name, that's just the default model that's loaded when you don't specify anything else. The closing brace on line 5 of your model file closes the "textures" object, but the top-level object is never closed.
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.