I'm attempting to change the texture of the mob that I have created. And its more of add a texture then change one as the mob spawns without a texture its just white, so I thought maybe that's the problem so I add the default texture of "/mob/zombie.png", however when I go in game to change the texture to a custom one via the gui it changes but once I click "return to game" instead of return to the default zombie texture it changes to the blank white texture.
Sounds like you may have something (maybe in onLivingUpdate) that sets the texture. Did you post the entity code? If not, post it and I'll take a look.
I posted a poll. I am torn between just updating these tutorials, or starting a new thread(with 1.8/1.9) of updated and upgraded tutorials. If I start a new thread, I will go over this stuff again but coded to 1.8. I know that some of the code has changed (like with the model java files), and I wouldn't mind getting that back up to date. My issues are this. I'm getting close to having what I need to build my mod. Now I have switched over to 1.8, but I have not ported my 1.7.3 stuff over, nor will I. That was testing stuff, so it's more reference than anything else. I of course will be re-creating most of it. In that sense, I wouldn't mind sharing that "build-journey" with the forum. So my idea is kind of a split WIP/Tutorial thread. That way I'll still share my knowledge and learning with those that want to learn.
Please vote and let me know what you'd like. You may sway me one way or another.
Triple checking your own code doesn't help as much as when someone else looks at it. Proof reading is a hard art. In anycase, the only time I see this happening is when the texture is set to "", or a non-path. Post the line where you set the texture for your eagle. If you look at the conversations above, you can see the format that is needed:
"/path/pingname.png"
The texture code is
texture = "/mob/eagle.png";
The texture is in folder mob, and the png is eagle.png
And the PNG file is both in the temp folder and the jar file?
Only place I've ever placed the PNG was in I think /bin/minecraft/mob, or something like that. I have to go in a second so I can't look :/
I've never put anything in the jar file with MPC.
Only place I've ever placed the PNG was in I think /bin/minecraft/mob, or something like that. I have to go in a second so I can't look :/
I've never put anything in the jar file with MPC.
Really? I don't see how you've gotten any textures to show. Read back over my tutorial. I am sure that I've stated this.
What am I doing wrong in my ModelTurtle? I keep getting these errors:
== MCP v4.4 ==
> Recompiling client...
...
== ERRORS FOUND ==
src\minecraft\net\minecraft\src\ModelTurtle.java:11: cannot find symbol
symbol : constructor ModelQuadruped()
location: class net.minecraft.src.ModelQuadruped
{
^
src\minecraft\net\minecraft\src\ModelTurtle.java:59: cannot find symbol
symbol : method render(float,float,float,float,float,float)
location: class net.minecraft.src.ModelQuadruped
super.render(f, f1, f2, f3, f4, f5);
^
...
Really. This is the last time. USE ECLIPSE! it would tell you want you problem is. This alone is the thing that has pushed me over the edge. This is the last compile error I will ever answer.
As you can see by the error, it doesn't like your super call to render with the agruments f,f1,f2,f3,f4,f5. It tells you that it does not match the super class ModelQuadruped. Here is the first hint. Look at ModelQuadruped and see how its render method is defined. .IF you were using eclipse, it would tell you this.
This is the last time. Once I have my tutorials done up for 1.8 (or at least the first few, I'm at about 3 now) I will leave this thread open, but not return. You could easily post this in any other thread, but you chose to do so here, and, well you got your answer. Please do not post a compile error in my next thread.
Thanks for all that have voted. Looks like I will still be starting a new thread. If you are following this thread and are not moving to 1.8, I appologize. Once the new thread is started, I will not come back here. Feel free to PM me in a couple days if you miss the thread opening. I will gladly share the link. Also, I will start with getting set up with ModLoader, MCP, and Eclipse with links to the downloads. I will also inlcude basics like blocks, items, as well as block and tree generation, as well as some special tricks I found for them. I would also be including most if not all of the current tutorials with more modern and up to date changes that I have come across.
Thanks to those that have help with issues here, and mine elsewhere.
I'll still be watching for a few more days, but I think by Wednesday, I'll just be on my new thread.
Omg Everytime I use the techne thing it makes all of my models look like bipeds! Wtf, I only made 1 block to be a model and it comes out as a freaking biped... :angry.gif: I'm really getting pissed
Omg Everytime I use the techne thing it makes all of my models look like bipeds! Wtf, I only made 1 block to be a model and it comes out as a freaking biped... :angry.gif: I'm really getting pissed
Before you OMG and **** all over the place, did you read the tutorials? I specifically post how you can create simple mobs that look like bipeds, and how to use the model you created. I spent a lot of time going over the details. If you want to ask for help please first help yourself by looking at the material presented. I am getting tired of helping new modders (to minecraft) that want to jump straight to making a mob, and fail because they don't take the time to go over all the steps. Please read the tutorials first, then post when something doesn't work.
You have to be more specific about this button. If you are talking a GUI, then follow the GUI stuff I have posted. Make a button (call it Toggle Movement if you like). You would also need a boolean var (like public boolean canMove = true;)in your entity code. If you follow the example of my GUI interfacing with a mob, when the button is clicked you can simple do themob.canMove = !themob.canMove.
If you want it to be when you right click the mob, then skip the GUI part and just make it in the interaction method.
Before you OMG and **** all over the place, did you read the tutorials? I specifically post how you can create simple mobs that look like bipeds, and how to use the model you created. I spent a lot of time going over the details. If you want to ask for help please first help yourself by looking at the material presented. I am getting tired of helping new modders (to minecraft) that want to jump straight to making a mob, and fail because they don't take the time to go over all the steps. Please read the tutorials first, then post when something doesn't work.
Actually, I did read the tutorials, I've fixed up the model files. The only thing I need is the modloader code to spawn but it's not working. And I am not a new modder who goes straight to making a mob. I've made my own 3 sets of tools before. And I have made my own 4 mobs before. Also, I do take my time to actually read the tutorials and look up videos to see how it is done and how I can learn myself. I've found out why my mobs are just bipeds. I can't seem to figure out the new code for modloader.
Actually, I did read the tutorials, I've fixed up the model files. The only thing I need is the modloader code to spawn but it's not working. And I am not a new modder who goes straight to making a mob. I've made my own 3 sets of tools before. And I have made my own 4 mobs before. Also, I do take my time to actually read the tutorials and look up videos to see how it is done and how I can learn myself. I've found out why my mobs are just bipeds. I can't seem to figure out the new code for modloader.
haha, got it to work. The mobs look how I want them to look. I post some 1 video of it. Pretty cool. Turn out I needed to change some of the integers. Probably, I changed the code up a bit and screwed it over.
You have to be more specific about this button. If you are talking a GUI, then follow the GUI stuff I have posted. Make a button (call it Toggle Movement if you like). You would also need a boolean var (like public boolean canMove = true;)in your entity code. If you follow the example of my GUI interfacing with a mob, when the button is clicked you can simple do themob.canMove = !themob.canMove.
If you want it to be when you right click the mob, then skip the GUI part and just make it in the interaction method.
Is it possible to set-up the mobs inventory in such a way that certain items can be placed and taken out of the inventory if the player has a specific item. For instance lets say I had previous placed , and inside my mobs inventory for safe keeping and I was only able to do so because I had a magic wand. Now lets say I die and lose the wand and I go back to my mob and can open up its inventory and see the items that I had previous placed, now I can't place or take out any of the items inside the inventory because I don't have the wand, however I can take the if I have 2 x :Ham:, but I can't take the or unless I have lets say 5 x for the and 100 x for the :Diamond:. In addition to this lets say that my mob has decide to be generous and will give me 1 for every 5 wood planks that I place inside his inventory but will take back the if I decided that I wan't the planks back. I hope I have made my self clear if not please feel free to ask for more clarification. Thanks in advance.
You are asking for a pretty complex system. I'm not sure how to be able to view and not take items. I haven't done any advance inventory stuff yet. It seems that you are making a bartering system, and with out setting proper values, or using a money system, this would be quite the mess to document for the player, let alone program. I would suggest that you look for a vendor tutorial and work from that. I myself will be making one in the near future (for 1.8), but no ETA yet.
Ok, im trying to make a entity spawn another entity upon death by using some of the code from the spawner block,
i get only one error that i cant seem to fix (i checked it though eclipse but it couldnt fix my problem)
basicly the errors are
cannot not find symbol varible i
cannot not find symbol varible j
cannot not find symbol varible k
Ok, im trying to make a entity spawn another entity upon death by using some of the code from the spawner block,
i get only one error that i cant seem to fix (i checked it though eclipse but it couldnt fix my problem)
basicly the errors are
cannot not find symbol varible i
cannot not find symbol varible j
cannot not find symbol varible k
If any one could help me i would apreciate it,
thanks
Also i didnt know where else to post this, so i just posted it here because its basicly using the code from the spawner block
As the code shows you need i, j, and k. These are x,y, and z respectively. So, looking at your code, I would assume that entity is what was killed, so use it's posX, posY, posZ. so replace i,j,k with entity.posX, entity.posY, and entity.posZ.
Sounds like you may have something (maybe in onLivingUpdate) that sets the texture. Did you post the entity code? If not, post it and I'll take a look.
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
I posted a poll. I am torn between just updating these tutorials, or starting a new thread(with 1.8/1.9) of updated and upgraded tutorials. If I start a new thread, I will go over this stuff again but coded to 1.8. I know that some of the code has changed (like with the model java files), and I wouldn't mind getting that back up to date. My issues are this. I'm getting close to having what I need to build my mod. Now I have switched over to 1.8, but I have not ported my 1.7.3 stuff over, nor will I. That was testing stuff, so it's more reference than anything else. I of course will be re-creating most of it. In that sense, I wouldn't mind sharing that "build-journey" with the forum. So my idea is kind of a split WIP/Tutorial thread. That way I'll still share my knowledge and learning with those that want to learn.
Please vote and let me know what you'd like. You may sway me one way or another.
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
The texture code is
The texture is in folder mob, and the png is eagle.png
And the PNG file is both in the temp folder and the jar file?
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
Only place I've ever placed the PNG was in I think /bin/minecraft/mob, or something like that. I have to go in a second so I can't look :/
I've never put anything in the jar file with MPC.
Actually the GUI works, the spawning part of it not so much.
Really? I don't see how you've gotten any textures to show. Read back over my tutorial. I am sure that I've stated this.
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
What am I doing wrong in my ModelTurtle? I keep getting these errors:
Really. This is the last time. USE ECLIPSE! it would tell you want you problem is. This alone is the thing that has pushed me over the edge. This is the last compile error I will ever answer.
As you can see by the error, it doesn't like your super call to render with the agruments f,f1,f2,f3,f4,f5. It tells you that it does not match the super class ModelQuadruped. Here is the first hint. Look at ModelQuadruped and see how its render method is defined. .IF you were using eclipse, it would tell you this.
If you are having this much trouble... HERE:
This is the last time. Once I have my tutorials done up for 1.8 (or at least the first few, I'm at about 3 now) I will leave this thread open, but not return. You could easily post this in any other thread, but you chose to do so here, and, well you got your answer. Please do not post a compile error in my next thread.
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
Thanks to those that have help with issues here, and mine elsewhere.
I'll still be watching for a few more days, but I think by Wednesday, I'll just be on my new thread.
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
Before you OMG and **** all over the place, did you read the tutorials? I specifically post how you can create simple mobs that look like bipeds, and how to use the model you created. I spent a lot of time going over the details. If you want to ask for help please first help yourself by looking at the material presented. I am getting tired of helping new modders (to minecraft) that want to jump straight to making a mob, and fail because they don't take the time to go over all the steps. Please read the tutorials first, then post when something doesn't work.
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
You have to be more specific about this button. If you are talking a GUI, then follow the GUI stuff I have posted. Make a button (call it Toggle Movement if you like). You would also need a boolean var (like public boolean canMove = true;)in your entity code. If you follow the example of my GUI interfacing with a mob, when the button is clicked you can simple do themob.canMove = !themob.canMove.
If you want it to be when you right click the mob, then skip the GUI part and just make it in the interaction method.
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
Actually, I did read the tutorials, I've fixed up the model files. The only thing I need is the modloader code to spawn but it's not working. And I am not a new modder who goes straight to making a mob. I've made my own 3 sets of tools before. And I have made my own 4 mobs before. Also, I do take my time to actually read the tutorials and look up videos to see how it is done and how I can learn myself. I've found out why my mobs are just bipeds. I can't seem to figure out the new code for modloader.
haha, got it to work. The mobs look how I want them to look. I post some 1 video of it. Pretty cool. Turn out I needed to change some of the integers. Probably, I changed the code up a bit and screwed it over.
You have to be more specific about this button. If you are talking a GUI, then follow the GUI stuff I have posted. Make a button (call it Toggle Movement if you like). You would also need a boolean var (like public boolean canMove = true;)in your entity code. If you follow the example of my GUI interfacing with a mob, when the button is clicked you can simple do themob.canMove = !themob.canMove.
If you want it to be when you right click the mob, then skip the GUI part and just make it in the interaction method.
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
You are asking for a pretty complex system. I'm not sure how to be able to view and not take items. I haven't done any advance inventory stuff yet. It seems that you are making a bartering system, and with out setting proper values, or using a money system, this would be quite the mess to document for the player, let alone program. I would suggest that you look for a vendor tutorial and work from that. I myself will be making one in the near future (for 1.8), but no ETA yet.
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE
i get only one error that i cant seem to fix (i checked it though eclipse but it couldnt fix my problem)
basicly the errors are
and here is the code
If any one could help me i would apreciate it,
thanks
Also i didnt know where else to post this, so i just posted it here because its basicly using the code from the spawner block
As the code shows you need i, j, and k. These are x,y, and z respectively. So, looking at your code, I would assume that entity is what was killed, so use it's posX, posY, posZ. so replace i,j,k with entity.posX, entity.posY, and entity.posZ.
OLD 1.7: http://www.minecraftforum.net/topic/529327-modloader173-adding-custom-mobs-and-more/ ---inLanoche says : USE ECLIPSE