Jump to content

Greenman284

Members
  • Posts

    17
  • Joined

  • Last visited

Converted

  • Gender
    Male
  • Personal Text
    Everyone is secretly a ham

Greenman284's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Hmm, I did that, but I had no change in-game. I also looked at the renderbiped.java and this is the only thing I could find that would be helpful in the render***.java
  2. Ah ha! Sweet, thanks. Hadn't delved into the code that vanilla has to render items yet other than "hey, didn't I dup a mob that could do it?" and looking at that mob's render code (with no luck). Well, I had to use this for a custom item renderer with glowing parts of textures (if you wanna see what I mean: ) There's also some code in the RenderBiped or RenderLiving (can't remember which one) which deals with holding items by entities. If you want to do it easy on your Entity, I suggest you override the getHeldItem method in your entity class and return an ItemStack, containing the item which should be held. Is this what you mean about overriding the geHeldItem?
  3. Does nobody else have this problem other than me and Draco?
  4. Hello everyone, I've been trying to render a weapon with a custom mob that I created, but I can't seem to figure out what bit of code I need to put in the render***.java. I want to render just a stone sword in the right hand of the mob. Here is the render***.java class: If you need anything else to help me, then let me know. Any help is appreciated. Greenman
  5. *throws several thermonuclear bombs and a can of Coke at Greenman* I assure you, that would solve your problem, and in fact ensure that you don't have any problems anymore. wha...well played Newt, well played.
  6. Still can't figure it out for the life of me If anyone has any ideas about this, please hit me with everything you've got.
  7. I didn't really understand that, so let me clarify exactly what I want to do. I want a custom mob (with custom model) to render(already done), but I want to render a weapon for it at the same time (eg: sword) However, as I don't understand functions either, I would prefer to stay away from them. There must be another way, like what Newt was talking about. Could either of you explain what YOU would personally use to render a weapon for a mob? Thanks again for all the help I'm getting.
  8. I took those two things (EquippedItems and RenderCarrying) and I input them into the render***.java class. This is what it look like: However, the sword still doesn't render with the mob.
  9. Alright, so I found another tut to try working off of, and I got the entity*** to this: And I understand that I need to render getHeldItem, but I can`t for the life of me figure out what exact line of code I would put in. EDIT: So I think I found something that MAY render it, but the this.func_82428_a has an error. RenderNutcracker.java
  10. Ah, my bad. In that case, I haven't done anything to the render class, but here it is anyways:
  11. Hello all, I recently got my custom mob working with model and texture, and now want it to hold a weapon. I'm going to make a custom sword, but in the meantime I thought I would use a regular stone sword. Unfortunately, for some reason, my mob holds out his hand, as if he was holding an item, but there is nothing in the hand. Below will be the Entity****.java class: Any help would be greatly appreciated. Greenman
  12. hello, So I've got my mob (the Nutcracker) using its new model and is animated (more or less), so now I just need to texture it. I've made a custom texture that I've confirmed fits it in Techne. However, no matter where I put it, I can't seem to get the mob to use the texture, and all I end up with is a white model with the text "missing texture" on it. Here is the EntityNutcracker class: I've searched many threads on the forums, but to no avail of helping me. Any help would be greatly appreciated. Greenman EDIT: My bad, I actually figured it out. Locking the topic, a mod can delete this.
  13. I see! I just had to change the registerRenderThings to registerRenderers, and it used the model. Now I just need to have it actually touching the ground (the model is smaller than a normal human, so it's just floating in the air) Thank you very much for the help.
  14. No I meant your own render method. It should override the super classes' render method. Look at this model file from one of my mods and look at your class in comparison (especially the render method): https://github.com/SanAndreasP/TurretModv3/blob/master/sanandreasp/mods/TurretMod3/client/model/Model_MobileBase.java#L130-L152 Strange, I can't see any difference in our code (other than you have additional parts for your model).
  15. Your ModelNutcracker class is outdated (I see it's generated through Techne), it doesn't override any method from the super class, namely the render(...) method. You should look at it, that's most likely your problem! I seem to be confused...do you mean the super.render method that is in the ModelNutcracker class?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.