Everything posted by DragonessAtHeart
-
[1.8.9] What does worldObj.isRemote mean?
Hello everyone! I've been able to figure out a few things in my modding adventure, but I still am having trouble understanding what this sort of check is for. if (this.worldObj.isRemote) { ... I see it in many places, but not in others, and I'm not sure if it has something to do with the client side vs the server side? Can anyone point me in the right direction? Thanks!
-
[1.8.9] Entity Movement? [solved]
I'm having trouble figuring out how to make an entity that can both walk and fly. I've been able to implement the flying part, and the wander ai still works on the ground. For some reason, the entity refuses to walk up 1 block when wandering on the ground. With a lead, the entity follows until it hits something that it would need to move vertically upwards to get across and then just doesn't move. The entity can still fall (when it isn't flying), and vertical drops will not hinder the entity movement. Does anyone see anything I'm not seeing immediately? If not, I'll just keep trying. I am confused, and would like to know if there are any examples where this is done properly that I could try to understand? EDIT: It turns out it was a bounding box issue. The set size function I was using to change the bounding box messed with the move function in the Entity class. So as long as both the x and y values are less than 2, it works fine. Thanks.
-
[1.8.9] Mob Entity Invisible?
That's what I meant. I've been trying to do that, but it just is difficult if you can't figure out what one function is doing and it breaks the flow.
-
[1.8.9] Mob Entity Invisible?
I have done that and am still messing something up. I really wish I could say I understood completely what my code is doing, but I really don't. I hope you don't kick me off of the forums but this is why I am here. Because I don't know what the code is doing and I'm having a lot of trouble figuring it out. The examples in vanilla forge 1.8.9 that I have seem to use different methods than the ones you are telling me here. At least registering seems to be different. I don't want to give up. When I get home I'm going to take the cow and trace through every call that seems to have to do with rendering to see if I can't figure things out more. Thanks for all of your help. Let me know if you think of other reasons why the rendering just is very broken.
-
[1.8.9] Mob Entity Invisible?
Oh. I thought he said to start over because it was a mess.
-
[1.8.9] Mob Entity Invisible?
Please, tell me how to make it do something. Should I be calling it somewhere I'm not?
-
[1.8.9] Mob Entity Invisible?
Okay, I don't see anything else that Eclipse is yelling at me about so? How is this? The entity is still invisible. No crash, no missing texture file, I'm just confused. Thanks very much in advance. I'd really like to learn how to do this.
-
[1.8.9] Mob Entity Invisible?
Do you know of any good tutorials for adding a mob to 1.8 and how to register and render it? I clearly need a bit more direction but I'm not sure how to get it.
-
[1.8.9] Mob Entity Invisible?
How do I know which method to keep?
-
[1.8.9] Mob Entity Invisible?
Anyone?
-
[1.8.9] Mob Entity Invisible?
Okay guys. All of you smart people have helped me get this far. Why is my entity invisible? I'm not getting a texture not found error, and at first it was using some sort of block map texture file. But now I get a shadow, and nothing else. It moves and everything. What am I doing wrong?
-
[1.8.9] [SOLVED] Still having entity rendering problems
Now I'm just having texture problems but I'm trying to debug it now.
-
[1.8.9] [SOLVED] Still having entity rendering problems
Thank you. That mostly fixed it. I've seen many different tutorials telling me conflicting information.
-
[1.8.9] [SOLVED] Still having entity rendering problems
Guys, I'm sorry. I am still having problems with this. The entity spawns but is still only a white box. What am I doing wrong here? My client has this line RenderingRegistry.registerEntityRenderingHandler(EntityGiantLizard.class, RenderGiantLizard::new); in the init method. Am I doing something stupid like not actually making a call to the right method somewhere? Thank you in advance for your time.
-
[1.8.9] [SOLVED] Ticking Entity Crash Help/How To Use DataWatcher
So if I'm trying to make my entity tameable would I need to communicate with the server? How do I know what needs to be and what is just client side? Like health for example. That is only client right?
-
[1.8.9] [SOLVED] Ticking Entity Crash Help/How To Use DataWatcher
Okay. Thanks for giving me a place to start. How did you know it was the dataWatcher? I am still learning how to read the console errors. I've been using some stuff from the vanilla code without really understanding all of it, so no wonder I'm having problems. I've been reading up on the datawatcher stuff and it's starting to make sense, but can someone explain it a bit more for me? So the data watcher can have 32 objects of type [byte, Short, Integer, Float, String, ItemStack and ChunkCoordinates] So I'm assuming the string is for the name, ItemStack is for what the entity has, and the chunkCoordinates is for where it is located, right? What are the other types for? I have looked at this chart but I'm not quite sure how to read it. http://www.minecraftforge.net/wiki/Datawatcher And when you do have a specific number like 18 or something what does that mean? I know the wolf uses it, but I'm confused about what it means. Or does it not work like that? If you still need me to paste my code after this I will.
-
[1.8.9] [SOLVED] Ticking Entity Crash Help/How To Use DataWatcher
I keep getting this crash when I am trying to load a world that has already been created where I have spawned my broken entity. I say broken because it isn't rendering correctly, it just spawns a white box that runs around. I have no idea where to go from here about fixing that and making it render the model I have created. I'm not sure what is wrong though. What should I be doing differently?
-
[1.8.9] [SOLVED] Registering a new mob entity?
The example on github is ridiculously helpful. Thank you so much!
-
[1.8.9] [SOLVED] Registering a new mob entity?
I forgot to mention that I recently updated forge, so some of the code is still obfuscated, but I feel like that wouldn't effect anything right?
-
[1.8.9] [SOLVED] Registering a new mob entity?
The version of forge is: forge-1.8.9-11.15.1.1722, at least that's what it says on the changelog txt name. I know it's at least 1.8.9. The recommended one. RenderGiantLizard is here. Thank you so much!
-
[1.8.9] [SOLVED] Mob entity's id?
This is what I have for the @mod. @Mod(modid = Reference.MODID, name = Reference.MODNAME, version = Reference.VERSION) Should I be using any of that? The entityRegistry is the class I imported. I didn't write it.
-
[1.8.9] [SOLVED] Registering a new mob entity?
I'm sorry. I didn't mention that I had tried that already unsuccessfully. I am now doing this: registerEntityRenderingHandler(EntityGiantLizard.class, RenderGiantLizard::new); Which tells me that the registerEntityRenderingHandler method is not defined for my client proxy. I've imported import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraftforge.fml.client.registry.RenderingRegistry; import net.minecraftforge.fml.common.Mod.Instance; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.registry.EntityRegistry; import net.minecraftforge.fml.common.registry.EntityRegistry.EntityRegistration; import net.minecraftforge.fml.common.registry.LanguageRegistry; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.client.registry.IRenderFactory; import net.minecraftforge.fml.client.registry.ClientRegistry; import com.dragonessatheart.firstmod.*; So unless I'm forgetting something, I'm not sure what to do. When I try this: RenderingRegistry.registerEntityRenderingHandler(EntityGiantLizard.class, RenderGiantLizard::new); It says: The method registerEntityRenderingHandler(Class<? extends Entity>, Render<? extends Entity>) in the type RenderingRegistry is not applicable for the arguments (Class<EntityGiantLizard>, RenderGiantLizard::new) Which I honestly don't know how to decipher. Thank you!
-
[1.8.9] [SOLVED] Registering a new mob entity?
Okay, it's becoming clear I am confused about both registering the entity first, and then rendering the entity. I think the bigger problem I'm having is with rendering it.
-
[1.8]Error Spawning in Entities
I'm trying to understand how to register and then render a new entity. Sounds good!
-
[1.8.9] [SOLVED] Mob entity's id?
I'm not sure how much of it you want, but here is the line in case anything is obviously wrong with it. I'm setting the mob id like this public int mobID = -1; in the common proxy. This is in the init function in the client proxy. EntityRegistry.registerModEntity(EntityGiantLizard.class, "EntityGiantLizard", ++mobID, EntityRegistry.instance(), 80, 3, false, 0x1f8e35, 0x156325); I really appreciate the help, as I don't really have any idea what I'm doing yet. I hope I'm not annoying anyone.
IPS spam blocked by CleanTalk.