#Registering Custom Potion Error

11 messages · Page 1 of 1 (latest)

junior heart
#

So I'm trying to use this script

    
    event.create('flight_potion').effect('alcocraftplus:flight')
})```
to register alcocraft's potion effect 'flight' as an actual potion to drink but im getting this error on startup
regal rootBOT
#

Paste version of startup.log from @junior heart

spring lichenBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

junior heart
#
[16:34:23] [ERROR] ! Error occurred while handling event 'StartupEvents.registry': java.lang.NullPointerException: No such element with id alcocraftplus:flight in registry minecraft:mob_effect!```
#

how the heck does this not specify the effects from alcocraft >.>

junior heart
#

Registering Custom Potion Error

grizzled totem
#

are you sure that it's the correct effect id?

junior heart
#

yes

junior heart
# grizzled totem are you sure that it's the correct effect id?

i also tried it with apotheosis's knowledge effect 'apotheosis:knowledge' and it doesnt seem to work either, its wierd because these effects work if i make a food item like this

                food
                    .hunger(3)
                    .saturation(5)
                      .effect('alcocraftplus:flight', 12800, 0, 1)
                      .effect('minecraft:poison', 15, 7, 1)
                      .alwaysEdible()
                      
            })```
#

it seems to be looking only in minecraft's mob-effect directory

wise crater