@@ -58,12 +58,14 @@ public class Pirates implements ModInitializer {
58
58
.build ();
59
59
60
60
public static float baseShotPower ;
61
+ public static int pursuitDistance ;
61
62
62
63
@ Override
63
64
public void onInitialize () {
64
65
65
66
ConfigUtils .checkConfigs ();
66
67
baseShotPower = Float .parseFloat (ConfigUtils .config .getOrDefault ("base-shot-power" ,"2.2" ));
68
+ pursuitDistance = Integer .parseInt (ConfigUtils .config .getOrDefault ("pursuit-distance" ,"10000" ));
67
69
registerEntityThings ();
68
70
//entity types do it themselves
69
71
registerBlocks ();
@@ -97,7 +99,7 @@ private void registerEntityThings()
97
99
{
98
100
99
101
FabricDefaultAttributeRegistry .register (PIRATE_ENTITY_TYPE , PirateEntity .attributes ());
100
- FabricDefaultAttributeRegistry .register (SKELETON_PIRATE_ENTITY_TYPE , SkeletonPirateEntity .attributes ());
102
+ // FabricDefaultAttributeRegistry.register(SKELETON_PIRATE_ENTITY_TYPE, SkeletonPirateEntity.attributes());
101
103
102
104
}
103
105
@@ -166,7 +168,7 @@ private void registerItems()
166
168
167
169
public static final EntityType <PirateEntity > PIRATE_ENTITY_TYPE =registerEntity ("pirate" ,SpawnGroup .MISC ,EntityDimensions .changing (0.6f ,1.9f ),((type , world ) -> new PirateEntity (world )));
168
170
169
- public static final EntityType <SkeletonPirateEntity > SKELETON_PIRATE_ENTITY_TYPE =registerEntity ("skeleton_pirate" ,SpawnGroup .MISC ,EntityDimensions .changing (0.6f ,1.9f ),((type , world ) -> new SkeletonPirateEntity (world )));
171
+ public static final EntityType <SkeletonPirateEntity > SKELETON_PIRATE_ENTITY_TYPE = null ; //= registerEntity("skeleton_pirate",SpawnGroup.MISC,EntityDimensions.changing(0.6f,1.9f),((type, world) -> new SkeletonPirateEntity(world)));
170
172
171
173
172
174
0 commit comments