package info.u_team.u_team_test.init;

import info.u_team.u_team_core.util.registry.BaseRegistryUtil;
import info.u_team.u_team_test.TestMod;
import info.u_team.u_team_test.potion.RadiationPotion;
import net.minecraft.potion.Potion;
import net.minecraftforge.event.RegistryEvent.Register;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus;

@EventBusSubscriber(modid = TestMod.MODID, bus = Bus.MOD)
public class TestPotions {
	
	public static final Potion RADIATION = new RadiationPotion("radiation", 1200, 0);
	public static final Potion RADIATION_LONG = new RadiationPotion("radiation_long", 2400, 1);
	public static final Potion RADIATION_EXTREME = new RadiationPotion("radiation_extreme", 1200, 2);
	
	@SubscribeEvent
	public static void register(Register<Potion> event) {
		BaseRegistryUtil.getAllRegistryEntriesAndApplyNames(TestMod.MODID, Potion.class).forEach(event.getRegistry()::register);
	}
	
}

@@ -36,71 +36,8 @@
 t;%0A%0A
-import info.u_team.u_team_core.util.registry.BaseRegistryUtil;%0A
 impo
@@ -72,16 +72,16 @@
 estMod;%0A
+
 import i
@@ -167,64 +167,8 @@
 on;%0A
-import net.minecraftforge.event.RegistryEvent.Register;%0A
 impo
@@ -202,30 +202,25 @@
 bus.api.
-Subscribe
+I
 Event
+Bus
 ;%0Aimport
@@ -338,16 +338,56 @@
 ber.Bus;
+%0Aimport net.minecraftforge.registries.*;
 %0A%0A@Event
@@ -467,16 +467,144 @@
 ons %7B%0A%09%0A
+%09public static final DeferredRegister%3CPotion%3E POTIONS = DeferredRegister.create(ForgeRegistries.POTION_TYPES, TestMod.MODID);%0A%09%0A
 %09public 
@@ -876,25 +876,8 @@
 ;%0A%09%0A
-%09@SubscribeEvent%0A
 %09pub
@@ -905,154 +905,47 @@
 ter(
-Register%3CPotion%3E event) %7B%0A%09%09BaseRegistryUtil.getAllRegistryEntriesAndApplyNames(TestMod.MODID, Potion.class).forEach(event.getRegistry()::register
+IEventBus bus) %7B%0A%09%09POTIONS.register(bus
 );%0A%09

Add deferred register to potions as they crash the game cuz of the effects