-
Posts
1689 -
Joined
-
Last visited
-
Days Won
1
Everything posted by SanAndreaP
-
That's because 1.3.2 is the actual Minecraft version. 1.2.5 is old now.
-
Look at my Particle Decoration Source here: https://github.com/SanAndreasP/Particle-Decoration-Mod I'm using an extra class for the inventory and make an instance field of the inventory in the entity.
-
That's wrong. Get a clean minecraft.jar again as well as a minecraft_server.jar. Then shove the minecraft.jar in your jars/bin and the minecraft_server.jar into jars. Then download the latest forge src archive (NOT the universal), open it, put the forge folder inside it to your MCP directory and run the install.bat (windows) or the install.sh (linux) which is inside that copied folder. Then wait and if it's done, you can code.
-
I have still a question about: how did you add forge? Also you need, since 4.0.0, both client and server in order to code with forge.
-
First: Don't bump! It doesn't get you more views. Second: Don't PM me for help. I see your thread regardless you PM me with the link to the thread. Third: How do you decompile? What are your steps you're doing / trying?
-
Where do you register your TileEntity? If it's not registered, it won't be placed with the block and so it won't open a GUI because it can't find any TileEntity.
-
Try to shove it into your load method then, works for me.
-
Do you even call your registerRenderInformation() from your proxy in your load method?
-
You can look at the source from my Particle Decoration Mod, here: http://www.minecraftforge.net/forum/index.php/topic,1909 It has both GUI types, with and without container.
-
Your init is somehow wrong. first you have to call registerGlobalEntityID, then registerModEntity. Also, for registerGlobalEntityID, don't use ModLoader.getUniqueEntityId(), instead use EntityRegistry.findGlobalUniqueEntityId(). And for registerModEntity, use an actual number instead of ModLoader.getUniqueEntityId(), like 0 for your first entity, 1 for your second one, 3 for your third one and so on. like this: EntityRegistry.registerGlobalEntityID(ThorMod_EntityEmeraldPrimed.class, "EmBomb", EntityRegistry.findGlobalUniqueEntityId()); EntityRegistry.registerModEntity(ThorMod_EntityEmeraldPrimed.class, "EmBomb", 0, this, 250, 5, false);
-
If it's still not working, try this: http://json.parser.online.fr/ It's a parser where you can insert your mcmod.info content and it'll shows you errors and you can correct them. If you still can't figure out how to do it, here's my mcmod.info file from the Clay Soldiers Mod: PS: My signature is supposed to be like this, it's just a joke
-
You have to insert 2 spaces before the author names, like: { "modinfoversion": 2, "modlist" : [ { "modid": "KeepItemsOnDeath", "name": "Keep Items on Death", "description": "A simple mod that allows you to NOT lose everything when you die. :-)", "version": "1.0", "mcversion": "1.3.2", "authors": [ "Bandayd", "glider521al" ], "credits": "Authored by Bandayd, based on an original mod by glider521al", "parent":"" } ] }
-
rev. 230 isn't the latest... the latest is like 243 or so. Try that.
-
just use the Main download thread. It's always up-to-date.
-
BiomeGenBase b = world.getBiomeGenForCoords(chunkX, chunkZ); You have to use instead of chunkX and chunkZ, the Xcoord and Zcoord.
-
[SOLVED]Entity not rendering/not detecting collision
SanAndreaP replied to battlefield's topic in Modder Support
Then you're registering them wrong, at least the first one: EntityList.addMapping(DartEntity.class, "Dart", getOrCreatEntityID("Dart", 42)); You have to use these methods to register your entity properly: EntityRegistry.registerGlobalEntityID(entity, entityName, EntityRegistry.findGlobalUniqueEntityId()); EntityRegistry.registerModEntity(entity, entityName, id, mod.instance, trackingRange, updateFrequency, sendsVelocityUpdates); so I would say in your case: EntityRegistry.registerGlobalEntityID(DartEntity.class, "Dart", EntityRegistry.findGlobalUniqueEntityId()); EntityRegistry.registerModEntity(DartEntity.class, "Dart", 0, DartMod.instance, 128, 1, true); The ID in registerModEntity is mod-specific, so your first entity should get 0 as ID, then your second gets 1 as ID and so on. -
Entitys only spawning at ( 0 , 0 , 0 ) at client side
SanAndreaP replied to Ninjusk's topic in General Discussion
rev. 200 is ancient! There are like 43 updates after that... -
[SOLVED]Entity not rendering/not detecting collision
SanAndreaP replied to battlefield's topic in Modder Support
the question is here: HOW did you register your entities? A piece of your code would be very helpful then. -
Did you delete META_INF? If yes, try an another archiver like 7zip and do it again with a fresh jar file! Looks like your archiver screws things up.
-
Okay, tyvm, but I have still the problem that the sound isn't played. The sound is registered and the file will be found, but the entity won't play it EDIT: Nvm, I'm using the worldObj field from my entity instead the ClientWorld from my proxy and it works now ^.^ EDIT2: It seems you have to use the server world for the entity, because it doesn't work with the client one...
-
Okay, I tried that now for myself and my sound won't register anywhere. In fact, the onSound method doesn't get even called (I've put a println in the method to test if it gets called). Did I do something wrong? My SoundHandler: The event bus will be registered in my ClientProxy like this: MinecraftForge.EVENT_BUS.register(new PD_SoundHandler()); how I want to call my sound (in my entity): PD_ModRegistry.proxy.getClientWorld().playSoundAtEntity(this, "particledeco.static", 1f, 1f); PS: It seems that Thor597 above me has the same problem
-
use instead if(Random.nextInt(1) == 0); this: if(world.rand.nextInt(1) == 0);
-
If you use a GUI, then you should do it with a packet, means the GUI sends a packet to the server, the server recieves it and will then teleport the player.
-
How do you register your biomes?