Jump to content

Laseph

Members
  • Posts

    23
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Laseph's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I know that pre 1.9 you just did worldObj.markBlockForupdate but i just can't find the 1.9 alternative. Thanks in advance, Laseph.
  2. Hello, I'm having difficulty finding good and consistent information on how to add sounds to my mod. I would like to have a loopable sound that stops when a smelter is done smelting. But i don't really know what the correct way of doing it is. I know you can play sounds by accessing the sound handler but i don't how to do the smelting sound with the stop condition. I would also want to know how to handle sounds correctly in general.
  3. So i have this variable i want to set when the TileEntity is created based on the metadata from the associated block. I first tried placing it in the constructor but i quickly found out the worldObj of the tileentity isn't created until later. Then i tried doing it in the onLoad method but it loops itself infinitely because of trying to get the blockstate via loading the chunk. Should i just do a check in the update event or is there a better way?
  4. ModBlocks.blockHutBaker.getRegistryName() already has your mod ID included. Removing 'Constants.MOD_ID + ":" +' from you registerRendering should normally do the trick.
  5. What do you have in ModBlocks?
  6. Can i see your block init?
  7. Thank you once again. It worked.
  8. Hello, first of all you should set the rotation of the block when the block is added in the block class. Using the furnace as an example. (I added the up and down direction for you.) Block class: In your blockstate you should state all variants. In your blockstate you might need to do different rotations because of how you setup the model. And the .json of the item of your block is in models/item is it? I am not a long time veteran of modding so if you have any further problems just ask them and also if you don't understand some parts ask abotu what they do instead of blindly copying. (Not saying that you do just to make sure.
  9. I have this problem with animating. That although using the partialTickTime it still fastens when with higher fps and lowers with less. AnimTimeRound is what i use for the animation. animTime += partialTickTime; animTimeRound = (float)((Math.round(animTime))*MAX_FRAMES_RATIO); if (animTime >= 1) { animTimeRound = animTimeRound-1; animTime = animTime-MAX_FRAMES; }
  10. Thank you very much.
  11. When is use this.blockType.rotateBlock(worldObj, pos, facing) my tileentiy gets reorientated but it also removes al data. Should it do that. Or have i done something wrong?
  12. A big thank you to the both of you.
  13. Thank you, that was indeed the problem. It's a bit unclear to me. If you do this for server client syncing what do you use Simple Network Wrapper for ?
  14. How would you do this with Simple Network Wrapper? I currently have this at getDescriptionPacket. PacketHandler.INSTANCE.getPacketFrom(new MessageTileEntityWashingTable(this));
  15. When joining my TESR doesn't update automatically based on the tileentity's values. This also happens when unloading chunks and reloading them again. Is this normal? Should I just check for it to update or should it do this automatically?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.