Jump to content

[1.14] Capabilities for stamina?


nenikitov

Recommended Posts

Hello!

I'm currently working on adding stamina system in minecraft and i face a problem where i need to add "stamina" variable to each client.

Firstly, I would like to know did I get it right that capabilities is the correct way of doing it.

Secondly, i have watched already numerous tutorials and have red documentation about capabilities, but I still can't get how to make it work, I don't understand how to make your own capability and attach it to the PlayerEntity.

Thanks in advance.

Link to comment
Share on other sites

1. What are forge provided capabilities for? I get what is IItemHandler, but the other 2, like what is fluid inventory and energy container?

2. What is EnumFacing?

3. Documentation shows the creation of custom capabilities with 3 separate classes, capability, storage and factory. Then they show what is written in storage and factory class. So they leave cabability class empty or what should be written there?

4. After i ve written a custom capability, where should i inject it? In which class?

5. I didnt get in which class i should register my capability?

---------

6. Maybe there is an example code of working capability which i can read to understand better what and where should be done?

Link to comment
Share on other sites

After creating a PlayerCapabilities class and making it implement ICapabilitySerializable, importing everything and adding unemplemented methods i get this:

package com.nenikitov.nemod;

import net.minecraft.nbt.INBT;
import net.minecraft.util.Direction;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.ICapabilitySerializable;
import net.minecraftforge.common.util.LazyOptional;

public class PlayerCapabilities implements ICapabilitySerializable<INBT>
{
	@Override
	public <T> LazyOptional<T> getCapability(Capability<T> cap, Direction side) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public INBT serializeNBT() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void deserializeNBT(INBT nbt) {
		// TODO Auto-generated method stub
		
	}

}

1. Its here after "public class PlayerCapabilities implements ICapabilitySerializable<INBT> {" that I should write all my new variables that I want to add as stats to the player, right?

 

2. When i'm regestering PlayerCapabilities (i'm doing it inside FMLCommonSetupEvent in my mod class), what should i put as storage and factory?

CapabilityManager.INSTANCE.register(PlayerCapabilities.class, storage, factory);

 

3. For adding capabilities to the PLayerEntity, in my mod calss i wrote

private static ResourceLocation PlayerCapabilitiesResourceLocation = new ResourceLocation(modid, "player_capabilities");

And then i wrote this method

	@SubscribeEvent
	public static void attachPlayerCapabilities(AttachCapabilitiesEvent<Entity> event)
	{
		if (event.getObject() instanceof PlayerEntity)
		{
			event.addCapability(PlayerCapabilitiesResourceLocation, cap);
		}
	}

What should go in cap?

Link to comment
Share on other sites

1 hour ago, nenikitov said:

After creating a PlayerCapabilities class and making it implement ICapabilitySerializable, importing everything and adding unemplemented methods i get this:


package com.nenikitov.nemod;

import net.minecraft.nbt.INBT;
import net.minecraft.util.Direction;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.ICapabilitySerializable;
import net.minecraftforge.common.util.LazyOptional;

public class PlayerCapabilities implements ICapabilitySerializable<INBT>
{
	@Override
	public <T> LazyOptional<T> getCapability(Capability<T> cap, Direction side) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public INBT serializeNBT() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void deserializeNBT(INBT nbt) {
		// TODO Auto-generated method stub
		
	}

}

1. Its here after "public class PlayerCapabilities implements ICapabilitySerializable<INBT> {" that I should write all my new variables that I want to add as stats to the player, right?

 

2. When i'm regestering PlayerCapabilities (i'm doing it inside FMLCommonSetupEvent in my mod class), what should i put as storage and factory?


CapabilityManager.INSTANCE.register(PlayerCapabilities.class, storage, factory);

 

3. For adding capabilities to the PLayerEntity, in my mod calss i wrote


private static ResourceLocation PlayerCapabilitiesResourceLocation = new ResourceLocation(modid, "player_capabilities");

And then i wrote this method


	@SubscribeEvent
	public static void attachPlayerCapabilities(AttachCapabilitiesEvent<Entity> event)
	{
		if (event.getObject() instanceof PlayerEntity)
		{
			event.addCapability(PlayerCapabilitiesResourceLocation, cap);
		}
	}

What should go in cap?

Sounds like the capability you are trying to create should go in "cap".

 

I have created a custom capability for tile entities and am also looking for an answer to this. I too would like more information. 

Edited by Kenneth201998
Link to comment
Share on other sites

9 hours ago, Kenneth201998 said:

Sounds like the capability you are trying to create should go in "cap".

 

I have created a custom capability for tile entities and am also looking for an answer to this. I too would like more information. 

At cap, you should pass a new instance of the default implementation for your capability. I just got into capabilities myself lately, and they are a handful if you never worked with such things before. Very tricky to get things working because the docs are a little outdated.

Link to comment
Share on other sites

4 hours ago, Cerandior said:

At cap, you should pass a new instance of the default implementation for your capability. I just got into capabilities myself lately, and they are a handful if you never worked with such things before. Very tricky to get things working because the docs are a little outdated.

Did you succeed on making a custom working capability?

Link to comment
Share on other sites

2 minutes ago, Kenneth201998 said:

What I am wondering is how to make the capability apply to the player. 

Quote
  • AttachCapabilitiesEvent<Entity>: Fires only for entities.
  • AttachCapabilitiesEvent<TileEntity>: Fires only for tile entities.
  • AttachCapabilitiesEvent<ItemStack>: Fires only for item stacks.
  • AttachCapabilitiesEvent<World>: Fires only for worlds.
  • AttachCapabilitiesEvent<Chunk>: Fires only for chunks.

That's from the docs. Those are the events you must subscribe to depending on what type of thing you want to attach your capability. In your case. You use the one for entities and check if the entity is an instance of a player. If yes, attach it to that player.

 

 

Link to comment
Share on other sites

10 minutes ago, Cerandior said:

Yes, if you want to have a look at it, go here: https://github.com/Cerandior/VanillaExtended/tree/master/src/main/java/teabx/vanillaextended

I got my Event Handler under "main" package.

OK, thank you.

I hope it helps me because all the tutorials and examples i saw, they wrote all differently + they were outdated.

 

6 minutes ago, Kenneth201998 said:

What I am wondering is how to make the capability apply to the player. 

