Jump to content
  • Home
  • Files
  • Docs
Status Updates
  • All Content

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Unbreachable

Unbreachable

Members
 View Profile  See their activity
  • Content Count

    2
  • Joined

    January 14
  • Last visited

    January 27

 Content Type 

  • All Activity

Profiles

  • Status Updates
  • Status Replies

Forums

  • Topics
  • Posts

Calendar

  • Events

Everything posted by Unbreachable

  1. Unbreachable

    [SOLVED] Passing Potion Effects As Potion Effect [1.16.4][Potions Effects][Food]

    Unbreachable replied to Unbreachable's topic in Modder Support

    Okay cool. Makes sense. Thanks! and Ill change that parameter to a supplier.
    • January 14
    • 2 replies
  2. Unbreachable

    [SOLVED] Passing Potion Effects As Potion Effect [1.16.4][Potions Effects][Food]

    Unbreachable posted a topic in Modder Support

    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"
    • January 14
    • 2 replies
  • All Activity
  • Home
  • Unbreachable
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community