Jump to content

Animefan8888

Forge Modder
  • Posts

    6157
  • Joined

  • Last visited

  • Days Won

    59

Posts posted by Animefan8888

  1. 21 minutes ago, deerangle said:

    I was trying to add a capability, but for some reason, the AttachCapabilitiesEvent isn't being fired (checked with breakpoints).

    When did you expect it to fire? It fires when a TileEntity is created. And it definitely fires. Also are you wanting to attach it to every TileEntity in the game because if you only want it on your TileEntities that is not how you do it.

  2. 1 minute ago, Jipthechip said:

    I did that, and it just ended up never getting to the code I wanted it to.

    Which means I was wrong about it being a World instance when you need it to be.

    13 hours ago, Animefan8888 said:

    I'm not sure if this still works, but you might be able to cast the ILightReader to a World

     

  3. 2 hours ago, DrunkBlood said:

    How do I disable features via my Mod Config the proper way?

    I tried only registering them when my Config says but that had problems with ModConfigEvent firing late and other default values not being set.

    Well you always register every registry entry. You then use the config settings to prevent or allow the attainment of the Item/Block/Enchantment.

  4. 27 minutes ago, Jipthechip said:

    My BlockState became too complicated for the values I wanted to feed into my IBlockColor#getColor() implementation.

     

    Is there any alternative to getting values from the BlockState, or will I have to use a TER/TESR?

    I'm not sure if this still works, but you might be able to cast the ILightReader to a World(do an instanceof check it can be null). Then if it is use World::getTileEntity and store your colors in the TileEntity.

    • Like 1
×
×
  • Create New...

Important Information

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