@SubscribeEvent
public static void attachPlayerCapabilities(AttachCapabilitiesEvent<Entity> event)
	{
		if (event.getObject() instanceof PlayerEntity)
		{
			event.addCapability();
		}

But the line event.addCapability(); isnt finished and there should be something written inside () , still dont know what because i didnt get to this point

Edited by nenikitov
Link to comment
Share on other sites

18 minutes ago, nenikitov said:

OK, thank you.

I hope it helps me because all the tutorials and examples i saw, they wrote all differently + they were outdated.

 


@SubscribeEvent
public static void attachPlayerCapabilities(AttachCapabilitiesEvent<Entity> event)
	{
		if (event.getObject() instanceof PlayerEntity)
		{
			event.addCapability();
		}

But the line event.addCapability(); isnt finished and there should be something written inside () , still dont know what because i didnt get to this point

The first parameter you pass is a resource location containing your modid and a string name for your capability.
The second parameter, you have to pass a new instance of the default implementation of your capability.

This what I did and it works: https://github.com/Cerandior/VanillaExtended/blob/master/src/main/java/teabx/vanillaextended/main/EventHandler.java

Link to comment
Share on other sites

Any idea why this is happening?

In CapabilityRegistry

@Override
public INBT writeNBT(Capability<INeModPlayerCapabilities> capability, INeModPlayerCapabilities instance, Direction side)
{
	CompoundNBT nbt = new CompoundNBT();
    nbt.putDouble("stamina", instance.GetStamina());
    return nbt;
}

I get "GetStamina()" unerlined red

image.png.92a03c9b8cdd690907477c0d18c3a927.png

Although I have this method in my INeModPlayerCapabilities

public double GetStamina();

And inide my NeModPlayerCapabilities

@Override
	public double GetStamina() {
		return this.Stamina;
	}

 

 

 

Actually same thing with

@Override
	public void readNBT(Capability<INeModPlayerCapabilities> capability, INeModPlayerCapabilities instance, Direction side, INBT nbt)
	{
		CompoundNBT tag = (CompoundNBT) nbt;
		instance.SetStaminaValue(tag.getDouble("stamina"));
	}

image.png.f3de1a0af038bfeaa0a9c4f1b51ccb97.png

Edited by nenikitov
Link to comment
Share on other sites

package com.nenikitov.nemod.playerCapabilities;

import javax.annotation.Nullable;

import net.minecraft.nbt.CompoundNBT;
import net.minecraft.nbt.INBT;
import net.minecraft.util.Direction;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.CapabilityInject;
import net.minecraftforge.common.capabilities.CapabilityManager;

public class CapabilityRegestry
{
	@CapabilityInject(INeModPlayerCapabilities.class)
    public static Capability<INeModPlayerCapabilities> COOLDOWN_ITEM = null;

    public static void registerCapabilities(){
        CapabilityManager.INSTANCE.register(INeModPlayerCapabilities.class, new INeModPlayerCapabilities() ,INeModPlayerCapabilities::new);
    }

    public static class INeModPlayerCapabilities implements Capability.IStorage<INeModPlayerCapabilities>{

		@Override
		public INBT writeNBT(Capability<INeModPlayerCapabilities> capability, INeModPlayerCapabilities instance, Direction side)
		{
			CompoundNBT nbt = new CompoundNBT();
            nbt.putDouble("stamina", instance.GetStamina());
            return nbt;
		}

		@Override
		public void readNBT(Capability<INeModPlayerCapabilities> capability, INeModPlayerCapabilities instance, Direction side, INBT nbt)
		{
	            CompoundNBT tag = (CompoundNBT) nbt;
	            instance.SetStaminaValue(tag.getDouble("stamina"));
		}


    }
}

Yeah, but it shouldnt get these 2 methods from INeModPlayerCapabilities?

Link to comment
Share on other sites

1 minute ago, nenikitov said:

package com.nenikitov.nemod.playerCapabilities;

import javax.annotation.Nullable;

import net.minecraft.nbt.CompoundNBT;
import net.minecraft.nbt.INBT;
import net.minecraft.util.Direction;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.CapabilityInject;
import net.minecraftforge.common.capabilities.CapabilityManager;

public class CapabilityRegestry
{
	@CapabilityInject(INeModPlayerCapabilities.class)
    public static Capability<INeModPlayerCapabilities> COOLDOWN_ITEM = null;

    public static void registerCapabilities(){
        CapabilityManager.INSTANCE.register(INeModPlayerCapabilities.class, new INeModPlayerCapabilities() ,INeModPlayerCapabilities::new);
    }

    public static class INeModPlayerCapabilities implements Capability.IStorage<INeModPlayerCapabilities>{

		@Override
		public INBT writeNBT(Capability<INeModPlayerCapabilities> capability, INeModPlayerCapabilities instance, Direction side)
		{
			CompoundNBT nbt = new CompoundNBT();
            nbt.putDouble("stamina", instance.GetStamina());
            return nbt;
		}

		@Override
		public void readNBT(Capability<INeModPlayerCapabilities> capability, INeModPlayerCapabilities instance, Direction side, INBT nbt)
		{
	            CompoundNBT tag = (CompoundNBT) nbt;
	            instance.SetStaminaValue(tag.getDouble("stamina"));
		}


    }
}

Yeah, but it shouldnt get these 2 methods from INeModPlayerCapabilities?

Where you register the capability, at the second parameter you don't pass an instance of your capability interface. You have to pass an instance of your storage class. The last parameter is a new instance of your default implementation of your capability. The one that implements your interface.

Edited by Cerandior
Link to comment
Share on other sites

Just a note. Don't just copy and paste the code I gave you. I have nothing against it, but if you don't understand what's going on then It's kind of pointless because even if you get it working, you won't be able to change anything.

Also, for some of those methods, like the one that registers your capability, you can use your IDE to get to an implementation of that method to see what exactly that method is expecting for parameters, and what it does with them (ctl+b if on IntelliJ).

Edited by Cerandior
Link to comment
Share on other sites

Just now, Cerandior said:

Just a note. Don't just copy and paste the code I gave you. I have nothing against it, but if you don't understand what's going on then It's kind of pointless because even if you get it working, you won't be able to change anything.

Also, for some of those methods, like the one that registers your capability, you can use your IDE to get to an implementation of that method to see what exactly that method is expecting for parameters, and what it does with it (ctl+b if on IntelliJ).

Yeah, I know and I'm getting whats happening.

And sorry about copying your code.

Link to comment
Share on other sites

So, after spending almost the whole day reading and rereading different tutorials, forum topics and source codes, after restarting 5 times i still didnt make it XD.

I get a crash while attaching capabilities on PlayerEntity, more precisely on calling event.getObject() inside NeModEventHandler;

Here are classes, their code and crash report:

 

NeModEventHandler:

Spoiler

package com.nenikitov.nemod;

import com.nenikitov.nemod.playerCapabilities.NePlayerCapabilitiesProvider;

import net.minecraft.entity.Entity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.event.AttachCapabilitiesEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;

public class NeModEventHandler
{
	@SubscribeEvent
	public static void onAttachCapabilities(AttachCapabilitiesEvent<Entity> event) {
		if (event.getObject() instanceof PlayerEntity && event.getObject() != null) {
			System.out.println("Capability is attached to " + event.getObject());
			event.addCapability(new ResourceLocation(NeMod.modid, "ne_player_capabilities"), new NePlayerCapabilitiesProvider());
		}
	}

}

 

INePlayerCapabilities:

Spoiler

package com.nenikitov.nemod.playerCapabilities;

public interface INePlayerCapabilities
{
	//STAMINA
		//Set
		void SetStamina(double value);
		void SetStaminaDecrease(double value);
		void SetMaxStamina(double value);
		//Get
		double GetStamina();
		double GetStaminaDecrease();
		double GetMaxStamina();
		//Update
		void StaminaUpdate();
		
	//DASH
		//Set
		void SetDashLength(double value);
		//Get
		double GetDashLength();
		//Update
		void UpdateDashLength();
		
	//DASH COOL DOWN
		//Set
		void SetDashCoolDownValue(double value);
		void SetDashCoolDownTime(double value);
		void SetDashIsOnCoolDown(boolean  value);
		//Get
		double GetDashCoolDownValue();
		double GetDashCoolDownTime();
		boolean GetDashIsOnCoolDown();
		//Update
		void DashCoolDownUpdate();
	
	//ARMOR CLASSES
		//Set
		void SetBootsArmorClass(String value);
		void SetLeggingsArmorClass(String value);
		void SetChestplateArmorClass(String value);
		void SetHelmetArmorClass(String value);
		//Get
		String GetBootsArmorClassString();
		String GetLeggingsArmorClass();
		String GetChestplateArmorClass();
		String GetHelmetArmorClass();
		//Update
		void UpdateArmorClasses();
}

 

NePlayerCapabilities:

Spoiler

package com.nenikitov.nemod.playerCapabilities;

public class NePlayerCapabilities implements INePlayerCapabilities
{
	//Stamina variables
	private double Stamina = 1;
	private double StaminaDecreaseValue = 0.1;
	private double MaxStamina = 1;
	//Dash variables
	private double DashLength = 0.35;
	//Cool down on dash variables
	private double DashCoolDownValue = 0;
	private double DashCoolDownTime = 2;
	private boolean DashIsOnCooldown = false;
	//Armor class variables
	private String BootsArmorCalss = "air";
	private String LeggingsArmorCalss = "air";
	private String ChestplateArmorCalss = "air";
	private String HelmetArmorCalss = "air";
	
	public NePlayerCapabilities() {
		this.Stamina = 1;
		this.StaminaDecreaseValue = 0.1;
		this.MaxStamina = 1;
		this.DashLength = 0.35;
		this.DashCoolDownValue = 0;
		this.DashCoolDownTime = 2;
		this.DashIsOnCooldown = false;
		this.BootsArmorCalss = "air";
		this.LeggingsArmorCalss = "air";
		this.ChestplateArmorCalss = "air";
		this.HelmetArmorCalss = "air";
	}
	
	//STAMINA
		//Set
	@Override
		public void SetStamina(double value) {
			this.Stamina = value;
		}
		@Override
		public void SetStaminaDecrease(double value) {
			this.StaminaDecreaseValue = value;
		}
		@Override
		public void SetMaxStamina(double value) {
			this.MaxStamina = value;
		}
		//Get
		@Override
		public double GetStamina() {
			return this.Stamina;
		}
		@Override
		public double GetStaminaDecrease() {
			return this.StaminaDecreaseValue;
		}
		@Override
		public double GetMaxStamina() {
			return this.MaxStamina;
		}
		//Update
		@Override
		public void StaminaUpdate() {
		//TODO
		}
	
	//DASH
		//Set
		@Override
		public void SetDashLength(double value) {
			this.DashLength = value;
		}
		//Get
		@Override
		public double GetDashLength() {
			return this.DashLength;
		}
		//Update	
		@Override
		public void UpdateDashLength() {
			// TODO
		}
	
	//DASH COOL DOWN
		//Set
		@Override
		public void SetDashCoolDownValue(double value) {
			this.DashCoolDownValue = value;
		}
		@Override
		public void SetDashCoolDownTime(double value) {
			this.DashCoolDownTime = value;
		}
		@Override
		public void SetDashIsOnCoolDown(boolean value) {
			this.DashIsOnCooldown = value;
		}
		//Get
		@Override
		public double GetDashCoolDownValue() {
			return this.DashCoolDownValue;
		}
		@Override
		public double GetDashCoolDownTime() {
			return this.DashCoolDownTime;
		}
		@Override
		public boolean GetDashIsOnCoolDown() {
			return this.DashIsOnCooldown;
		}
		//Update
		@Override
		public void DashCoolDownUpdate() {
			// TODO
		}
	
	//ARMOR CLASSES
		//Set
		@Override
		public void SetBootsArmorClass(String value) {
			this.BootsArmorCalss = value;
		}
		@Override
		public void SetLeggingsArmorClass(String value) {
			this.LeggingsArmorCalss = value;
		}
		@Override
		public void SetChestplateArmorClass(String value) {
			this.ChestplateArmorCalss = value;
		}
		@Override
		public void SetHelmetArmorClass(String value) {
			this.HelmetArmorCalss = value;
			
		}
		//Get
		@Override
		public String GetBootsArmorClassString() {
			return this.BootsArmorCalss;
		}
		@Override
		public String GetLeggingsArmorClass() {
			return this.LeggingsArmorCalss;
		}
		@Override
		public String GetChestplateArmorClass() {
			return this.ChestplateArmorCalss;
		}
		@Override
		public String GetHelmetArmorClass() {
			return this.HelmetArmorCalss;
		}
		//Update
		@Override
		public void UpdateArmorClasses() {
		}

}

 

NePlayerCapabilitiesProvider:

Spoiler

package com.nenikitov.nemod.playerCapabilities;

import net.minecraft.nbt.INBT;
import net.minecraft.util.Direction;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.CapabilityInject;
import net.minecraftforge.common.capabilities.ICapabilitySerializable;
import net.minecraftforge.common.util.LazyOptional;

public class NePlayerCapabilitiesProvider implements ICapabilitySerializable<INBT> {

	@CapabilityInject(INePlayerCapabilities.class)
	public static final Capability<INePlayerCapabilities> I_NE_PLAYER_CAPABILITIES = null;

	private LazyOptional<INePlayerCapabilities> InterfaceInstance = LazyOptional.of(I_NE_PLAYER_CAPABILITIES::getDefaultInstance);

	
	@Override
	public <T> LazyOptional<T> getCapability(Capability<T> cap, Direction side)
	{
		if (cap == I_NE_PLAYER_CAPABILITIES)
			return InterfaceInstance.cast();
		else
			return LazyOptional.empty();
	}

	@Override
	public INBT serializeNBT() {
		return I_NE_PLAYER_CAPABILITIES.getStorage().writeNBT(I_NE_PLAYER_CAPABILITIES, this.InterfaceInstance.orElseThrow(() -> new IllegalArgumentException("LazyOptional must not be empty!")), null);
	}

	@Override
	public void deserializeNBT(INBT nbt) {
		I_NE_PLAYER_CAPABILITIES.getStorage().readNBT(I_NE_PLAYER_CAPABILITIES, this.InterfaceInstance.orElseThrow(() -> new IllegalArgumentException("LazyOptional must not be empty!")), null, nbt);
	}

}

 

NePlayerCapabilitiesStorage:

Spoiler

package com.nenikitov.nemod.playerCapabilities;

import com.nenikitov.nemod.NeMod;

import net.minecraft.nbt.CompoundNBT;
import net.minecraft.nbt.INBT;
import net.minecraft.util.Direction;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.Capability.IStorage;

public class NePlayerCapabilitiesStorage implements IStorage<INePlayerCapabilities>
{	
	//Capabilities methods
	@Override
	public INBT writeNBT(Capability<INePlayerCapabilities> capability, INePlayerCapabilities instance, Direction side)
	{
		CompoundNBT CNBT = new CompoundNBT();
		//Stamina values
		CNBTPutDouble(CNBT, "stamina", instance.GetStamina());
		CNBTPutDouble(CNBT, "stamina_decrease", instance.GetStaminaDecrease());
		CNBTPutDouble(CNBT, "max_stamina", instance.GetMaxStamina());
		//Dash values
		CNBTPutDouble(CNBT, "dash_length", instance.GetDashLength());
		//Dash cool down values
		CNBTPutDouble(CNBT, "dash_cool_down_value", instance.GetDashCoolDownValue());
		CNBTPutDouble(CNBT, "dash_cool_down_time", instance.GetDashCoolDownTime());
		CNBTPutBoolean(CNBT, "dash_is_on_cool_down", instance.GetDashIsOnCoolDown());
		//Armor classes values
		CNBTPutString(CNBT, "boots_armor_class", instance.GetBootsArmorClassString());
		CNBTPutString(CNBT, "leggings_armor_class", instance.GetLeggingsArmorClass());
		CNBTPutString(CNBT, "chestplate_armor_class", instance.GetChestplateArmorClass());
		CNBTPutString(CNBT, "helmet_armor_class", instance.GetHelmetArmorClass());
		return CNBT;
	}

	@Override
	public void readNBT(Capability<INePlayerCapabilities> capability, INePlayerCapabilities instance, Direction side, INBT nbt)
	{
		System.out.println("read NBT");
		//Stamina values
		instance.SetStamina(NBTGetDouble(nbt, "stamina"));
		instance.SetStaminaDecrease(NBTGetDouble(nbt, "stamina_decrease"));
		instance.SetMaxStamina(NBTGetDouble(nbt, "max_stamina"));
		//Dash values
		instance.SetDashLength(NBTGetDouble(nbt, "dash_length"));
		//Dash cool down values
		instance.SetDashCoolDownValue(NBTGetDouble(nbt, "dash_cool_down_value"));
		instance.SetDashCoolDownTime(NBTGetDouble(nbt, "dash_cool_down_time"));
		instance.SetDashIsOnCoolDown(NBTGetBoolean(nbt, "dash_is_on_cool_down"));
		//Armor classes values
		instance.SetBootsArmorClass(NBTGetString(nbt, "boots_armor_class"));
		instance.SetLeggingsArmorClass(NBTGetString(nbt, "leggings_armor_class"));
		instance.SetChestplateArmorClass(NBTGetString(nbt, "chestplate_armor_class"));
		instance.SetHelmetArmorClass(NBTGetString(nbt, "helmet_armor_class"));
	}

	
	//Helper methods
	private void CNBTPutDouble(CompoundNBT cnbt, String name, double value)
	{
		cnbt.putDouble(NBTKey(name), value);
	}
	private void CNBTPutBoolean(CompoundNBT cnbt, String name, boolean value)
	{
		cnbt.putBoolean(NBTKey(name), value);
	}
	private void CNBTPutString(CompoundNBT cnbt, String name, String value)
	{
		cnbt.putString(NBTKey(name), value);
	}
	private double NBTGetDouble(INBT nbt,  String name)
	{
		return ((CompoundNBT)nbt).getDouble(NBTKey(name));
	}
	private boolean NBTGetBoolean(INBT nbt,  String name)
	{
		return ((CompoundNBT)nbt).getBoolean(NBTKey(name));
	}
	private String NBTGetString(INBT nbt,  String name)
	{
		return ((CompoundNBT)nbt).getString(NBTKey(name));
	}
	private String NBTKey(String key)
	{
		return NeMod.modid + "_" + key;
	}
}

 

 

And here is my crash report:

Spoiler

---- Minecraft Crash Report ----
// Shall we play a game?

Time: 01.12.19 21:51
Description: Ticking memory connection

java.lang.NullPointerException: Ticking memory connection
    at net.minecraft.entity.player.PlayerEntity.getName(PlayerEntity.java:1858) ~[?:?] {pl:accesstransformer:B}
    at net.minecraft.entity.Entity.toString(Entity.java:2361) ~[?:?] {pl:accesstransformer:B}
    at java.lang.String.valueOf(Unknown Source) ~[?:1.8.0_231] {}
    at java.lang.StringBuilder.append(Unknown Source) ~[?:1.8.0_231] {}
    at com.nenikitov.nemod.NeModEventHandler.onAttachCapabilities(NeModEventHandler.java:16) ~[main/:?] {}
    at net.minecraftforge.eventbus.ASMEventHandler_0_NeModEventHandler_onAttachCapabilities_AttachCapabilitiesEvent.invoke(.dynamic) ~[?:?] {}
    at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80) ~[eventbus-1.0.0-service.jar:?] {}
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258) ~[eventbus-1.0.0-service.jar:?] {}
    at net.minecraftforge.event.ForgeEventFactory.gatherCapabilities(ForgeEventFactory.java:560) ~[?:?] {}
    at net.minecraftforge.event.ForgeEventFactory.gatherCapabilities(ForgeEventFactory.java:554) ~[?:?] {}
    at net.minecraftforge.common.capabilities.CapabilityProvider.gatherCapabilities(CapabilityProvider.java:48) ~[?:?] {}
    at net.minecraftforge.common.capabilities.CapabilityProvider.gatherCapabilities(CapabilityProvider.java:44) ~[?:?] {}
    at net.minecraft.entity.Entity.<init>(Entity.java:222) ~[?:?] {pl:accesstransformer:B}
    at net.minecraft.entity.LivingEntity.<init>(LivingEntity.java:192) ~[?:?] {}
    at net.minecraft.entity.player.PlayerEntity.<init>(PlayerEntity.java:162) ~[?:?] {pl:accesstransformer:B}
    at net.minecraft.entity.player.ServerPlayerEntity.<init>(ServerPlayerEntity.java:163) ~[?:?] {pl:accesstransformer:B}
    at net.minecraft.server.management.PlayerList.createPlayerForUser(PlayerList.java:390) ~[?:?] {}
    at net.minecraft.network.login.ServerLoginNetHandler.tryAcceptPlayer(ServerLoginNetHandler.java:119) ~[?:?] {}
    at net.minecraft.network.login.ServerLoginNetHandler.tick(ServerLoginNetHandler.java:63) ~[?:?] {}
    at net.minecraft.network.NetworkManager.tick(NetworkManager.java:241) ~[?:?] {}
    at net.minecraft.network.NetworkSystem.tick(NetworkSystem.java:148) ~[?:?] {}
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:882) ~[?:?] {pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:800) ~[?:?] {pl:accesstransformer:B}
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) ~[?:?] {pl:runtimedistcleaner:A}
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:646) [?:?] {pl:accesstransformer:B}
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_231] {}


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Server thread
Stacktrace:
    at net.minecraft.entity.player.PlayerEntity.getName(PlayerEntity.java:1858)
    at net.minecraft.entity.Entity.toString(Entity.java:2361)
    at java.lang.String.valueOf(Unknown Source)
    at java.lang.StringBuilder.append(Unknown Source)
    at com.nenikitov.nemod.NeModEventHandler.onAttachCapabilities(NeModEventHandler.java:16)
    at net.minecraftforge.eventbus.ASMEventHandler_0_NeModEventHandler_onAttachCapabilities_AttachCapabilitiesEvent.invoke(.dynamic)
    at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80)
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258)
    at net.minecraftforge.event.ForgeEventFactory.gatherCapabilities(ForgeEventFactory.java:560)
    at net.minecraftforge.event.ForgeEventFactory.gatherCapabilities(ForgeEventFactory.java:554)
    at net.minecraftforge.common.capabilities.CapabilityProvider.gatherCapabilities(CapabilityProvider.java:48)
    at net.minecraftforge.common.capabilities.CapabilityProvider.gatherCapabilities(CapabilityProvider.java:44)
    at net.minecraft.entity.Entity.<init>(Entity.java:222)
    at net.minecraft.entity.LivingEntity.<init>(LivingEntity.java:192)
    at net.minecraft.entity.player.PlayerEntity.<init>(PlayerEntity.java:162)
    at net.minecraft.entity.player.ServerPlayerEntity.<init>(ServerPlayerEntity.java:163)
    at net.minecraft.server.management.PlayerList.createPlayerForUser(PlayerList.java:390)
    at net.minecraft.network.login.ServerLoginNetHandler.tryAcceptPlayer(ServerLoginNetHandler.java:119)
    at net.minecraft.network.login.ServerLoginNetHandler.tick(ServerLoginNetHandler.java:63)
    at net.minecraft.network.NetworkManager.tick(NetworkManager.java:241)

