Everything posted by Draco18s
-
Texture won't show.
and the filename?
-
Add boolean to entity
After you right click you would have to set a variable in the itemstack that would then be checked/modified by the updateTick function. Take a look at how I handle it here: https://github.com/Draco18s/Artifacts/blob/master/draco18s/artifacts/components/ComponentFireball.java (right click method) https://github.com/Draco18s/Artifacts/blob/master/draco18s/artifacts/item/ItemArtifact.java (updateTick method)
-
A "final" reference to textures.
public static boolean hasConnectedTexture = false; public static boolean isMaelstrom = false; Mmmm....static....
-
[Question] Is it possible to use blocks from other mods?
You can.
-
Rotate TileEntityModel
GL11.GL_rotate(angle, amount_on_xaxis, amount_on_yaxis, amount_on_zaxis) So probably, figure out how far to rotate it (metadata) and then GL11.GL_rotate(angle, 0, 1, 0)
-
Texture won't show.
And where is your texture located?
-
Add boolean to entity
Question: What do you want to happen if there is only one entity in the area? What do you want the other 8 rockets do? As for the boolean: yes. anEntity.entityData.setBoolean("targettedByRocket",true) and anEnttiy.entitytData.getBoolean("targettedByRocket") And you'll want to set that value to false after the rocket deals damage or just before spawning any, depending on how multiple shots from your rocket launcher should work.
-
how to set player specific nbt tags outside of the EntityPlayer class
//in any class that is not EntityPlayer public void someGenericFunctionThatPassesEntityPlayer(EntityPlayer player) { player.entityData.setInteger("level",someValue); }
-
Forcing renderer to change texture
That code does not help solve the problem as there are NO references to packets in that function.
-
[SOLVED] only getting blocks from itemstacks
Considering I forget the [shift] in the shortcut so frequently...
-
[Question] Is it possible to use blocks from other mods?
You can do a soft dependency, its just a lot trickier to get working properly. And the other mods need to have an exposed API that you can use in your development environment.
-
[SOLVED]IItemRenderer not rendering EQUIPPED and EQUIPPED_FIRST_PERSON texture!
do this: if(data.length < 2) { return; } See if that helps.
-
Forcing renderer to change texture
Mmm~ Client-server disparity. Solved by packets. You're sure you have this in your TE? 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); } And that right after you change the value you call world.notifyBlockChange()?
-
[SOLVED]IItemRenderer not rendering EQUIPPED and EQUIPPED_FIRST_PERSON texture!
You mean these lines? if(type == ItemRenderType.EQUIPPED) { } else if (type == ItemRenderType.EQUIPPED_FIRST_PERSON) { } First off, those aren't case statements. Second, duh. You're not doing anything. Anyway, you can bind textures through the TextureManager passed as data[1] (the player is data[0] by the way) and ItemRenderer.renderItemIn2D will render an item. If that doesn't work you can create a fake ItemEntity and render that instead using RenderManager.instance.renderEntityWithPosYaw
-
[SOLVED]IItemRenderer not rendering EQUIPPED and EQUIPPED_FIRST_PERSON texture!
Are you doing something that requires the item to not render as a default item? If so, what?
-
[SOLVED] only getting blocks from itemstacks
When I need just one, I don't bother with the shortcut.
-
[Question] Is it possible to use blocks from other mods?
It would also make your mod dependent on the other mod.
-
1.6.4 textures won't show on items
OOmod != oomod
-
[SOLVED]IItemRenderer not rendering EQUIPPED and EQUIPPED_FIRST_PERSON texture!
You also don't need to get the Tessellator from an entity: Tessallator.instance Magic. The better question is: What are you trying to do?
-
[SOLVED]IItemRenderer not rendering EQUIPPED and EQUIPPED_FIRST_PERSON texture!
So...you use the EntityLiving to get the ItemRenderer, which you then don't use...
-
[SOLVED] only getting blocks from itemstacks
When that happens, just go up a few lines and do this: ItemBlock b; Then it'll ask you to import (or create) the class ItemBlock. Just import it and the "incompatible" conditional error will go away. That error comes up when it doesn't know what type a class is, so the IDE can't make the comparison and check for validity. (After you import, you can delete the line)
-
[1.7.2] Item name displaying wrong - no texture
appleCream != appleicecream
-
Need Help Adding Items To Minecraft
Rename your variables. Create new variables. Use your IDE's code hinting and error hinting capabilities. This is BASIC JAVA. I am not going to help you with that, as you should already know it.
-
Need Help Adding Items To Minecraft
public void preInit(FMLPreInitializationEvent event) { { CBingot = new CBingot(5000); CBingot = new CBingot(5001) .setMaxStackSize(16).setUnlocalizedName("genericIngot"); } @EventHandler public void load(FMLInitializationEvent event) { LanguageRegistry.addName(CBItem, "Generic Item"); LanguageRegistry.addName(CBIngot, "Generic Ingot"); // Stub Method } Ok, first off, don't name your variables the same as your class name. Second, you never defined nor declared CBItem.
-
Need Help Adding Items To Minecraft
And you still thought that it was a good idea to call the class constructor from inside the class constructor. Not to mention that that tutorial in no way has you doing that. Compare: package tutorial.generic; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.item.Item; public class GenericItem extends Item { public GenericItem(int id) { super(id); // Constructor Configuration maxStackSize = 64; setCreativeTab(CreativeTabs.tabMisc); setUnlocalizedName("genericItem"); } } With public class CBingot extends Item { public CBingot(int par1) { super(par1); final Item CBingot = new CBingot(5000); //you added this line // Constructor Configuration setMaxStackSize(64); setCreativeTab(CreativeTabs.tabMaterials); setUnlocalizedName("Celestial Bronze Ingot"); LanguageRegistry.addName(CBingot, "Celestial Bronze Ingot"); }
IPS spam blocked by CleanTalk.