Jump to content

Unbreachable

Members
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Unbreachable's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Okay cool. Makes sense. Thanks! and Ill change that parameter to a supplier.
  2. Up front, I am very new to modding in forge, dabbled a bit in 1.6 (years ago) and just now getting back into it. I have created the following abstracted class for new foods. This gets called when registering the item/food in the differed register class. See below. This works as intended, in the FoodItemBase class, the .effect() call is looking for a Effects.XXX variable to get passed, however it must get passed into a Effect object in order to work. if you try to pass it as an Effects variable it throws an error stating "Effects can not be converted to effect" So my question is why does EffectInstance want a Effects variable to declare the type of potion effect in a normal none abstracted call, but when abstracted it wants the Effects variable passed as a Effect object? Thanks in advance! Example: This does not work ERROR:"Effects type can not be converted the Effect type"
×
×
  • Create New...

Important Information

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