Everything posted by Draco18s
-
[1.7.2]Find Player's spawn point instead of the global one
if (coordinates != null) { coordinates = par2World.getSpawnPoint(); Uh.
-
[Half-Solved]1.6.4 Forge OBJ Block Texture, and Not Solid
Colons are automatically converted to slashes when it loads textures. It's looking in "assets/dwadventure//textures" which doesn't exist (see the //?)
-
[1.6.4]Need some OreDict advice
You need to listen to ore dictionary events. Here's how I did it: public class EventHookOreRegistration { @ForgeSubscribe public void entityAttacked(OreDictionary.OreRegisterEvent event) { if(event.Name.indexOf("ore") >= 0 || event.Name.indexOf("gem") >= 0) { MapsBase.oreBlocks.add(event.Ore); //oreBlocks is defined in the base mod as a new ArrayList<ItemStack>(); } } } Also, use ArrayLists instead of static arrays, as then the array size is dynamic so you don't have to worry about making sure you have room for mods that load after yours (also, for blocks, use Block[] not Object[] if you're ever going to do it that way).
-
[1.5.2]A mod tried to open a gui on the server without being a network mod
player.openGui(ExoWorld_Client.instance, GuiRegistry.guiCharacter, Minecraft.getMinecraft().theWorld, (int) player.posX, (int) player.posY, (int) player.posZ); ...You know the player has a worldObj right? Not to mention that that function makes no frakking sense. It takes in a packet, then it turns the packet into an input stream, and then does nothing with it.
-
Texture sheet
How are you building your model?
-
[Half-Solved]1.6.4 Forge OBJ Block Texture, and Not Solid
Remove this from your block. You don't need it. If you think you do, you don't, and remove all references to it. It will only cause problems: public void Render(TileEntity par1Entity, double x, double y, double z) { GL11.glPushMatrix(); GL11.glTranslatef((float)x + 0.5F, (float)y + 0.5F, (float)z + 0.5F); FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("dwadventure", "/textures/blocks/EleventhTARDIS.png")); EleventhTardis.renderAll(); GL11.glPopMatrix(); } As for its nonsolidity: Your problem is because Minecraft will not let you create block bounds that extend past a full block in any direction except Y. As for your texture: Minecraft.getMinecraft().renderEngine.getTexture(tardisTexture);// dont create them here, create them in your constructor and save a reference as a member variable please FMLClientHandler.instance().getClient().renderEngine.bindTexture(new ResourceLocation("dwadventure", "/textures/blocks/EleventhTARDIS.png"));[/quote] "Don't create a texture here" just prior to a line creating a new resource location instead of using the saved one. Lawl. Have you checked that it's actually able to find your texture?
-
[1.7.2] Use Vanilla Item?
ItemStack#getItem()?
-
[Half-Solved]1.6.4 Forge OBJ Block Texture, and Not Solid
[me=Draco18s]cannot locate any code or visualization of the problem.[/me] [me=Draco18s]determines that he cannot help and leaves.[/me]
-
[1.6.4]Face me particles!
Sounds like a color is not getting cleared from somewhere. (Personally I have alpha transparency issues: that is, I cannot make my particles fully solid without revoking transparency entirely, where I'd like to have a gradient)
-
[1.5.2]A mod tried to open a gui on the server without being a network mod
See, your problem is that you're never intending to distribute the server-side mod. Stop thinking about it like that.
-
[1.5.2]A mod tried to open a gui on the server without being a network mod
This is where the magic of config files comes in. DON'T PUT YOUR SQL INFO IN THE CODE. Reference an external file.
-
[1.6.4][Forge]Server error
- [1.5.2]A mod tried to open a gui on the server without being a network mod
Dude. If you're distributing your server-side mod, it's stealable. You also never mentioned "anti-steal" at any point prior to this.- [1.6.4] Creating new chest problem......texture {Solved}
Main.orb_crystal_chest is probably the null object. Check on that.- [1.6.4]Face me particles!
It's called the Magic of glRotate~- Item decompiler tile entity problem !
Seriously, no one knows.- [1.5.2]A mod tried to open a gui on the server without being a network mod
That...is not how you do client/server mods.- Make only Items pass through block
Not sure you can...you could certainly make a very thin, fully solid top surface and if an item collides with it, just reposition the item to below that barrier.- [1.6.4] Custom Projectile detonating on character if target is within 5 blocks?
(As a correction, the function name is rayTraceBlocks_do_do as well as two variations on clip() but both just call rayTraceBlocks_do_do with false for the additional parameters)- EntityPlayer mismatched function names
There's a "force change" command. I just don't remember what it is. And last time I tried to ask, I was ignored. I've had to use it to push a change to the javadoc for an already renamed function.- [1.6.4]Problem with NBT, TEs and onItemUse
Probably has to do with the fact that Euler angles suck and quaternions are better. There is probably not anything you can do.- [1.6.4]Problem with NBT, TEs and onItemUse
I use that feature to put custom values into a mob spawner placed during world gen, so that it will spawn a custom mob and at a much lower rate than the default. http://www.minecraftforge.net/wiki/Mob_Spawners- [1.6.4] Creating new chest problem......texture {Solved}
So would I delete the TileEntityOrbChestRender class and in replace make a new class exactly like the TileEntitySpecialRenderer? You don't have a TileEntityOrbChestRender. Or if you do, you never put it in your original post and never registered it in your client proxy.- [1.6.4] Custom Projectile detonating on character if target is within 5 blocks?
There's also World#raycast_do_do- [1.6.4]forge install problem
OMFG. You really never passed Reading Comprehension, did you? Read that, what does it say? - [1.5.2]A mod tried to open a gui on the server without being a network mod
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.