-- Ticking connection --
Details:
    Connection: net.minecraft.network.NetworkManager@c594c87
Stacktrace:
    at net.minecraft.network.NetworkSystem.tick(NetworkSystem.java:148)
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:882)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:800)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:646)
    at java.lang.Thread.run(Unknown Source)

-- System Details --
Details:
    Minecraft Version: 1.14.4
    Minecraft Version ID: 1.14.4
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_231, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 692512840 bytes (660 MB) / 2216165376 bytes (2113 MB) up to 3799515136 bytes (3623 MB)
    CPUs: 8
    JVM Flags: 1 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump
    ModLauncher: 3.2.0+60+b86c1d4
    ModLauncher launch target: fmluserdevclient
    ModLauncher naming: mcp
    ModLauncher services: 
        /eventbus-1.0.0-service.jar eventbus PLUGINSERVICE 
        /forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar object_holder_definalize PLUGINSERVICE 
        /forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar runtime_enum_extender PLUGINSERVICE 
        /accesstransformers-1.0.0-shadowed.jar accesstransformer PLUGINSERVICE 
        /forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar capability_inject_definalize PLUGINSERVICE 
        /forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar runtimedistcleaner PLUGINSERVICE 
        /forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar fml TRANSFORMATIONSERVICE 
    FML: 28.1
    Forge: net.minecraftforge:28.1.0
    FML Language Providers: 
        javafml@28.1
        minecraft@1
    Mod List: 
        forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-recomp.jar Forge {forge@28.1.0 DONE}
        main NE Mod {nemod@0.1 DONE}
        client-extra.jar Minecraft {minecraft@1.14.4 DONE}
    Player Count: 0 / 8; []
    Data Packs: vanilla, mod:nemod, mod:forge
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'forge'

