User Tools

Site Tools


tutorial:status_effects

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorial:status_effects [2021/09/13 08:24] – removed inline method as it doesn't seem to work bananatutorial:status_effects [2023/01/12 07:06] (current) – [Registering Status Effect] fix code errors tao0lu
Line 14: Line 14:
   public ExpStatusEffect() {   public ExpStatusEffect() {
     super(     super(
-      StatusEffectType.BENEFICIAL, // whether beneficial or harmful for entities+      StatusEffectCategory.BENEFICIAL, // whether beneficial or harmful for entities
       0x98D982); // color in RGB       0x98D982); // color in RGB
   }   }
Line 44: Line 44:
   @Override   @Override
   public void onInitialize() {   public void onInitialize() {
-    Registry.register(Registry.STATUS_EFFECT, new Identifier("tutorial", "exp"), EXP);+    Registry.register(Registries.STATUS_EFFECT, new Identifier("tutorial", "exp"), EXP);
   }   }
 } }
tutorial/status_effects.1631521488.txt.gz · Last modified: 2021/09/13 08:24 by banana