Skip to content
Ivorforce edited this page Oct 2, 2014 · 3 revisions

Are you a developer who wants to make use of Psychedelicraft's shader effects? No problem! You can send FMLInterModComms.IMCMessage to 'psychedelicraft' to retrieve values or add drug effects.

Use this as reference code: PSCommunicationHandler

**Example: ** Create an NBTTagCompound with the following key/value pairs, and send it to 'psychedelicraft' using FMLIntermodComms. This is an example for the key 'drugAddInfluence':

  • 'drugName' (Cannabis)
  • 'drugInfluenceDelay' (60)
  • 'drugInfluenceSpeed' (0.004)
  • 'drugInfluenceSpeedAdd' (0.002)
  • 'drugTotalEffect' (0.7)
  • 'worldID' (entity.dimension)
  • 'entityID' (par3EntityPlayer.getEntityID())

When Psychedelicraft next retrieves messages, it will add the influence to its effects.

Clone this wiki locally