Any ideas what is happening?

Link to comment
Share on other sites

4 hours ago, nenikitov said:

So, after spending almost the whole day reading and rereading different tutorials, forum topics and source codes, after restarting 5 times i still didnt make it XD.

I get a crash while attaching capabilities on PlayerEntity, more precisely on calling event.getObject() inside NeModEventHandler;

Here are classes, their code and crash report:

 

NeModEventHandler:

  Reveal hidden contents


package com.nenikitov.nemod;

import com.nenikitov.nemod.playerCapabilities.NePlayerCapabilitiesProvider;

import net.minecraft.entity.Entity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.event.AttachCapabilitiesEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;

public class NeModEventHandler
{
	@SubscribeEvent
	public static void onAttachCapabilities(AttachCapabilitiesEvent<Entity> event) {
		if (event.getObject() instanceof PlayerEntity && event.getObject() != null) {
			System.out.println("Capability is attached to " + event.getObject());
			event.addCapability(new ResourceLocation(NeMod.modid, "ne_player_capabilities"), new NePlayerCapabilitiesProvider());
		}
	}

}

 

INePlayerCapabilities:

  Reveal hidden contents


package com.nenikitov.nemod.playerCapabilities;

public interface INePlayerCapabilities
{
	//STAMINA
		//Set
		void SetStamina(double value);
		void SetStaminaDecrease(double value);
		void SetMaxStamina(double value);
		//Get
		double GetStamina();
		double GetStaminaDecrease();
		double GetMaxStamina();
		//Update
		void StaminaUpdate();
		
	//DASH
		//Set
		void SetDashLength(double value);
		//Get
		double GetDashLength();
		//Update
		void UpdateDashLength();
		
	//DASH COOL DOWN
		//Set
		void SetDashCoolDownValue(double value);
		void SetDashCoolDownTime(double value);
		void SetDashIsOnCoolDown(boolean  value);
		//Get
		double GetDashCoolDownValue();
		double GetDashCoolDownTime();
		boolean GetDashIsOnCoolDown();
		//Update
		void DashCoolDownUpdate();
	
	//ARMOR CLASSES
		//Set
		void SetBootsArmorClass(String value);
		void SetLeggingsArmorClass(String value);
		void SetChestplateArmorClass(String value);
		void SetHelmetArmorClass(String value);
		//Get
		String GetBootsArmorClassString();
		String GetLeggingsArmorClass();
		String GetChestplateArmorClass();
		String GetHelmetArmorClass();
		//Update
		void UpdateArmorClasses();
}

 

NePlayerCapabilities:

  Reveal hidden contents


package com.nenikitov.nemod.playerCapabilities;

public class NePlayerCapabilities implements INePlayerCapabilities
{
	//Stamina variables
	private double Stamina = 1;
	private double StaminaDecreaseValue = 0.1;
	private double MaxStamina = 1;
	//Dash variables
	private double DashLength = 0.35;
	//Cool down on dash variables
	private double DashCoolDownValue = 0;
	private double DashCoolDownTime = 2;
	private boolean DashIsOnCooldown = false;
	//Armor class variables
	private String BootsArmorCalss = "air";
	private String LeggingsArmorCalss = "air";
	private String ChestplateArmorCalss = "air";
	private String HelmetArmorCalss = "air";
	
