Everything posted by GotoLink
-
GuiScreen and Item?
Don't code a mod because players easily can exploit them And they are actually complicated
-
Rendering hand with custom redered item.
You can use RenderPlayerEvent.Post and change bipedRightArm.rotateAngle if player is holding your item.
-
[solved]Music discs with 1.6.2
You may want to change this: @SideOnly(Side.CLIENT) /** * Return the title for this record. */ public String getRecordTitle() { return "C418 - " + this.recordName; } To whatever it is you want. In your constructor, this is useless: this.recordName = "moddisc"; because it is already done by the call to super(id, recordName); You can also remove: public final String recordName; this field already exists in the parent class.
-
[SOLVED]How can I abort the player's left-click action?
This,placed in your item, prevents the swing animation from both clicks. That should do, combined with your cancelled event. public boolean onEntitySwing(EntityLivingBase entityLiving, ItemStack stack) { /*you can add your custom item use action for both clicks here*/ return true; } public EnumAction getItemUseAction(ItemStack par1ItemStack) { return EnumAction.none; } This prevents any animation on right click. (it is already in Item by default by the way)
-
Crop Seeds Crash [Solved]
You need to have StrawberryCropBlock initialized before this. As of now it is initialized last.
-
Help again!! With switching metadata based on player direction!!!
...put the code into onBlockPlaced body ?
-
GuiScreen and Item?
Don't.Use.SideOnly.Annotation. tile.itemamount This field in your tile entity should be >0 in order for items to spawn. Where is it incremented ?
-
NBT's are not saving or saving too soon when the game is quit
public Packet getDescriptionPacket() { NBTTagCompound nbt = new NBTTagCompound(); this.writeToNBT(nbt); return new Packet132TileEntityData(this.xCoord, this.yCoord, this.zCoord, 3, nbt); } This is the packet that will be sent when world.markBlockForUpdate(...) is called. If you want to manage the receiving part of this packet, you can change it into a Packet250CustomPayload, add extra data, and send it through your channel. Actually, you should change it. A Packet132TileEntityData with type 3 is assumed to come from a TileEntityBeacon.
-
Recompile errors after fresh forge installation [SOLVED] [1.6.2]
Then you should install a more recent version of Java.
-
[1.6.2] Music disc not work.
You have to play the sound with "test:x" as name, I think.
-
Custom mob entity issues
You have client-server unsync issue. Look for any discrepancy between the two in the movement code.
-
Connecting to the Integrated Server
But you should have two screens. One is for the server holder and one for the client.
-
[1.6.2] Music disc not work.
You have to put soundPoolStreaming.addSound("folder:x.ogg") and then you can have it in "mods/mymod.jar/assets/folder/records/x.ogg" Provided it is a "record" type of sound you want. (and not music nor sound effect)
-
How to assign blocks sounds
If you want a new sound to be made when walking on your block: setStepSound(new StepSound("modid:customsound", volume, pitch)); when initializing block.
-
Recompile errors after fresh forge installation [SOLVED] [1.6.2]
@OwnAgePau Maybe you are calling this method from somewhere, just saying. @Hydroflame It depends on your version of Java, actually. But I agree it should work this way.
-
Connecting to the Integrated Server
From the log, the player is logged in. Which means you can get his socket adress, the player entity instance... You can use Minecraft.displayGuiScreen(instanceofyourguiclass), right ?
-
Coremod troubles (1.5.2)
I think you need a class that implements ModContainer, instead of your usual mod class. You'll receive events if you register your class to the bus and return true with : boolean registerBus(EventBus bus, LoadController controller);
-
[SOLVED]tiny problem
I don't think 65 can be properly divided by 11.
-
Recompile errors after fresh forge installation [SOLVED] [1.6.2]
Your error says that line var7.append(StatCollector.translateToLocalFormatted(this.field_111090_h, var13)); has wrong arg. From looking at StatCollector class, var13 should be an array of objects.
-
[1.6.2]need help with custon arrows [Solved]
Man, you are registering your entity twice. Just remove EntityRegistry.registerGlobalEntityID(EntityGuardAttackArrow.class, "guardarrow", EntityRegistry.findGlobalUniqueEntityId()); And you should extend RenderArrow and simply override protected ResourceLocation func_110775_a(Entity par1Entity) { return this.func_110779_a((EntityArrow)par1Entity); } With your ResourceLocation field. (which you may give a more significant name) Like this @SideOnly(Side.CLIENT) public class RenderAttackArrow extends RenderArrow { private static final ResourceLocation guardArrow = new ResourceLocation("jnosh_advitems", "textures/entity/guardarrows.png"); protected ResourceLocation func_110775_a(Entity par1Entity) { return guardArrow; } }
-
UpdateCheck with .txt File
How are your running the thread ?
-
[1.6.2] Overriding a GUI (pause menu, to be specific)
Considering your latest piece of code, you are on client side, so use only client ticks.
-
[1.6.2]need help with custon arrows [Solved]
Did you register you renderer ? Did you place your texture in: assets/jnosh_advitems/textures/entity/guardarrows.png
-
Recompile errors after fresh forge installation [SOLVED] [1.6.2]
Use \u00A7 instead of the section mark, or EnumChatFormatting.
-
UpdateCheck with .txt File
You can use an IConnectionHandler registered with NetworkRegistry.
IPS spam blocked by CleanTalk.