User Tools

Site Tools


zh_cn:tutorial:status_effects

Differences

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

Link to this comparison view

Next revision
Previous revision
zh_cn:tutorial:status_effects [2023/01/12 06:37] – create translated page tao0luzh_cn:tutorial:status_effects [2023/01/12 07:08] (current) – [注册药水效果] fix code errors tao0lu
Line 5: Line 5:
   * 添加自定义功能   * 添加自定义功能
   * 注册你的药水效果   * 注册你的药水效果
-  * 给你的你的药水效果添加翻译和材质+  * 给你的药水效果添加翻译和材质
  
 ==== 创建药水效果类型 ==== ==== 创建药水效果类型 ====
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);
   }   }
 } }
zh_cn/tutorial/status_effects.1673505424.txt.gz · Last modified: 2023/01/12 06:37 by tao0lu