	public NePlayerCapabilities() {
		this.Stamina = 1;
		this.StaminaDecreaseValue = 0.1;
		this.MaxStamina = 1;
		this.DashLength = 0.35;
		this.DashCoolDownValue = 0;
		this.DashCoolDownTime = 2;
		this.DashIsOnCooldown = false;
		this.BootsArmorCalss = "air";
		this.LeggingsArmorCalss = "air";
		this.ChestplateArmorCalss = "air";
		this.HelmetArmorCalss = "air";
	}
	
	//STAMINA
		//Set
	@Override
		public void SetStamina(double value) {
			this.Stamina = value;
		}
		@Override
		public void SetStaminaDecrease(double value) {
			this.StaminaDecreaseValue = value;
		}
		@Override
		public void SetMaxStamina(double value) {
			this.MaxStamina = value;
		}
		//Get
		@Override
		public double GetStamina() {
			return this.Stamina;
		}
		@Override
		public double GetStaminaDecrease() {
			return this.StaminaDecreaseValue;
		}
		@Override
		public double GetMaxStamina() {
			return this.MaxStamina;
		}
		//Update
		@Override
		public void StaminaUpdate() {
		//TODO
		}
	
	//DASH
		//Set
		@Override
		public void SetDashLength(double value) {
			this.DashLength = value;
		}
		//Get
		@Override
		public double GetDashLength() {
			return this.DashLength;
		}
		//Update	
		@Override
		public void UpdateDashLength() {
			// TODO
		}
	
	//DASH COOL DOWN
		//Set
		@Override
		public void SetDashCoolDownValue(double value) {
			this.DashCoolDownValue = value;
		}
		@Override
		public void SetDashCoolDownTime(double value) {
			this.DashCoolDownTime = value;
		}
		@Override
		public void SetDashIsOnCoolDown(boolean value) {
			this.DashIsOnCooldown = value;
		}
		//Get
		@Override
		public double GetDashCoolDownValue() {
			return this.DashCoolDownValue;
		}
		@Override
		public double GetDashCoolDownTime() {
			return this.DashCoolDownTime;
		}
		@Override
		public boolean GetDashIsOnCoolDown() {
			return this.DashIsOnCooldown;
		}
		//Update
		@Override
		public void DashCoolDownUpdate() {
			// TODO
		}
	
	//ARMOR CLASSES
		//Set
		@Override
		public void SetBootsArmorClass(String value) {
			this.BootsArmorCalss = value;
		}
		@Override
		public void SetLeggingsArmorClass(String value) {
			this.LeggingsArmorCalss = value;
		}
		@Override
		public void SetChestplateArmorClass(String value) {
			this.ChestplateArmorCalss = value;
		}
		@Override
		public void SetHelmetArmorClass(String value) {
			this.HelmetArmorCalss = value;
			
		}
		//Get
		@Override
		public String GetBootsArmorClassString() {
			return this.BootsArmorCalss;
		}
		@Override
		public String GetLeggingsArmorClass() {
			return this.LeggingsArmorCalss;
		}
		@Override
		public String GetChestplateArmorClass() {
			return this.ChestplateArmorCalss;
		}
		@Override
		public String GetHelmetArmorClass() {
			return this.HelmetArmorCalss;
		}
		//Update
		@Override
		public void UpdateArmorClasses() {
		}

}

 

NePlayerCapabilitiesProvider:

  Reveal hidden contents


package com.nenikitov.nemod.playerCapabilities;

import net.minecraft.nbt.INBT;
import net.minecraft.util.Direction;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.CapabilityInject;
import net.minecraftforge.common.capabilities.ICapabilitySerializable;
import net.minecraftforge.common.util.LazyOptional;

public class NePlayerCapabilitiesProvider implements ICapabilitySerializable<INBT> {

	@CapabilityInject(INePlayerCapabilities.class)
	public static final Capability<INePlayerCapabilities> I_NE_PLAYER_CAPABILITIES = null;

	private LazyOptional<INePlayerCapabilities> InterfaceInstance = LazyOptional.of(I_NE_PLAYER_CAPABILITIES::getDefaultInstance);

	
	@Override
	public <T> LazyOptional<T> getCapability(Capability<T> cap, Direction side)
	{
		if (cap == I_NE_PLAYER_CAPABILITIES)
			return InterfaceInstance.cast();
		else
			return LazyOptional.empty();
	}

	@Override
	public INBT serializeNBT() {
		return I_NE_PLAYER_CAPABILITIES.getStorage().writeNBT(I_NE_PLAYER_CAPABILITIES, this.InterfaceInstance.orElseThrow(() -> new IllegalArgumentException("LazyOptional must not be empty!")), null);
	}

	@Override
	public void deserializeNBT(INBT nbt) {
		I_NE_PLAYER_CAPABILITIES.getStorage().readNBT(I_NE_PLAYER_CAPABILITIES, this.InterfaceInstance.orElseThrow(() -> new IllegalArgumentException("LazyOptional must not be empty!")), null, nbt);
	}

}

 

NePlayerCapabilitiesStorage:

  Reveal hidden contents


package com.nenikitov.nemod.playerCapabilities;

import com.nenikitov.nemod.NeMod;

import net.minecraft.nbt.CompoundNBT;
import net.minecraft.nbt.INBT;
import net.minecraft.util.Direction;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.Capability.IStorage;

public class NePlayerCapabilitiesStorage implements IStorage<INePlayerCapabilities>
{	
	//Capabilities methods
	@Override
	public INBT writeNBT(Capability<INePlayerCapabilities> capability, INePlayerCapabilities instance, Direction side)
	{
		CompoundNBT CNBT = new CompoundNBT();
		//Stamina values
		CNBTPutDouble(CNBT, "stamina", instance.GetStamina());
		CNBTPutDouble(CNBT, "stamina_decrease", instance.GetStaminaDecrease());
		CNBTPutDouble(CNBT, "max_stamina", instance.GetMaxStamina());
		//Dash values
		CNBTPutDouble(CNBT, "dash_length", instance.GetDashLength());
		//Dash cool down values
		CNBTPutDouble(CNBT, "dash_cool_down_value", instance.GetDashCoolDownValue());
		CNBTPutDouble(CNBT, "dash_cool_down_time", instance.GetDashCoolDownTime());
		CNBTPutBoolean(CNBT, "dash_is_on_cool_down", instance.GetDashIsOnCoolDown());
		//Armor classes values
		CNBTPutString(CNBT, "boots_armor_class", instance.GetBootsArmorClassString());
		CNBTPutString(CNBT, "leggings_armor_class", instance.GetLeggingsArmorClass());
		CNBTPutString(CNBT, "chestplate_armor_class", instance.GetChestplateArmorClass());
		CNBTPutString(CNBT, "helmet_armor_class", instance.GetHelmetArmorClass());
		return CNBT;
	}

	@Override
	public void readNBT(Capability<INePlayerCapabilities> capability, INePlayerCapabilities instance, Direction side, INBT nbt)
	{
		System.out.println("read NBT");
		//Stamina values
		instance.SetStamina(NBTGetDouble(nbt, "stamina"));
		instance.SetStaminaDecrease(NBTGetDouble(nbt, "stamina_decrease"));
		instance.SetMaxStamina(NBTGetDouble(nbt, "max_stamina"));
		//Dash values
		instance.SetDashLength(NBTGetDouble(nbt, "dash_length"));
		//Dash cool down values
		instance.SetDashCoolDownValue(NBTGetDouble(nbt, "dash_cool_down_value"));
		instance.SetDashCoolDownTime(NBTGetDouble(nbt, "dash_cool_down_time"));
		instance.SetDashIsOnCoolDown(NBTGetBoolean(nbt, "dash_is_on_cool_down"));
		//Armor classes values
		instance.SetBootsArmorClass(NBTGetString(nbt, "boots_armor_class"));
		instance.SetLeggingsArmorClass(NBTGetString(nbt, "leggings_armor_class"));
		instance.SetChestplateArmorClass(NBTGetString(nbt, "chestplate_armor_class"));
		instance.SetHelmetArmorClass(NBTGetString(nbt, "helmet_armor_class"));
	}

	
	//Helper methods
	private void CNBTPutDouble(CompoundNBT cnbt, String name, double value)
	{
		cnbt.putDouble(NBTKey(name), value);
	}
	private void CNBTPutBoolean(CompoundNBT cnbt, String name, boolean value)
	{
		cnbt.putBoolean(NBTKey(name), value);
	}
	private void CNBTPutString(CompoundNBT cnbt, String name, String value)
	{
		cnbt.putString(NBTKey(name), value);
	}
	private double NBTGetDouble(INBT nbt,  String name)
	{
		return ((CompoundNBT)nbt).getDouble(NBTKey(name));
	}
	private boolean NBTGetBoolean(INBT nbt,  String name)
	{
		return ((CompoundNBT)nbt).getBoolean(NBTKey(name));
	}
	private String NBTGetString(INBT nbt,  String name)
	{
		return ((CompoundNBT)nbt).getString(NBTKey(name));
	}
	private String NBTKey(String key)
	{
		return NeMod.modid + "_" + key;
	}
}

 

 

