package info.u_team.u_team_test.init;

import info.u_team.u_team_test.entity.TestLivingEntity;
import net.minecraft.entity.ai.attributes.GlobalEntityTypeAttributes;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;

public class TestGlobalEntityTypeAttributes {
	
	private static void setup(FMLCommonSetupEvent event) {
		event.enqueueWork(() -> {
			GlobalEntityTypeAttributes.put(TestEntityTypes.TEST_LIVING.get(), TestLivingEntity.registerAttributes().create());
		});
	}
	
	public static void registerMod(IEventBus bus) {
		bus.addListener(TestGlobalEntityTypeAttributes::setup);
	}
	
}

@@ -112,46 +112,33 @@
 raft
-.entity.ai.attributes.Global
+forge.event.entity.
 Entity
-Type
 Attr
@@ -146,59 +146,21 @@
 bute
-s;%0Aimport net.minecraftforge.eventbus.api.I
+Creation
 Event
-Bus
 ;%0Aim
@@ -187,47 +187,30 @@
 rge.
-fml.
 event
-.lifecycle.FMLCommonSetup
+bus.api.I
 Event
+Bus
 ;%0A%0Ap
@@ -281,100 +281,79 @@
 oid 
-setup(FMLCommonSetupEvent event) %7B%0A%09%09event.enqueueWork(() -%3E %7B%0A%09%09%09GlobalEntityTypeAttributes
+entityAttributionCreation(EntityAttributeCreationEvent event) %7B%0A%09%09event
 .put
@@ -441,14 +441,8 @@
 ));%0A
-%09%09%7D);%0A
 %09%7D%0A%09
@@ -545,13 +545,33 @@
 es::
-setup
+entityAttributionCreation
 );%0A%09

Use new EntityAttributeCreationEvent for registering entity attributes