Everything posted by yariplus
-
Overriding onUpdate() to change an item after 600 ticks?
Do you mean overriding the item like this? player.inventory.getCurrentItem().stackSize--; player.inventory.addItemStackToInventory(new ItemStack(Items.bucket));
-
[1.7.10] Get Player's Capabilities In OnUpdate & Key Handling With Packets
Well, you can only check input on the client side. Then you need to send the result to the server. This boolean is true if the player is inGame (ie not in a menu). FMLClientHandler.instance().getClient().inGameHasFocus
-
[1.7.10] Player coordinates
I think this is what you want. EntityPlayer.getLook(float distance) EDIT: nvm, use shield's answer. getLook just finds the direction you are looking I think.
-
[1.7.10] Player coordinates
On the player tick, or on right click?
-
[1.7.10] [Solved] Custom Armour Models
Can you post the model code?
-
[1.7.10] Destroy an item
--itemStack.stackSize;
-
[1.7.10] [Solved] Custom Armour Models
Never mind about the static, I thought you were trying to reference an instance of the model. I was just assuming the TechneModel was not a ModelBiped, and you would have to set the properties manually. Are you doing "return new ModelRCPChest();"
-
[1.7.10] [Solved] Custom Armour Models
Yes, there needs to be a static instance to reference it from another class. But also, the method returns modelBiped, so it looks like you need to create one and set the properties to the correct parts based on the armor slot. I'm just guessing on that though.
-
[1.7.10] [Solved] Custom Armour Models
Is it public static?
-
[1.7.10][Solved]Generated Structures have non-gen blocks in them.
Did you try turning up the weight in registerWorldGenerator?
-
[1.7.10] Can I use Thermal Expansion Pulverizer recipes?
Oops! Sorry about that. ThermalExpansion has a dev build which will give you the method stubs when put into your dev environment. This is what IntelliJ says for me. The RecipePulverizer subclass is at the bottom.
-
[1.7.10] Can I use Thermal Expansion Pulverizer recipes?
That doesn't sound right, you should be calling the methods in this class
-
Reading from NBT issue
Sounds like the block is not being updated with markDirty, try adding markBlockForUpdate
-
[1.7.10] Get Player's Capabilities In OnUpdate & Key Handling With Packets
onCreated says it's only called when the item is crafted. Did you possibly already have items you spawned in saved in the world? That would cause an NPE. You might want to run your null check in the onUpdate.
-
Crafting Recipes Will Not Work.
"W", Blocks.planks, "I", Items.iron_ingot needs to be 'W', Blocks.planks, 'I', Items.iron_ingot
-
Animated Model Problem
You already have a reference to tileEntity, you don't need the world, but you do need to store the rotation in the tileEntity like Jordor suggested. Such as: public class BlueSirenTileEntity extends TileEntity { public float rotation = 0; } then in the Block, instead of changing the model, change the rotation of the TileEntity: if (par1World.isBlockIndirectlyGettingPowered(par2, par3, par4)){ if (world.isRemote) ((BlueSirenTileEntity)world.getTileEntity(par2, par3, par4)).rotation += 0.05F; } then just use ((BlueSirenTileEntity)tileentity).rotation in your renderTileEntityAt method to determine how to render the model.
-
Problem with TileEntitySpecialRenderer
I read it as
-
Problem with TileEntitySpecialRenderer
Sounds like you didn't use @Override public TileEntity createNewTileEntity(World world, int meta) { return new TileEntityXY(); } in your block class. Casting the TileEntity in the constructor won't make it a TileEntityXY. So it never saves your boolean.
-
[1.7.10] Chat Message Gets Sent Twice?
Did you check the side? add if(!worldObj.isRemote)
IPS spam blocked by CleanTalk.