And here is my crash report:

  Reveal hidden contents

---- Minecraft Crash Report ----
// Shall we play a game?

Time: 01.12.19 21:51
Description: Ticking memory connection

java.lang.NullPointerException: Ticking memory connection
    at net.minecraft.entity.player.PlayerEntity.getName(PlayerEntity.java:1858) ~[?:?] {pl:accesstransformer:B}
    at net.minecraft.entity.Entity.toString(Entity.java:2361) ~[?:?] {pl:accesstransformer:B}
    at java.lang.String.valueOf(Unknown Source) ~[?:1.8.0_231] {}
    at java.lang.StringBuilder.append(Unknown Source) ~[?:1.8.0_231] {}
    at com.nenikitov.nemod.NeModEventHandler.onAttachCapabilities(NeModEventHandler.java:16) ~[main/:?] {}
    at net.minecraftforge.eventbus.ASMEventHandler_0_NeModEventHandler_onAttachCapabilities_AttachCapabilitiesEvent.invoke(.dynamic) ~[?:?] {}
    at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80) ~[eventbus-1.0.0-service.jar:?] {}
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258) ~[eventbus-1.0.0-service.jar:?] {}
    at net.minecraftforge.event.ForgeEventFactory.gatherCapabilities(ForgeEventFactory.java:560) ~[?:?] {}
    at net.minecraftforge.event.ForgeEventFactory.gatherCapabilities(ForgeEventFactory.java:554) ~[?:?] {}
    at net.minecraftforge.common.capabilities.CapabilityProvider.gatherCapabilities(CapabilityProvider.java:48) ~[?:?] {}
    at net.minecraftforge.common.capabilities.CapabilityProvider.gatherCapabilities(CapabilityProvider.java:44) ~[?:?] {}
    at net.minecraft.entity.Entity.<init>(Entity.java:222) ~[?:?] {pl:accesstransformer:B}
    at net.minecraft.entity.LivingEntity.<init>(LivingEntity.java:192) ~[?:?] {}
    at net.minecraft.entity.player.PlayerEntity.<init>(PlayerEntity.java:162) ~[?:?] {pl:accesstransformer:B}
    at net.minecraft.entity.player.ServerPlayerEntity.<init>(ServerPlayerEntity.java:163) ~[?:?] {pl:accesstransformer:B}
    at net.minecraft.server.management.PlayerList.createPlayerForUser(PlayerList.java:390) ~[?:?] {}
    at net.minecraft.network.login.ServerLoginNetHandler.tryAcceptPlayer(ServerLoginNetHandler.java:119) ~[?:?] {}
    at net.minecraft.network.login.ServerLoginNetHandler.tick(ServerLoginNetHandler.java:63) ~[?:?] {}
    at net.minecraft.network.NetworkManager.tick(NetworkManager.java:241) ~[?:?] {}
    at net.minecraft.network.NetworkSystem.tick(NetworkSystem.java:148) ~[?:?] {}
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:882) ~[?:?] {pl:accesstransformer:B}
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:800) ~[?:?] {pl:accesstransformer:B}
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) ~[?:?] {pl:runtimedistcleaner:A}
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:646) [?:?] {pl:accesstransformer:B}
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_231] {}


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Server thread
Stacktrace:
    at net.minecraft.entity.player.PlayerEntity.getName(PlayerEntity.java:1858)
    at net.minecraft.entity.Entity.toString(Entity.java:2361)
    at java.lang.String.valueOf(Unknown Source)
    at java.lang.StringBuilder.append(Unknown Source)
    at com.nenikitov.nemod.NeModEventHandler.onAttachCapabilities(NeModEventHandler.java:16)
    at net.minecraftforge.eventbus.ASMEventHandler_0_NeModEventHandler_onAttachCapabilities_AttachCapabilitiesEvent.invoke(.dynamic)
    at net.minecraftforge.eventbus.ASMEventHandler.invoke(ASMEventHandler.java:80)
    at net.minecraftforge.eventbus.EventBus.post(EventBus.java:258)
    at net.minecraftforge.event.ForgeEventFactory.gatherCapabilities(ForgeEventFactory.java:560)
    at net.minecraftforge.event.ForgeEventFactory.gatherCapabilities(ForgeEventFactory.java:554)
    at net.minecraftforge.common.capabilities.CapabilityProvider.gatherCapabilities(CapabilityProvider.java:48)
    at net.minecraftforge.common.capabilities.CapabilityProvider.gatherCapabilities(CapabilityProvider.java:44)
    at net.minecraft.entity.Entity.<init>(Entity.java:222)
    at net.minecraft.entity.LivingEntity.<init>(LivingEntity.java:192)
    at net.minecraft.entity.player.PlayerEntity.<init>(PlayerEntity.java:162)
    at net.minecraft.entity.player.ServerPlayerEntity.<init>(ServerPlayerEntity.java:163)
    at net.minecraft.server.management.PlayerList.createPlayerForUser(PlayerList.java:390)
    at net.minecraft.network.login.ServerLoginNetHandler.tryAcceptPlayer(ServerLoginNetHandler.java:119)
    at net.minecraft.network.login.ServerLoginNetHandler.tick(ServerLoginNetHandler.java:63)
    at net.minecraft.network.NetworkManager.tick(NetworkManager.java:241)

-- Ticking connection --
Details:
    Connection: net.minecraft.network.NetworkManager@c594c87
Stacktrace:
    at net.minecraft.network.NetworkSystem.tick(NetworkSystem.java:148)
    at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:882)
    at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:800)
    at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:646)
    at java.lang.Thread.run(Unknown Source)

-- System Details --
Details:
    Minecraft Version: 1.14.4
    Minecraft Version ID: 1.14.4
    Operating System: Windows 10 (amd64) version 10.0
    Java Version: 1.8.0_231, Oracle Corporation
    Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
    Memory: 692512840 bytes (660 MB) / 2216165376 bytes (2113 MB) up to 3799515136 bytes (3623 MB)
    CPUs: 8
    JVM Flags: 1 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump
    ModLauncher: 3.2.0+60+b86c1d4
    ModLauncher launch target: fmluserdevclient
    ModLauncher naming: mcp
    ModLauncher services: 
        /eventbus-1.0.0-service.jar eventbus PLUGINSERVICE 
        /forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar object_holder_definalize PLUGINSERVICE 
        /forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar runtime_enum_extender PLUGINSERVICE 
        /accesstransformers-1.0.0-shadowed.jar accesstransformer PLUGINSERVICE 
        /forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar capability_inject_definalize PLUGINSERVICE 
        /forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar runtimedistcleaner PLUGINSERVICE 
        /forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-launcher.jar fml TRANSFORMATIONSERVICE 
    FML: 28.1
    Forge: net.minecraftforge:28.1.0
    FML Language Providers: 
        javafml@28.1
        minecraft@1
    Mod List: 
        forge-1.14.4-28.1.0_mapped_snapshot_20190719-1.14.3-recomp.jar Forge {forge@28.1.0 DONE}
        main NE Mod {nemod@0.1 DONE}
        client-extra.jar Minecraft {minecraft@1.14.4 DONE}
    Player Count: 0 / 8; []
    Data Packs: vanilla, mod:nemod, mod:forge
    Type: Integrated Server (map_client.txt)
    Is Modded: Definitely; Client brand changed to 'forge'

Any ideas what is happening?

Remove that println at the event handler. It's causing problems when the player object is converted to string.

