Everything posted by Draco18s
-
2 Mods in 1 Workspace?
I don't know. It's trying to set the instance of the one mod to the other mod's instance. You should probably set both mods up the same (one's using a bunch of strings in its own class, the other is using references from a third class).
-
2 Mods in 1 Workspace?
[me=Draco18s]sees no code. Shrugs and leaves.[/me]
-
How to toggle off a function on unequip
onUpdate is called for ALL inventory items. onEntityItemUpdate is called for dropped items. You'll need to use both to insure that the effect is removed.
-
[1.6.4][Forge]Server error
Unless the xxx to go number gets larger with each printing of it, there's nothing to worry about.
-
[Half-Solved]1.6.4 Forge OBJ Block Texture, and Not Solid
Make sure your directory and file names are EXACT including upPer And loWeR casE.
-
[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.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.