Everything posted by Draco18s
-
[SOLVED] Exploding blocks underwater?
Which means....an explosion that has enough force...could destroy water blocks and beyond.
-
[SOLVED] Exploding blocks underwater?
It has to do with the fact that water has an explosion resistance of 500, which completely negates the explosion rays, I believe. *Checks* Yep. If I force water to have a resistance of 0, explosions happen as if they were in air.
-
[1.6.4] Sync Items In GUI Slot
There's you're problem, then! Now your challenge is to find a way to add a sanity check so it runs once. (Hint: flags)
-
[1.6.4] Sync Items In GUI Slot
Add an output statement where that happens. E.g. System.out.println("Subtracting 20 levels"); this.player.addExperienceLevel(-20); Check to see that it's running only once.
-
[1.6.x] Custom Particles?
THAT is the bit that was missing. Un momento. Edit: Works perfectly! Now I just have to take this class and make the changes necessary so the particle looks and acts like I want it to.
-
[1.6.4] Sync Items In GUI Slot
Let me see your code.
-
[1.6.4] Sync Items In GUI Slot
That's twenty levels I think. Try player.experience
-
[1.6.x] Custom Particles?
I have looked around for this and all I've found so far is a tutorial for 1.5 and "use EffectFX" which isn't helpful. Following the tutorial left me with nothing happening and I suspect there's some registration call that's needed, but I can't find it.
-
[1.6.4] Can't get entity to render.
TBH my class is basically a copy/paste of the Iron golem. I haven't dug in deeply enough to do a wholly custom mob like you are. I know it works, though.
-
[1.6.4] Can't get entity to render.
Voila, now all that needs to be fixed is the rendering registry. Lets see... I think you're rendering class is messed up. Take a look at mine: https://github.com/Draco18s/Artifacts/blob/master/draco18s/artifacts/client/RenderClayGolem.java
-
[1.6.4] Can't get entity to render.
Remove this: protected void applyEntityAttributes() { super.applyEntityAttributes(); this.getAttributeMap().func_111150_b(SharedMonsterAttributes.maxHealth); } You're telling the attribute map to register max health, which is already registered.
-
[1.6.4] Can't get entity to render.
EntityRegistry.registerGlobalEntityID(EntitySkeith.class, "Skeith", EntityRegistry.findGlobalUniqueEntityId(), 0xeaeae9, 0xc99a03); Remove that. Add this to your MAIN MOD class: EntityRegistry.registerModEntity(EntitySkeith.class, "Skeith", 0, this, 350, 5, false); EntityList.addMapping(EntitySkeith.class, "Skeith", 3, 0xeaeae9, 0xc99a03); You can hardly expect your entity to work properly if the server has no idea WTF it is.
-
[1.6.4] Can't get entity to render.
Need a few more pieces to help you out. Your main mod file (where you set up your egg and register your entity) and your client proxy (where you register the renderer)
-
[1.6.4] Sync Items In GUI Slot
Yep. Just build it one piece at a time, printing out data as you go until you're ready to start using it.
-
[1.6.4] Sync Items In GUI Slot
No no. All you need to do is send one integer. That integer says "I will be performing this set of actions" (see: my packet handler, the integer being discussed is the one that goes into the switch statement). In your case, that's all you need: an integer expressing which button was pressed. If you had additional information that needed to be passed, you'd also have to write and read those values (for example, my code handles a lot of potion effects, so I need the potion ID, power, and duration). And actually, you do have additional information to send: The location of the tile entity. This will require 4 more integers: dimension, X, Y, and Z. You can then use DimensionManager.getDimension(dimID).getBlockTileEntity(X, Y, Z) in order to get a reference to the TE and tell it to do something. (For sending, you can get the dim ID by world.provider.dimensionID)
-
[1.6.4] Sync Items In GUI Slot
ItemStacks are saved to NBT data, which is convertable to packet data. The cool thing about TileEntities is that this is all handled automagically. You just need to override two functions thusly: public Packet getDescriptionPacket() { NBTTagCompound nbtTag = new NBTTagCompound(); this.writeToNBT(nbtTag); return new Packet132TileEntityData(this.xCoord, this.yCoord, this.zCoord, 1, nbtTag); } public void onDataPacket(INetworkManager net, Packet132TileEntityData packet) { readFromNBT(packet.data); } Provided that your readFromNBT/writeToNBT functions are likewise up to date, this will work. Here's the thing though: this is server to client only. You need to implement a network handler and send a Packet250CustomData (sp?) when the user clicks the GUI button and have the server generate the item that goes in that slot.
-
[1.6.4] Get block icon based on TE
This will very likely not work with a dedicated server (... but feel free to test it out and report your findings). It won't You need to synch your TEs. public Packet getDescriptionPacket() { NBTTagCompound nbtTag = new NBTTagCompound(); this.writeToNBT(nbtTag); return new Packet132TileEntityData(this.xCoord, this.yCoord, this.zCoord, 1, nbtTag); } public void onDataPacket(INetworkManager net, Packet132TileEntityData packet) { readFromNBT(packet.data); }
-
Modding issues, please help
Probably check to see that you have OpenGL drivers. I don't really know.
-
[1.7.2]Advanced system control areas
Basically none. There are, however, existing permission system mods out there, although I think they're all Bukkit plugins.
-
[1.6.4][Solved]Running fine in eclipse, having problems when recompiled
Sure
-
Modding issues, please help
OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread. You have far more problems than modding.
-
[1.6.4][Solved]Running fine in eclipse, having problems when recompiled
Your zip file was probably not constructed properly. It should be [zip]/afg/flash/FlashMain.class
-
[1.6.4] Get block icon based on TE
public Icon getBlockTexture(IBlockAccess world, int x, int y, int z, int side) It's called any time the block receives an update.
-
[1.7.2]Advanced system control areas
Vague post is vague. It would appear that you do not know how to program anything, let alone pull this off by yourself. I do not know what you mean by "edit a little."
-
[1.6.4] [SOLVED] Different Armor texture path?!
That DOES help. Here's your problem: int uraniumRenderID = SeroCraft.proxy.registerArmorRenderID("serocraft/UraniumArmor_"); int copperRenderID = SeroCraft.proxy.registerArmorRenderID("serocraft/CopperArmor_"); int unobtaniumRenderID = SeroCraft.proxy.registerArmorRenderID("serocraft/UnobtaniumArmor_"); Compare and contrast to "serocraft:textures/armor/UnobtaniumArmor_1.png";
IPS spam blocked by CleanTalk.