Edited by Cerandior
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • I have been trying to make a server with forge but I keep running into an issue. I have jdk 22 installed as well as Java 8. here is the debug file  
    • it crashed again     What the console says : [00:02:03] [Server thread/INFO] [Easy NPC/]: [EntityManager] Server started! [00:02:03] [Server thread/INFO] [co.gi.al.ic.IceAndFire/]: {iceandfire:fire_dragon_roost=true, iceandfire:fire_lily=true, iceandfire:spawn_dragon_skeleton_fire=true, iceandfire:lightning_dragon_roost=true, iceandfire:spawn_dragon_skeleton_lightning=true, iceandfire:ice_dragon_roost=true, iceandfire:ice_dragon_cave=true, iceandfire:lightning_dragon_cave=true, iceandfire:cyclops_cave=true, iceandfire:spawn_wandering_cyclops=true, iceandfire:spawn_sea_serpent=true, iceandfire:frost_lily=true, iceandfire:hydra_cave=true, iceandfire:lightning_lily=true, iceandfireixie_village=true, iceandfire:myrmex_hive_jungle=true, iceandfire:myrmex_hive_desert=true, iceandfire:silver_ore=true, iceandfire:siren_island=true, iceandfire:spawn_dragon_skeleton_ice=true, iceandfire:spawn_stymphalian_bird=true, iceandfire:fire_dragon_cave=true, iceandfire:sapphire_ore=true, iceandfire:spawn_hippocampus=true, iceandfire:spawn_death_worm=true} [00:02:03] [Server thread/INFO] [co.gi.al.ic.IceAndFire/]: {TROLL_S=true, HIPPOGRYPH=true, AMPHITHERE=true, COCKATRICE=true, TROLL_M=true, DREAD_LICH=true, TROLL_F=true} [00:02:03] [Server thread/INFO] [ne.be.lo.WeaponRegistry/]: Encoded Weapon Attribute registry size (with package overhead): 41976 bytes (in 5 string chunks with the size of 10000) [00:02:03] [Server thread/INFO] [patchouli/]: Sending reload packet to clients [00:02:03] [Server thread/WARN] [voicechat/]: [voicechat] Running in offline mode - Voice chat encryption is not secure! [00:02:03] [VoiceChatServerThread/INFO] [voicechat/]: [voicechat] Using server-ip as bind address: 0.0.0.0 [00:02:03] [Server thread/WARN] [ModernFix/]: Dedicated server took 22.521 seconds to load [00:02:03] [VoiceChatServerThread/INFO] [voicechat/]: [voicechat] Voice chat server started at 0.0.0.0:25565 [00:02:03] [Server thread/WARN] [minecraft/SynchedEntityData]: defineId called for: class net.minecraft.world.entity.player.Player from class tschipp.carryon.common.carry.CarryOnDataManager [00:02:03] [Server thread/INFO] [ne.mi.co.AdvancementLoadFix/]: Using new advancement loading for net.minecraft.server.PlayerAdvancements@2941ffd5 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 0 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 1 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 2 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 3 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 4 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 5 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 6 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 7 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 8 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 9 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 10 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 11 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 12 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 13 [00:02:10] [Netty Epoll Server IO #2/INFO] [Calio/]: Received acknowledgment for login packet with id 14 [00:02:19] [Server thread/INFO] [ne.mi.co.AdvancementLoadFix/]: Using new advancement loading for net.minecraft.server.PlayerAdvancements@ebc7ef2 [00:02:19] [Server thread/INFO] [minecraft/PlayerList]: ZacAdos[/90.2.17.162:49242] logged in with entity id 1062 at (-1848.6727005281205, 221.0, -3054.2468255848935) [00:02:19] [Server thread/ERROR] [ModernFix/]: Skipping entity ID sync for com.talhanation.smallships.world.entity.ship.Ship: java.lang.NoClassDefFoundError: net/minecraft/client/CameraType [00:02:19] [Server thread/INFO] [minecraft/MinecraftServer]: - Gloop - ZacAdos joined the game [00:02:19] [Server thread/INFO] [xa.pa.OpenPartiesAndClaims/]: Updating all forceload tickets for cc56befd-d376-3526-a760-340713c478bd [00:02:19] [Server thread/INFO] [se.mi.te.da.DataManager/]: Sending data to client: ZacAdos [00:02:19] [Server thread/INFO] [voicechat/]: [voicechat] Received secret request of - Gloop - ZacAdos (17) [00:02:19] [Server thread/INFO] [voicechat/]: [voicechat] Sent secret to - Gloop - ZacAdos [00:02:21] [VoiceChatPacketProcessingThread/INFO] [voicechat/]: [voicechat] Successfully authenticated player cc56befd-d376-3526-a760-340713c478bd [00:02:22] [VoiceChatPacketProcessingThread/INFO] [voicechat/]: [voicechat] Successfully validated connection of player cc56befd-d376-3526-a760-340713c478bd [00:02:22] [VoiceChatPacketProcessingThread/INFO] [voicechat/]: [voicechat] Player - Gloop - ZacAdos (cc56befd-d376-3526-a760-340713c478bd) successfully connected to voice chat stop [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Stopping the server [00:02:34] [Server thread/INFO] [mo.pl.ar.ArmourersWorkshop/]: stop local service [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Stopping server [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Saving players [00:02:34] [Server thread/INFO] [minecraft/ServerGamePacketListenerImpl]: ZacAdos lost connection: Server closed [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: - Gloop - ZacAdos left the game [00:02:34] [Server thread/INFO] [xa.pa.OpenPartiesAndClaims/]: Updating all forceload tickets for cc56befd-d376-3526-a760-340713c478bd [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Saving worlds [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'ServerLevel[world]'/minecraft:overworld [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_end [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: Saving chunks for level 'ServerLevel[world]'/minecraft:the_nether [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: ThreadedAnvilChunkStorage (world): All chunks are saved [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: ThreadedAnvilChunkStorage (DIM-1): All chunks are saved [00:02:34] [Server thread/INFO] [minecraft/MinecraftServer]: ThreadedAnvilChunkStorage: All dimensions are saved [00:02:34] [Server thread/INFO] [xa.pa.OpenPartiesAndClaims/]: Stopping IO worker... [00:02:34] [Server thread/INFO] [xa.pa.OpenPartiesAndClaims/]: Stopped IO worker! [00:02:34] [Server thread/INFO] [Calio/]: Removing Dynamic Registries for: net.minecraft.server.dedicated.DedicatedServer@7dc879e1 [MineStrator Daemon]: Checking server disk space usage, this could take a few seconds... [MineStrator Daemon]: Updating process configuration files... [MineStrator Daemon]: Ensuring file permissions are set correctly, this could take a few seconds... [MineStrator Daemon]: Pulling Docker container image, this could take a few minutes to complete... [MineStrator Daemon]: Finished pulling Docker container image container@pterodactyl~ java -version openjdk version "17.0.10" 2024-01-16 OpenJDK Runtime Environment Temurin-17.0.10+7 (build 17.0.10+7) OpenJDK 64-Bit Server VM Temurin-17.0.10+7 (build 17.0.10+7, mixed mode, sharing) container@pterodactyl~ java -Xms128M -Xmx6302M -Dterminal.jline=false -Dterminal.ansi=true -Djline.terminal=jline.UnsupportedTerminal -p libraries/cpw/mods/bootstraplauncher/1.1.2/bootstraplauncher-1.1.2.jar:libraries/cpw/mods/securejarhandler/2.1.4/securejarhandler-2.1.4.jar:libraries/org/ow2/asm/asm-commons/9.5/asm-commons-9.5.jar:libraries/org/ow2/asm/asm-util/9.5/asm-util-9.5.jar:libraries/org/ow2/asm/asm-analysis/9.5/asm-analysis-9.5.jar:libraries/org/ow2/asm/asm-tree/9.5/asm-tree-9.5.jar:libraries/org/ow2/asm/asm/9.5/asm-9.5.jar:libraries/net/minecraftforge/JarJarFileSystems/0.3.16/JarJarFileSystems-0.3.16.jar --add-modules ALL-MODULE-PATH --add-opens java.base/java.util.jar=cpw.mods.securejarhandler --add-opens java.base/java.lang.invoke=cpw.mods.securejarhandler --add-exports java.base/sun.security.util=cpw.mods.securejarhandler --add-exports jdk.naming.dns/com.sun.jndi.dns=java.naming -Djava.net.preferIPv6Addresses=system -DignoreList=bootstraplauncher-1.1.2.jar,securejarhandler-2.1.4.jar,asm-commons-9.5.jar,asm-util-9.5.jar,asm-analysis-9.5.jar,asm-tree-9.5.jar,asm-9.5.jar,JarJarFileSystems-0.3.16.jar -DlibraryDirectory=libraries -DlegacyClassPath=libraries/cpw/mods/securejarhandler/2.1.4/securejarhandler-2.1.4.jar:libraries/org/ow2/asm/asm/9.5/asm-9.5.jar:libraries/org/ow2/asm/asm-commons/9.5/asm-commons-9.5.jar:libraries/org/ow2/asm/asm-tree/9.5/asm-tree-9.5.jar:libraries/org/ow2/asm/asm-util/9.5/asm-util-9.5.jar:libraries/org/ow2/asm/asm-analysis/9.5/asm-analysis-9.5.jar:libraries/net/minecraftforge/accesstransformers/8.0.4/accesstransformers-8.0.4.jar:libraries/org/antlr/antlr4-runtime/4.9.1/antlr4-runtime-4.9.1.jar:libraries/net/minecraftforge/eventbus/6.0.3/eventbus-6.0.3.jar:libraries/net/minecraftforge/forgespi/6.0.0/forgespi-6.0.0.jar:libraries/net/minecraftforge/coremods/5.0.1/coremods-5.0.1.jar:libraries/cpw/mods/modlauncher/10.0.8/modlauncher-10.0.8.jar:libraries/net/minecraftforge/unsafe/0.2.0/unsafe-0.2.0.jar:libraries/com/electronwill/night-config/core/3.6.4/core-3.6.4.jar:libraries/com/electronwill/night-config/toml/3.6.4/toml-3.6.4.jar:libraries/org/apache/maven/maven-artifact/3.8.5/maven-artifact-3.8.5.jar:libraries/net/jodah/typetools/0.8.3/typetools-0.8.3.jar:libraries/net/minecrell/terminalconsoleappender/1.2.0/terminalconsoleappender-1.2.0.jar:libraries/org/jline/jline-reader/3.12.1/jline-reader-3.12.1.jar:libraries/org/jline/jline-terminal/3.12.1/jline-terminal-3.12.1.jar:libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar:libraries/org/openjdk/nashorn/nashorn-core/15.3/nashorn-core-15.3.jar:libraries/net/minecraftforge/JarJarSelector/0.3.16/JarJarSelector-0.3.16.jar:libraries/net/minecraftforge/JarJarMetadata/0.3.16/JarJarMetadata-0.3.16.jar:libraries/net/minecraftforge/fmlloader/1.19.2-43.3.0/fmlloader-1.19.2-43.3.0.jar:libraries/net/minecraft/server/1.19.2-20220805.130853/server-1.19.2-20220805.130853-extra.jar:libraries/com/github/oshi/oshi-core/5.8.5/oshi-core-5.8.5.jar:libraries/com/google/code/gson/gson/2.8.9/gson-2.8.9.jar:libraries/com/google/guava/failureaccess/1.0.1/failureaccess-1.0.1.jar:libraries/com/google/guava/guava/31.0.1-jre/guava-31.0.1-jre.jar:libraries/com/mojang/authlib/3.11.49/authlib-3.11.49.jar:libraries/com/mojang/brigadier/1.0.18/brigadier-1.0.18.jar:libraries/com/mojang/datafixerupper/5.0.28/datafixerupper-5.0.28.jar:libraries/com/mojang/javabridge/1.2.24/javabridge-1.2.24.jar:libraries/com/mojang/logging/1.0.0/logging-1.0.0.jar:libraries/commons-io/commons-io/2.11.0/commons-io-2.11.0.jar:libraries/io/netty/netty-buffer/4.1.77.Final/netty-buffer-4.1.77.Final.jar:libraries/io/netty/netty-codec/4.1.77.Final/netty-codec-4.1.77.Final.jar:libraries/io/netty/netty-common/4.1.77.Final/netty-common-4.1.77.Final.jar:libraries/io/netty/netty-handler/4.1.77.Final/netty-handler-4.1.77.Final.jar:libraries/io/netty/netty-resolver/4.1.77.Final/netty-resolver-4.1.77.Final.jar:libraries/io/netty/netty-transport/4.1.77.Final/netty-transport-4.1.77.Final.jar:libraries/io/netty/netty-transport-classes-epoll/4.1.77.Final/netty-transport-classes-epoll-4.1.77.Final.jar:libraries/io/netty/netty-transport-native-epoll/4.1.77.Final/netty-transport-native-epoll-4.1.77.Final-linux-x86_64.jar:libraries/io/netty/netty-transport-native-epoll/4.1.77.Final/netty-transport-native-epoll-4.1.77.Final-linux-aarch_64.jar:libraries/io/netty/netty-transport-native-unix-common/4.1.77.Final/netty-transport-native-unix-common-4.1.77.Final.jar:libraries/it/unimi/dsi/fastutil/8.5.6/fastutil-8.5.6.jar:libraries/net/java/dev/jna/jna/5.10.0/jna-5.10.0.jar:libraries/net/java/dev/jna/jna-platform/5.10.0/jna-platform-5.10.0.jar:libraries/net/sf/jopt-simple/jopt-simple/5.0.4/jopt-simple-5.0.4.jar:libraries/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar:libraries/org/apache/logging/log4j/log4j-api/2.17.0/log4j-api-2.17.0.jar:libraries/org/apache/logging/log4j/log4j-core/2.17.0/log4j-core-2.17.0.jar:libraries/org/apache/logging/log4j/log4j-slf4j18-impl/2.17.0/log4j-slf4j18-impl-2.17.0.jar:libraries/org/slf4j/slf4j-api/1.8.0-beta4/slf4j-api-1.8.0-beta4.jar cpw.mods.bootstraplauncher.BootstrapLauncher --launchTarget forgeserver --fml.forgeVersion 43.3.0 --fml.mcVersion 1.19.2 --fml.forgeGroup net.minecraftforge --fml.mcpVersion 20220805.130853 [00:02:42] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgeserver, --fml.forgeVersion, 43.3.0, --fml.mcVersion, 1.19.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220805.130853] [00:02:42] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 10.0.8+10.0.8+main.0ef7e830 starting: java version 17.0.10 by Eclipse Adoptium; OS Linux arch amd64 version 6.1.0-12-amd64 [00:02:43] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/home/container/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2363!/ Service=ModLauncher Env=SERVER [00:02:43] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/fmlcore/1.19.2-43.3.0/fmlcore-1.19.2-43.3.0.jar is missing mods.toml file [00:02:43] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/javafmllanguage/1.19.2-43.3.0/javafmllanguage-1.19.2-43.3.0.jar is missing mods.toml file [00:02:43] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/lowcodelanguage/1.19.2-43.3.0/lowcodelanguage-1.19.2-43.3.0.jar is missing mods.toml file [00:02:43] [main/WARN] [ne.mi.fm.lo.mo.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/mclanguage/1.19.2-43.3.0/mclanguage-1.19.2-43.3.0.jar is missing mods.toml file [00:02:44] [main/WARN] [ne.mi.ja.se.JarSelector/]: Attempted to select two dependency jars from JarJar which have the same identification: Mod File: and Mod File: . Using Mod File: [00:02:44] [main/WARN] [ne.mi.ja.se.JarSelector/]: Attempted to select a dependency jar for JarJar which was passed in as source: resourcefullib. Using Mod File: /home/container/mods/resourcefullib-forge-1.19.2-1.1.24.jar [00:02:44] [main/INFO] [ne.mi.fm.lo.mo.JarInJarDependencyLocator/]: Found 13 dependencies adding them to mods collection Latest log [29Mar2024 00:02:42.803] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--launchTarget, forgeserver, --fml.forgeVersion, 43.3.0, --fml.mcVersion, 1.19.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220805.130853] [29Mar2024 00:02:42.805] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 10.0.8+10.0.8+main.0ef7e830 starting: java version 17.0.10 by Eclipse Adoptium; OS Linux arch amd64 version 6.1.0-12-amd64 [29Mar2024 00:02:43.548] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/home/container/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2363!/ Service=ModLauncher Env=SERVER [29Mar2024 00:02:43.876] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/fmlcore/1.19.2-43.3.0/fmlcore-1.19.2-43.3.0.jar is missing mods.toml file [29Mar2024 00:02:43.877] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/javafmllanguage/1.19.2-43.3.0/javafmllanguage-1.19.2-43.3.0.jar is missing mods.toml file [29Mar2024 00:02:43.877] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/lowcodelanguage/1.19.2-43.3.0/lowcodelanguage-1.19.2-43.3.0.jar is missing mods.toml file [29Mar2024 00:02:43.878] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file /home/container/libraries/net/minecraftforge/mclanguage/1.19.2-43.3.0/mclanguage-1.19.2-43.3.0.jar is missing mods.toml file [29Mar2024 00:02:44.033] [main/WARN] [net.minecraftforge.jarjar.selection.JarSelector/]: Attempted to select two dependency jars from JarJar which have the same identification: Mod File: and Mod File: . Using Mod File: [29Mar2024 00:02:44.034] [main/WARN] [net.minecraftforge.jarjar.selection.JarSelector/]: Attempted to select a dependency jar for JarJar which was passed in as source: resourcefullib. Using Mod File: /home/container/mods/resourcefullib-forge-1.19.2-1.1.24.jar [29Mar2024 00:02:44.034] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator/]: Found 13 dependencies adding them to mods collection
    • I am unable to do that. Brigadier is a mojang library that parses commands.
    • Hi, i appreciate the answer. I would love to do that, but we have active players with all their belongings in SSN. Also this mod is really handy and they would be mad if we removed it. Are you really certain that SSN is causing this? It would require lots of work to test it and SSN was not really an issue before we removed Fast Suite. Can it be related somehow? I will provide you with log before removing FS. PasteBin: https://pastebin.com/Y5EpLpNe (crash before removing Fast Suite, which I suspected to be a problem from some crash before)
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.