Jump to content

Recommended Posts

Posted (edited)

Hellow good days 

 

Im remaking this item for 19.4  and this particular item has 3 types or states i store to a capability 

ih.type = 0 suspension normal unactivated

ih.type = 1 suspension shaking 

ih.type = 3 suspension activated 


im storing the value of type in the capability on the server side
to later retrieve that value in the client side to define what json texture the item gonna use 

 i notice than the values form the capability in the server side are not updating immediately to client side sometimes it does after a while sometimes not ,
but if close the game and open it again then the values appears as expected in both server and client side 

this is whats i see in the console 
 

	//client side
this.comment => 0
this.start_time => 0
this.time => 0
this.type => 0
	//server side
this.comment => 0
this.start_time => 136810
this.time => 21
this.type => 1
	


 

 


##############################

sooo :
* could be than capabilities declaration way has been change and just dont mark as error in mi intellij  installation but still works coze hooked right to the item NBTtag 

* in the capability file some flag must be turned on to make it send the data to client side and that flag is missing 

* Capabiities has violently change whit 19.4 and as this is just copy paste from 19.2 code .

 

i set the capability to the item this way and use a function to get the object and test it using a print function inside on entity swing 
 

Spoiler
				
			@Nullable
		@Override
		public ICapabilityProvider initCapabilities(ItemStack container, @Nullable CompoundTag nbt)
		{
		    return new item_c_provider(container);
		}
		
		// ########## ########## ########## ##########
		public static item_handler get_itemhandler(ItemStack helditem) {
		    // item_handler ih = get_itemhandler(helditem);
		
		    item_handler ih = ((item_handler) helditem.getCapability(ForgeCapabilities.ITEM_HANDLER)
		        .orElseThrow(() -> new RuntimeException("O_O")));
		
		    return ih;
		}				
			 				
			// ########## ########## ########## ##########
		@Override
		public boolean onEntitySwing(ItemStack helditem, LivingEntity le) {
		
		    Level warudo = le.level;
		    item_handler ih = get_itemhandler(helditem);
		
		    //on crounch change the value and save it to capability
		    if( !warudo.isClientSide && le.isCrouching())
		    {
		        ih.comment = (int)(Math.random() * 10) ;
		    }
		
		    ih.print();
		
		    return true;
		}				
			

 

 

the capability 

Spoiler
				
			package mercblk.items.classes;
		
		
		import net.minecraft.core.NonNullList;
		import net.minecraft.nbt.CompoundTag;
		import net.minecraft.nbt.ListTag;
		import net.minecraft.nbt.Tag;
		import net.minecraft.world.item.ItemStack;
		import net.minecraftforge.items.ItemStackHandler;
		import org.jetbrains.annotations.NotNull;
		
		public class item_handler extends ItemStackHandler
		{
		
		ItemStack container = null;				
			public int comment = 0;
		public Long start_time = 0L;
		public int time = 0;
		public int type = 0;
		
		public item_handler(ItemStack container)
		{
		super(0);
		this.container = container;
		}
		
		@Override
		public CompoundTag serializeNBT()
		{
		CompoundTag nbt = new CompoundTag();
		
		nbt.putInt("comment", this.comment );
		nbt.putLong("start_time", this.start_time );
		nbt.putInt("time", this.time );
		nbt.putInt("type", this.type );
		
		return nbt;
		}
		
		@Override
		public void deserializeNBT(CompoundTag nbt)
		{
		this.comment = nbt.getInt("comment" );
		this.start_time = nbt.getLong("start_time" );
		this.time = nbt.getInt("time" );
		this.type = nbt.getInt("type");
		
		onLoad();
		}
		
		public void print()
		{
		System.out.println( "this.comment => " + this.comment );
		System.out.println( "this.start_time => " + this.start_time );
		System.out.println( "this.time => " + this.time );
		System.out.println( "this.type => "+ this.type );
		}
		
		}
		 				
			

 

full item 

Spoiler
				
			package mercblk.items.classes;
		
		import com.google.gson.Gson;
		import com.google.gson.reflect.TypeToken;
		import mercblk.util.Item_helper;
		import net.minecraft.client.renderer.item.ItemProperties;
		import net.minecraft.nbt.CompoundTag;
		import net.minecraft.resources.ResourceLocation;
		import net.minecraft.sounds.SoundEvents;
		import net.minecraft.world.InteractionHand;
		import net.minecraft.world.InteractionResult;
		import net.minecraft.world.InteractionResultHolder;
		import net.minecraft.world.entity.Entity;
		import net.minecraft.world.entity.LivingEntity;
		import net.minecraft.world.entity.item.ItemEntity;
		import net.minecraft.world.entity.player.Player;
		import net.minecraft.world.item.Item;
		import net.minecraft.world.item.ItemStack;
		import net.minecraft.world.item.UseAnim;
		import net.minecraft.world.item.context.UseOnContext;
		import net.minecraft.world.level.Level;
		import mercblk.mercblk;
		import net.minecraftforge.common.capabilities.ForgeCapabilities;
		import net.minecraftforge.common.capabilities.ICapabilityProvider;
		
		import javax.annotation.Nullable;
		import java.io.File;
		import java.io.FileWriter;
		import java.io.FileReader;
		import java.io.IOException;
		import java.nio.file.Path;
		import java.util.HashMap;
		
		public class Solution_Item extends Item {
		//########## ########## ########## ########## ########## ##########
		//########## ########## ########## ########## ########## ##########
		//########## ########## ########## ########## ########## ##########
		//########## ########## ########## ########## ########## ##########
		
		private String json = "{}";
		
		public Solution_Item(Item.Properties propiedades, String json, Boolean crear_archivos) {
		super(propiedades);
		
		try {
		if(crear_archivos) {
		this.test_this(json);
		}
		} catch (IOException e) {
		e.printStackTrace();
		}
		
		
		}
		
		
		//###### ###### ###### ###### ###### ######
		public static void make_solution_shake(Item item) {
		ItemProperties.register(item, new ResourceLocation("pull"), (helditem, warudo, le, p_174638_) -> {
		//ItemModelsProperties.register(item, new ResourceLocation("pull"), (helditem, warudo, le) -> {
		
		if (le == null) {
		return 0.0F;
		} else {
		
		item_handler ih = get_itemhandler(helditem);
		
		return ih.type;
		}
		});
		
		ItemProperties.register(item, new ResourceLocation("pulling"), (helditem, warudo, le, p_174638_) -> {
		//ItemModelsProperties.register(item, new ResourceLocation("pulling"), (helditem, warudo, le) -> {
		return (le != null && le.getUseItem() == helditem) ? 1.0F : 0.0F;
		});
		}
		
		// ########## ########## ########## ##########
		public int getContainerSize() {
		return 9;
		}
		
		@Nullable
		@Override
		public ICapabilityProvider initCapabilities(ItemStack container, @Nullable CompoundTag nbt)
		{
		return new item_c_provider(container);
		}
		
		// ########## ########## ########## ##########
		public static item_handler get_itemhandler(ItemStack helditem) {
		// item_handler ih = get_itemhandler(helditem);
		
		item_handler ih = ((item_handler) helditem.getCapability(ForgeCapabilities.ITEM_HANDLER)
		.orElseThrow(() -> new RuntimeException("O_O")));
		
		return ih;
		}
		
		
		
		
		
		
		
		// ########## ########## ########## ##########
		// @Override
		public static float getPowerForTime(int p_40662_) {
		float f = (float) p_40662_ / 20.0F;
		f = (f * f + f * 2.0F) / 3.0F;
		if (f > 1.0F) {
		f = 1.0F;
		}
		
		return f;
		}
		
		public int getUseDuration(ItemStack helditem) {
		return 80;
		}
		
		public UseAnim getUseAnimation(ItemStack helditem) {
		return UseAnim.BOW;
		}
		
		// ########## ########## ########## ##########
		// ON RIGHT CLICK
		public InteractionResultHolder<ItemStack> use(Level warudo, Player pe, InteractionHand mano) {
		ItemStack helditem = pe.getItemInHand(mano);
		item_handler ih = get_itemhandler(helditem);
		Long wtick = warudo.dayTime();
		
		if( !warudo.isClientSide && ih.type < 2 ) {
		ih.type = 1;
		
		//inicializar tiempo
		ih.start_time = wtick;
		
		pe.playSound(SoundEvents.AMBIENT_UNDERWATER_ENTER, 2.0F, 2.0F);
		pe.startUsingItem(mano);
		return InteractionResultHolder.success(helditem);
		}
		
		return InteractionResultHolder.pass(helditem);
		}
		
		
		// ########## ########## ########## ##########
		@Override
		public boolean onEntitySwing(ItemStack helditem, LivingEntity le) {
		
		Level warudo = le.level;
		item_handler ih = get_itemhandler(helditem);
		
		//on crounch change the value and save it to capability
		if( !warudo.isClientSide && le.isCrouching())
		{
		ih.comment = (int)(Math.random() * 10) ;
		}
		
		ih.print();
		
		return true;
		}
		
		// ########## ########## ########## ##########
		//@Override
		public void inventoryTick(ItemStack helditem, Level warudo, Entity en, int slot_index, boolean p_77663_5_) {
		// System.out.println( String.format( "inventoryTick (%1$s)" , slot_index ) );
		}
		
		// ########## ########## ########## ##########
		public int usedtime(ItemStack helditem, int time) {
		return (getUseDuration(helditem) - time);// war
		}
		
		
		// ########## ########## ########## ##########
		@Override
		public void onUseTick(Level warudo, LivingEntity le, ItemStack helditem, int timeleft) {
		int tick = usedtime(helditem, timeleft);
		
		//System.out.println( "onUseTick = " + tick );
		
		if ((tick % 5 == 0) && le != null) {
		// PlayerEntity pe = (PlayerEntity) le;
		
		le.playSound(SoundEvents.AMBIENT_UNDERWATER_ENTER, 0.5F, 0.5F);
		}
		
		// util.showthis("tick=" +tick , le);
		
		}
		
		
		
		// ########## ########## ########## ##########
		
		// ########## ########## ########## ##########
		@Override
		public void releaseUsing(ItemStack helditem, Level warudo, LivingEntity le, int p_40670_) {
		finishUsingItem(helditem, warudo, le);
		}
		
		@Override
		public ItemStack finishUsingItem(ItemStack helditem, Level warudo, LivingEntity le) {
		System.out.println( "finishUsingItem");
		
		if (!warudo.isClientSide)
		{
		if (helditem.getItem() instanceof Solution_Item) {
		InteractionHand mano = le.getUsedItemHand();
		Long wtick = warudo.dayTime();
		item_handler ih = get_itemhandler(helditem);
		
		ih.time = (int) ( wtick - ih.start_time );
		int tick = ih.time;
		
		if( ih.time > 40 ){
		ih.type = 2;
		}
		else
		{
		ih.type = 0;
		}
		
		//helditem = new ItemStack(ItemInit.SOLUTION_REDSTONE_ACTIVATED.get(), 1);
		//le.setItemInHand(mano, helditem);
		
		// helditem = MItems.SOLUTION_REDSTONE_ACTIVATED;
		}
		}
		
		return helditem;
		}
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		//########## ########## ##########
		//escribir un archivo de texto
		public static void test_this(String json) throws IOException {
		
		HashMap<String, String> datamap = new Gson().fromJson(json,
		new TypeToken<HashMap<String, String>>() {
		}.getType());
		
		datamap.put("mod_id", mercblk.MOD_ID);
		
		String src_path_string = Item_helper.get_src_path_string();//path to the src folder
		System.out.println("string dir_path: " + src_path_string);
		
		File src_path = new File(src_path_string); //
		
		for (File file : src_path.listFiles()) {
		if (file.isDirectory()) {
		//System.out.println("Directory: " + file.getAbsolutePath());//list all folder inside src
		}
		}
		
		//%MOD_ID%
		//%NAME%
		//%LAYER0% //item/surface/acero-clear
		//%LAYER1%
		//%LAYER2%
		//%LAYER3%
		//%LAYER4%
		//%LAYER5%
		//%PARTICLE%
		
		String item_json = "";
		String file_path_string = "";
		
		//Modelo para el item
		item_json =
		"""
		{
		"overrides": [
		{
		"predicate": {
		"pulling": 0
		},
		"model": "%MOD_ID%:item/redstone/solution_redstone_deactivated"
		},
		{
		"predicate": {
		"pulling": 1
		},
		"model": "%MOD_ID%:item/redstone/solution_redstone_shaking"
		
		},
		{
		"predicate": {
		"pulling": 2
		},
		"model": "%MOD_ID%:item/redstone/solution_redstone_activated"
		
		}
		]
		}
		
		""";
		
		if( datamap.containsKey("layer0") ) {
		file_path_string = src_path_string + "/src/main/resources/assets/" + datamap.get("mod_id") + "/models/item/";
		
		//crear el archivo
		Item_helper.crear_archivo(file_path_string,
		datamap.get("name") + ".json",
		Item_helper.replace_in_json(datamap, item_json)
		);
		}
		
		
		//Modelo para el item desactivado
		item_json =
		"""
		{
		"parent": "minecraft:item/handheld",
		"textures": {
		"layer0": "%MOD_ID%:%LAYER0%",
		"particle": "%MOD_ID%:%PARTICLE%"
		}
		}
		""";
		
		if( datamap.containsKey("layer0") ) {
		file_path_string = src_path_string + "/src/main/resources/assets/" + datamap.get("mod_id") + "/models/item/redstone/";
		
		//crear el archivo
		Item_helper.crear_archivo(file_path_string,
		"solution_redstone_deactivated.json",
		Item_helper.replace_in_json(datamap, item_json)
		);
		}
		
		//Modelo para el item sacudiendo
		item_json =
		"""
		{
		"parent": "minecraft:item/handheld",
		"textures": {
		"layer0": "%MOD_ID%:%LAYER1%",
		"particle": "%MOD_ID%:%PARTICLE%"
		}
		}
		""";
		
		if( datamap.containsKey("layer1") ) {
		file_path_string = src_path_string + "/src/main/resources/assets/" + datamap.get("mod_id") + "/models/item/redstone/";
		
		//crear el archivo
		Item_helper.crear_archivo(file_path_string,
		"solution_redstone_shaking.json",
		Item_helper.replace_in_json(datamap, item_json));
		}
		
		//Modelo para el item sacudiendo
		item_json =
		"""
		{
		"parent": "minecraft:item/handheld",
		"textures": {
		"layer0": "%MOD_ID%:%LAYER2%",
		"particle": "%MOD_ID%:%PARTICLE%"
		}
		}
		""";
		
		if( datamap.containsKey("layer2") ) {
		file_path_string = src_path_string + "/src/main/resources/assets/" + datamap.get("mod_id") + "/models/item/redstone/";
		
		//crear el archivo
		Item_helper.crear_archivo(file_path_string,
		"solution_redstone_activated.json",
		Item_helper.replace_in_json(datamap, item_json));
		}
		
		
		
		
		
		
		
		//Item Forge tag
		item_json = """
		{
		"replace": false,
		"values": [
		"%MOD_ID%:%NAME%"
		]
		}
		""";
		
		if( datamap.containsKey("minecraft_tag") ) {
		file_path_string = src_path_string + "/src/main/resources/data/forge/tags/items/solutions/";
		
		//crear el archivo
		Item_helper.crear_archivo(file_path_string,
		datamap.get("minecraft_tag") + ".json",
		Item_helper.replace_in_json(datamap, item_json));
		
		}
		
		
		
		//Lang file Ingles
		if( datamap.containsKey("en_us_lang") ) {
		
		file_path_string = src_path_string + "/src/main/resources/assets/" + datamap.get("mod_id") + "/lang/";
		
		HashMap<String, String> lang_data = Item_helper.leer_archivo_map(file_path_string, "en_us.json");
		
		//"item.mercblk.ingot_steel" : "Steel Ingot"
		
		String key = "item." + datamap.get("mod_id") + "." + datamap.get("name");
		
		lang_data.put( key, datamap.get("en_us_lang") );
		
		Item_helper.escribir_archivo_map(file_path_string, "en_us.json", lang_data);
		
		}
		
		//Lang file Ingles
		if( datamap.containsKey("es_es_lang") ) {
		
		file_path_string = src_path_string + "/src/main/resources/assets/" + datamap.get("mod_id") + "/lang/";
		
		HashMap<String, String> lang_data = Item_helper.leer_archivo_map(file_path_string, "es_es.json");
		
		//"item.mercblk.ingot_steel" : "Steel Ingot"
		
		String key = "item." + datamap.get("mod_id") + "." + datamap.get("name");
		
		lang_data.put( key, datamap.get("es_es_lang") );
		
		Item_helper.escribir_archivo_map(file_path_string, "es_es.json", lang_data);
		
		}
		
		
		
		
		
		
		}
		
		
		
		
		
		//########## ########## ########## ########## ########## ##########
		//########## ########## ########## ########## ########## ##########
		//########## ########## ########## ########## ########## ##########
		//########## ########## ########## ########## ########## ##########
		}				
			

 

 

thanks for your time 

Edited by perromercenary00
Solved
Posted

https://forge.gemwire.uk/wiki/Capabilities/Attaching#Synchronizing_Data_with_Clients

The game will synchronize items to the client as part of other operations, e.g. opening your inventory or a container

But it you want it immediately, you will need to do it yourself.

 

If you look at vanilla, instead of sending network packets, the code will often try to predict what the new value should be on the client.

e.g. if you look at EggItem.use() it shrinks the ItemStack count on both the server and client.

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Posted

We are not a human search engine. Please do your own research.

https://forge.gemwire.uk/wiki/Capabilities/Attaching

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Posted

Im currently believing is some kind of bug
fireup old 19.2 version and there the capability get the values synced immediately on every change 


anyway i find a workaround  a hacky one 

if in the capability.class manually force it to save the nbtdata to the item It gets immediately updated to the client side looks like no side effect and brings an opening to made a working  onUseTick() function inside the capability 

	    // ########## ########## ########## ##########
    public void save() {
        if (this.container == null) {
            System.out.println("\n#this.container is Null at save()#\n");
            return;
        }
    this.container.setTag(serializeNBT());
    }
	

 

Spoiler

				
			package mercblk.items.classes;
		
		import net.minecraft.core.NonNullList;
		
		import net.minecraft.nbt.CompoundTag;
		import net.minecraft.nbt.ListTag;
		import net.minecraft.nbt.Tag;
		import net.minecraft.world.item.ItemStack;
		import net.minecraft.world.level.Level;
		import net.minecraftforge.items.ItemStackHandler;
		import org.jetbrains.annotations.NotNull;
		
		// ########## ########## ########## ########## ########## ##########
		// ########## ########## ########## ########## ########## ##########
		// ########## ########## ########## ########## ########## ##########
		public class item_handler extends ItemStackHandler {
		public ItemStack container = null;
		
		private Long t0 = 0L;
		private Long t1 = 0L;
		private int t = 0;
		
		
		public long start_time = 0L;
		public int time = 0;
		public int action = 0;
		public int limit = 40;
		
		
		public float fuel = 0;
		public int munition = 0;
		public int type = 0;
		
		public int tick = 0;
		
		// ########## ########## ########## ##########
		public item_handler(ItemStack container) {
		super(0);
		this.container = container;
		}
		
		// ########## ########## ########## ##########
		public void start_time() {
		this.start_time = System.currentTimeMillis();
		}
		
		// ########## ########## ########## ##########
		public void stop_time() {
		this.start_time = 0L;
		}
		
		public Level getLevel(){
		//Minecraft mc = new Minecraft();
		//Blocks.ACACIA_LEAVES.getName();
		
		
		
		return null;
		}
		
		// ########## ########## ########## ##########
		public void print(Level warudo) {
		System.out.println("<!-- -->"); //<!-- -->
		System.out.println("world => " + ((warudo.isClientSide) ? "Mundo Local" : "Mundo Servidor"));
		print();
		}
		
		public void print() {
		
		System.out.println("this.start_time = " + this.start_time);
		System.out.println("this.time = " + this.time);
		System.out.println("this.action = " + this.action);
		System.out.println("this.limit = " + this.limit);
		
		System.out.println("this.fuel = " + this.fuel);
		System.out.println("this.munition = " + this.munition);
		System.out.println("this.type = " + this.type);
		System.out.println("this.tick = " + this.tick);
		
		}
		
		// ########## ########## ########## ##########
		@Override
		public int getSlotLimit(int slot) {
		return 64;
		}
		
		// ########## ########## ########## ##########
		@Override
		public boolean isItemValid(int slot, @NotNull ItemStack stack) {
		if (stack == null || stack.isEmpty()) // || stack.getItem() instanceof BasketBlockItem
		{
		return false;
		} else {
		return super.isItemValid(slot, stack);
		}
		}
		
		// ########## ########## ########## ##########
		@Override
		public void setStackInSlot(int slot, @NotNull ItemStack stack) {
		
		//// System.out.println("setStackInSlot(" + slot + ")");
		validateSlotIndex(slot);
		this.stacks.set(slot, stack);
		onContentsChanged(slot);
		
		if (this.container != null) {
		// write_item_to_slot(this.container, slot, stack);
		}
		}
		
		// ########## ########## ########## ##########
		// @Override
		public static NonNullList<ItemStack> read_items_from(ItemStack itemstack) {
		
		NonNullList<ItemStack> contained_items = NonNullList.withSize(9, ItemStack.EMPTY);// this.getContainerSize()
		
		if (itemstack.hasTag()) {
		CompoundTag compoundtag = itemstack.getTag();
		ListTag listtag = null;
		int size = 0;
		
		if (compoundtag.contains("Items")) {
		// ListTag listtag = new ListTag();
		listtag = compoundtag.getList("Items", 10);
		size = listtag.size();
		// contained_items = NonNullList.withSize(size, ItemStack.EMPTY);
		
		for (int i = 0; i < listtag.size(); ++i) {
		CompoundTag itemstacktag = listtag.getCompound(i);
		int j = compoundtag.getByte("Slot") & 255;
		if (j >= 0 && j < contained_items.size()) {
		contained_items.set(j, ItemStack.of(itemstacktag));
		}
		}
		}
		}
		return contained_items;
		}
		
		// ########## ########## ########## ##########
		// @Override
		public void write_item_to_slot(ItemStack container, int slot, @NotNull ItemStack stack) {
		// , NonNullList<ItemStack> contained_items
		
		CompoundTag compoundtag = null;
		
		if (container.hasTag()) {
		compoundtag = container.getTag();
		} else {
		compoundtag = new CompoundTag();
		}
		
		ListTag listtag = null;
		if (compoundtag.contains("Items")) {
		listtag = compoundtag.getList("Items", 10);
		} else {
		listtag = new ListTag();
		}
		
		CompoundTag itemstacktag = null;
		
		if (slot < listtag.size()) {
		itemstacktag = listtag.getCompound(slot);
		} else {
		itemstacktag = new CompoundTag();
		}
		
		itemstacktag.putByte("Slot", (byte) slot);
		stack.save(itemstacktag);
		listtag.add(itemstacktag); // aqui tengi una duda, se sobreescrive o crea otra ??
		
		compoundtag.put("Items", listtag);
		container.setTag(compoundtag);
		}
		
		// ########## ########## ########## ##########
		public void save() {
		if (this.container == null) {
		System.out.println("\n#this.container is Null at save()#\n");
		return;
		}
		this.container.setTag(serializeNBT());
		}
		
		// ########## ########## ########## ##########
		@Override
		public CompoundTag serializeNBT() {
		
		
		if (this.start_time > 0L) {
		this.t1 = System.currentTimeMillis();
		
		if (this.t1 > this.t0) {
		//System.out.println( this.t1 + " > " + this.t0 );
		this.t0 = this.t1;
		
		this.t = (int) (t1 - this.start_time) / 50;
		if (this.t > this.time) {
		//System.out.println( this.t + " > " + this.time );
		this.time = this.t;
		onUseTick();
		if (this.time >= this.limit) {
		this.time = this.limit;
		finishUsingItem();
		this.stop_time();
		}
		}
		}
		}
		
		ListTag nbtTagList = new ListTag();
		for (int i = 0; i < stacks.size(); i++) {
		if (!stacks.get(i).isEmpty()) {
		CompoundTag itemTag = new CompoundTag();
		itemTag.putInt("Slot", i);
		stacks.get(i).save(itemTag);
		nbtTagList.add(itemTag);
		}
		}
		CompoundTag nbt = new CompoundTag();
		nbt.put("Items", nbtTagList);
		nbt.putInt("Size", stacks.size());
		
		nbt.putLong("start_time", this.start_time);
		nbt.putInt("time", this.time);
		nbt.putShort("action", (short) this.action);
		nbt.putShort("limit", (short) this.limit);
		
		nbt.putInt("munition", this.munition);
		nbt.putInt("type", this.type);
		nbt.putFloat("fuel", this.fuel);
		//this.tick = 0;
		
		//print("serializeNBT()");
		//System.out.println("\n#serializeNBT()#\n");
		
		//onSave();
		
		return nbt;
		}
		
		// ########## ########## ########## ##########
		public void read() {
		if (this.container == null) {
		System.out.println("\n#this.container is Null at read()#\n");
		return;
		}
		deserializeNBT(this.container.getTag());
		}
		
		// ########## ########## ########## ##########
		@Override
		public void deserializeNBT(CompoundTag nbt) {
		setSize(nbt.contains("Size", Tag.TAG_INT) ? nbt.getInt("Size") : stacks.size());
		ListTag tagList = nbt.getList("Items", Tag.TAG_COMPOUND);
		for (int i = 0; i < tagList.size(); i++) {
		CompoundTag itemTags = tagList.getCompound(i);
		int slot = itemTags.getInt("Slot");
		
		if (slot >= 0 && slot < stacks.size()) {
		stacks.set(slot, ItemStack.of(itemTags));
		}
		}
		
		this.start_time = nbt.getLong("start_time");
		this.time = nbt.getInt("time");
		this.action = nbt.getShort("action");
		this.limit = nbt.getShort("limit");
		
		this.munition = nbt.getInt("munition");
		this.fuel = nbt.getFloat("fuel");
		this.type = nbt.getInt("type");
		
		//System.out.println( "DeserializeNBT()" );
		//print("DeserializeNBT()");
		onLoad();
		}
		
		// ########## ########## ########## ##########
		public void onUseTick() {
		System.out.println("this.time = " + this.time);
		
		this.tick ++;
		}
		
		// ########## ########## ########## ##########
		public void finishUsingItem() {
		System.out.println("onlimit = " + this.time);
		}
		
		
		// ########## ########## ########## ########## ########## ##########
		// ########## ########## ########## ########## ########## ##########
		// ########## ########## ########## ########## ########## ##########
		// ########## ########## ########## ########## ########## ##########
		}				
			

 

 




 

  • perromercenary00 changed the title to [WorkArounded][1.19.4] Capability not syncing to local world

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

    • Add crash-reports with sites like https://mclo.gs/   Make a test without Optifine
    • I FOUND IT, Thank you! it was an invalid mod It's Info-tools
    • hi everyone, I was editing a modpack and installing a world generation mod (oh the biomes weve gone), this also required adding 3 more mods, after adding them the modpack crashed while loading the mods. If anyone can figure out where the problem is, it would really help me, thanks in advance. Below is the crashlog     [22:08:21] [main/INFO]: ModLauncher running: args [--username, U_MEST_GRUSS, --version, forge-47.3.6, --gameDir, C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern, --assetsDir, C:\Users\samsc\curseforge\minecraft\Install\assets, --assetIndex, 5, --uuid, 35eff7ce4ab94080a0d49f21fa7fd08d, --accessToken, ????????, --clientId, N2E3YWZiNjYtZmNjMi00ZGY4LWIwMTUtNGE1YTMxYmRmYmNk, --xuid, 2535441773991998, --userType, msa, --versionType, release, --width, 1024, --height, 768, --quickPlayPath, C:\Users\samsc\curseforge\minecraft\Install\quickPlay\java\1735074499399.json, --launchTarget, forgeclient, --fml.forgeVersion, 47.3.6, --fml.mcVersion, 1.20.1, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20230612.114412] [22:08:21] [main/INFO]: ModLauncher 10.0.9+10.0.9+main.dcd20f30 starting: java version 17.0.8 by Microsoft; OS Windows 11 arch amd64 version 10.0 [22:08:22] [main/INFO]: Loading ImmediateWindowProvider fmlearlywindow [22:08:22] [main/INFO]: Trying GL version 4.6 [22:08:22] [main/INFO]: Requested GL version 4.6 got version 4.6 [22:08:23] [main/INFO]: OptiFineTransformationService.onLoad [22:08:23] [main/INFO]: OptiFine ZIP file URL: union:/C:/Users/samsc/curseforge/minecraft/Instances/GregTech%20Community%20Pack%20Modern/mods/OptiFine_1.20.1_HD_U_I6.jar%23245!/ [22:08:23] [main/INFO]: OptiFine ZIP file: C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods\OptiFine_1.20.1_HD_U_I6.jar [22:08:23] [main/INFO]: Target.PRE_CLASS is available [22:08:23] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/C:/Users/samsc/curseforge/minecraft/Install/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%23100!/ Service=ModLauncher Env=CLIENT [22:08:23] [main/INFO]: OptiFineTransformationService.initialize [22:08:23] [pool-2-thread-1/INFO]: GL info: NVIDIA GeForce GT 1030/PCIe/SSE2 GL version 4.6.0 NVIDIA 556.12, NVIDIA Corporation [22:08:23] [main/INFO]: Found mod file ae2ct-1.20.1-1.0.4.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file ae2wtlib-15.2.3-forge.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file alternate_current-mc1.20-1.7.0.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file appleskin-forge-mc1.20.1-2.5.1.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file appliedenergistics2-forge-15.3.1-beta.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file Architects-Palette-1.20.1-1.3.6.1.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file architectury-9.2.14-forge.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file AttributeFix-Forge-1.20.1-21.0.4.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file badpackets-forge-0.4.3.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file balm-forge-1.20.1-7.3.10-all.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file BetterTags-1.20.1-1.1.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file Bookshelf-Forge-1.20.1-20.2.13.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file buildinggadgets2-1.0.7.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file clienttweaks-forge-1.20-11.1.0.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file cloth-config-11.1.136-forge.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file Clumps-forge-1.20.1-12.0.0.4.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file CodeChickenLib-1.20.1-4.4.0.516-universal.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file comforts-forge-6.4.0+1.20.1.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file Controlling-forge-1.20.1-12.0.2.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file Corgilib-Forge-1.20.1-4.0.3.3.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file craftingstation-1.20.1-1.2.3.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file craftingtweaks-forge-1.20.1-18.2.5.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file curios-forge-5.11.0+1.20.1.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file defaultoptions-forge-1.20-18.0.1.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file elevatorid-1.20.1-lex-1.9.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file embeddium-0.3.31+mc1.20.1.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file emi-1.1.18+1.20.1+forge.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file EnderStorage-1.20.1-2.11.0.188-universal.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file ExtendedAE-1.20-1.2.2-forge.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file FastLeafDecay-32.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file Fastload-Reforged-mc1.20.1-3.4.0.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file FastSuite-1.20.1-5.0.1.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file ferritecore-6.0.1-forge.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file findme-3.2.1-forge.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file FpsReducer2-forge-1.20-2.5.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file FramedBlocks-9.3.1.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file ftb-chunks-forge-2001.3.4.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file ftb-essentials-forge-2001.2.2.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file ftb-library-forge-2001.2.6.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file ftb-quests-forge-2001.4.9.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file ftb-teams-forge-2001.3.0.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file ftb-ultimine-forge-2001.1.5.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file ftb-xmod-compat-forge-2.1.1.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file ftbbackups2-forge-1.20-1.0.23.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file geckolib-forge-1.20.1-4.4.9.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file Glodium-1.20-1.5-forge.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file gtceu-1.20.1-1.6.1.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file HangGlider-v8.0.1-1.20.1-Forge.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file Iceberg-1.20.1-forge-1.1.25.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file inventoryessentials-forge-1.20.1-8.2.6.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file InventoryProfilesNext-forge-1.20-1.10.11.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file item-filters-forge-2001.1.0-build.59.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file Jade-1.20.1-Forge-11.12.2.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file JAVD-Forge-5.0.1+mc1.20.1.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file jei-1.20.1-forge-15.20.0.105.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file kotlinforforge-4.11.0-all.jar of type LIBRARY with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file kubejs-forge-2001.6.5-build.16.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file libIPN-forge-1.20-4.0.2.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file LibX-1.20.1-5.0.14.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file lootjs-forge-1.20.1-2.12.0.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file mae2-1.4.4.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file modelfix-1.15.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file modernfix-forge-5.19.7+mc1.20.1.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file MouseTweaks-forge-mc1.20.1-2.25.1.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file NoChatReports-FORGE-1.20.1-v2.2.2.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file Oh-The-Biomes-Weve-Gone-Forge-1.4.4.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file Oh-The-Trees-Youll-Grow-forge-1.20.1-1.3.3.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file Placebo-1.20.1-8.6.2.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file polylib-forge-2000.0.3-build.143.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file polymorph-forge-0.49.8+1.20.1.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file PuzzlesLib-v8.1.25-1.20.1-Forge.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file rhino-forge-2001.2.3-build.6.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file Searchables-forge-1.20.1-1.0.3.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file smoothboot(reloaded)-mc1.20.1-0.0.4.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file sophisticatedbackpacks-1.20.1-3.20.17.1150.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file sophisticatedcore-1.20.1-1.0.1.809.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file StorageDrawers-1.20.1-12.9.13.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file TerraBlender-forge-1.20.1-3.0.1.7.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file ToastControl-1.20.1-8.0.3.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file ToolBelt-1.20.1-1.20.02.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file torchmaster-20.1.9.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file TravelAnchors-1.20.1-5.0.1.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file trenzalore-forge-3.3.10+mc1.20.1-all.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file waystones-forge-1.20-14.1.6.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file Xaeros_Minimap_24.6.1_Forge_1.20.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file XaerosWorldMap_1.39.2_Forge_1.20.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file xtonesreworked-1.0.4-F_1.20.1-47.2.0.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/INFO]: Found mod file YeetusExperimentus-Forge-2.3.1-build.6+mc1.20.1.jar of type MOD with provider {mods folder locator at C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern\mods} [22:08:23] [main/WARN]: Mod file C:\Users\samsc\curseforge\minecraft\Install\libraries\net\minecraftforge\fmlcore\1.20.1-47.3.6\fmlcore-1.20.1-47.3.6.jar is missing mods.toml file [22:08:23] [main/WARN]: Mod file C:\Users\samsc\curseforge\minecraft\Install\libraries\net\minecraftforge\javafmllanguage\1.20.1-47.3.6\javafmllanguage-1.20.1-47.3.6.jar is missing mods.toml file [22:08:23] [main/WARN]: Mod file C:\Users\samsc\curseforge\minecraft\Install\libraries\net\minecraftforge\lowcodelanguage\1.20.1-47.3.6\lowcodelanguage-1.20.1-47.3.6.jar is missing mods.toml file [22:08:23] [main/WARN]: Mod file C:\Users\samsc\curseforge\minecraft\Install\libraries\net\minecraftforge\mclanguage\1.20.1-47.3.6\mclanguage-1.20.1-47.3.6.jar is missing mods.toml file [22:08:23] [main/INFO]: Found mod file fmlcore-1.20.1-47.3.6.jar of type LIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@42f9c19a [22:08:23] [main/INFO]: Found mod file javafmllanguage-1.20.1-47.3.6.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@42f9c19a [22:08:23] [main/INFO]: Found mod file lowcodelanguage-1.20.1-47.3.6.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@42f9c19a [22:08:23] [main/INFO]: Found mod file mclanguage-1.20.1-47.3.6.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@42f9c19a [22:08:23] [main/INFO]: Found mod file client-1.20.1-20230612.114412-srg.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@42f9c19a [22:08:23] [main/INFO]: Found mod file forge-1.20.1-47.3.6-universal.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator@42f9c19a [22:08:24] [main/INFO]: Found 15 dependencies adding them to mods collection [22:08:24] [main/INFO]: Found mod file kuma-api-forge-20.1.9-SNAPSHOT.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@25cd49a4 [22:08:24] [main/INFO]: Found mod file mixinextras-forge-0.3.5.jar of type GAMELIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@25cd49a4 [22:08:24] [main/INFO]: Found mod file caffeine-3.1.8.jar of type GAMELIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@25cd49a4 [22:08:24] [main/INFO]: Found mod file UnRealConfig-core-12.3.4.jar of type GAMELIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@25cd49a4 [22:08:24] [main/INFO]: Found mod file configuration-forge-1.20.1-2.2.0.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@25cd49a4 [22:08:24] [main/INFO]: Found mod file kfflang-4.11.0.jar of type LANGPROVIDER with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@25cd49a4 [22:08:24] [main/INFO]: Found mod file ldlib-forge-1.20.1-1.0.31.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@25cd49a4 [22:08:24] [main/INFO]: Found mod file Registrate-MC1.20-1.3.3.jar of type GAMELIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@25cd49a4 [22:08:24] [main/INFO]: Found mod file spectrelib-forge-0.13.17+1.20.1.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@25cd49a4 [22:08:24] [main/INFO]: Found mod file mclib-20.jar of type GAMELIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@25cd49a4 [22:08:24] [main/INFO]: Found mod file puzzlesaccessapi-forge-8.0.7.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@25cd49a4 [22:08:24] [main/INFO]: Found mod file MixinExtras-0.3.5.jar of type GAMELIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@25cd49a4 [22:08:24] [main/INFO]: Found mod file kfflib-4.11.0.jar of type GAMELIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@25cd49a4 [22:08:24] [main/INFO]: Found mod file kffmod-4.11.0.jar of type MOD with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@25cd49a4 [22:08:24] [main/INFO]: Found mod file UnRealConfig-gson-12.3.4.jar of type GAMELIBRARY with provider net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator@25cd49a4 [22:08:24] [main/INFO]: OptiFineTransformationService.transformers [22:08:24] [main/INFO]: Targets: 412 [22:08:25] [main/INFO]: additionalClassesLocator: [optifine., net.optifine.] [22:08:27] [main/INFO]: Compatibility level set to JAVA_17 [22:08:27] [main/INFO]: Launching target 'forgeclient' with arguments [--version, forge-47.3.6, --gameDir, C:\Users\samsc\curseforge\minecraft\Instances\GregTech Community Pack Modern, --assetsDir, C:\Users\samsc\curseforge\minecraft\Install\assets, --uuid, 35eff7ce4ab94080a0d49f21fa7fd08d, --username, U_MEST_GRUSS, --assetIndex, 5, --accessToken, ????????, --clientId, N2E3YWZiNjYtZmNjMi00ZGY4LWIwMTUtNGE1YTMxYmRmYmNk, --xuid, 2535441773991998, --userType, msa, --versionType, release, --width, 1024, --height, 768, --quickPlayPath, C:\Users\samsc\curseforge\minecraft\Install\quickPlay\java\1735074499399.json] [22:08:27] [main/INFO]: Loaded configuration file for ModernFix 5.19.7+mc1.20.1: 84 options available, 4 override(s) found [22:08:27] [main/WARN]: Option 'mixin.perf.faster_texture_stitching' overriden (by mods [optifine]) to 'false' [22:08:27] [main/WARN]: Option 'mixin.bugfix.entity_pose_stack' overriden (by mods [optifine]) to 'false' [22:08:27] [main/WARN]: Option 'mixin.perf.thread_priorities' overriden (by mods [smoothboot]) to 'false' [22:08:27] [main/WARN]: Option 'mixin.launch.class_search_cache' overriden (by mods [optifine]) to 'false' [22:08:27] [main/FATAL]: OptiFine detected. Use of ModernFix with OptiFine is not supported due to its impact on launch time and breakage of Forge features. [22:08:27] [main/INFO]: Applying Nashorn fix [22:08:27] [main/INFO]: Applied Forge config corruption patch [22:08:27] [main/INFO]: OptiFine was detected. [22:08:27] [main/INFO]: OptiFabric was NOT detected. [22:08:27] [main/INFO]: Loaded configuration file for Embeddium: 141 options available, 0 override(s) found [22:08:27] [main/INFO]: Searching for graphics cards... [22:08:28] [main/INFO]: Found graphics card: GraphicsAdapterInfo[vendor=NVIDIA, name=NVIDIA GeForce GT 1030, version=DriverVersion=32.0.15.5612] [22:08:28] [main/WARN]: Embeddium has applied one or more workarounds to prevent crashes or other issues on your system: [NVIDIA_THREADED_OPTIMIZATIONS] [22:08:28] [main/WARN]: This is not necessarily an issue, but it may result in certain features or optimizations being disabled. You can sometimes fix these issues by upgrading your graphics driver. [22:08:28] [main/WARN]: Reference map 'mae2.mixins.refmap.json' for mixins.mae2.json could not be read. If this is a development environment you can ignore this message [22:08:28] [main/INFO]: Loading 96 mods:     - ae2 15.3.1-beta     - ae2ct 1.20.1-1.0.4     - ae2wtlib 15.2.3-forge     - alternate_current 1.7.0     - appleskin 2.5.1+mc1.20.1     - architects_palette 1.3.6.1         \-- mixinextras 0.3.5     - architectury 9.2.14     - attributefix 21.0.4     - badpackets 0.4.3     - balm 7.3.10         \-- kuma_api 20.1.9-SNAPSHOT     - bettertags 1.20.1-1.1     - biomeswevegone 1.4.4     - bookshelf 20.2.13     - buildinggadgets2 1.0.7     - clienttweaks 11.1.0     - cloth_config 11.1.136     - clumps 12.0.0.4     - codechickenlib 4.4.0.516     - comforts 6.4.0+1.20.1     - controlling 12.0.2     - corgilib 4.0.3.3     - craftingstation 1.20.1-1.2.3     - craftingtweaks 18.2.5     - curios 5.11.0+1.20.1     - defaultoptions 18.0.1     - elevatorid 1.20.1-lex-1.9     - embeddium 0.3.31+mc1.20.1         \-- rubidium 0.7.1     - emi 1.1.18+1.20.1+forge     - enderstorage 2.11.0.188     - expatternprovider 1.20-1.2.2-forge     - fastleafdecay 32     - fastload 3.4.0     - fastsuite 5.0.1     - ferritecore 6.0.1     - findme 3.2.1     - forge 47.3.6     - fpsreducer 1.20-2.5     - framedblocks 9.3.1     - ftbbackups2 1.0.23     - ftbchunks 2001.3.4     - ftbessentials 2001.2.2     - ftblibrary 2001.2.6     - ftbquests 2001.4.9     - ftbteams 2001.3.0     - ftbultimine 2001.1.5     - ftbxmodcompat 2.1.1     - geckolib 4.4.9     - glodium 1.20-1.5-forge     - gtceu 1.6.1         |-- configuration 2.2.0         \-- ldlib 1.0.31     - hangglider 8.0.1     - iceberg 1.1.25     - inventoryessentials 8.2.6     - inventoryprofilesnext 1.10.11     - itemfilters 2001.1.0-build.59     - jade 11.12.2+forge     - javd 5.0.1+mc1.20.1     - jei 15.20.0.105     - kotlinforforge 4.11.0     - kubejs 2001.6.5-build.16     - libipn 4.0.2     - libx 1.20.1-5.0.14     - lootjs 1.20.1-2.12.0     - mae2 1.4.4     - minecraft 1.20.1     - modelfix 1.15     - modernfix 5.19.7+mc1.20.1     - mousetweaks 2.25.1     - nochatreports 1.20.1-v2.2.2     - ohthetreesyoullgrow 1.20.1-1.3.3     - placebo 8.6.2     - polylib 2000.0.3-build.143     - polymorph 0.49.8+1.20.1         \-- spectrelib 0.13.17+1.20.1     - puzzleslib 8.1.25         \-- puzzlesaccessapi 8.0.7     - rhino 2001.2.3-build.6     - searchables 1.0.3     - smoothboot 0.0.4     - sophisticatedbackpacks 3.20.17.1150     - sophisticatedcore 1.0.1.809     - storagedrawers 12.9.13     - terrablender 3.0.1.7     - toastcontrol 8.0.3     - toolbelt 1.20.02     - torchmaster 20.1.9     - travelanchors 1.20.1-5.0.1     - trenzalore 3.3.10     - waystones 14.1.6     - xaerominimap 24.6.1     - xaeroworldmap 1.39.2     - xtonesreworked 1.0.4     - yeetusexperimentus 2.3.1-build.6+mc1.20.1 [22:08:28] [main/INFO]: Patching IForgeItemStack#getEnchantmentLevel [22:08:28] [main/INFO]: Patching IForgeItemStack#getEnchantmentLevel [22:08:29] [main/INFO]: bre2el.fpsreducer.mixin.RenderSystemMixin will be applied. [22:08:29] [main/INFO]: bre2el.fpsreducer.mixin.WindowMixin will be applied. [22:08:29] [main/WARN]: Inventory Profiles Next: Doing our own dependency resolving! Because Forge is being Forge....: https://github.com/MinecraftForge/MinecraftForge/issues/9088 [22:08:29] [main/WARN]: Error loading class: de/maxhenkel/easyvillagers/blocks/tileentity/TraderTileentityBase (java.lang.ClassNotFoundException: de.maxhenkel.easyvillagers.blocks.tileentity.TraderTileentityBase) [22:08:29] [main/WARN]: @Mixin target de.maxhenkel.easyvillagers.blocks.tileentity.TraderTileentityBase was not found mixins.ipnext.json:MixinTraderTileEntityBase [22:08:29] [main/WARN]: Error loading class: mezz/modnametooltip/TooltipEventHandler (java.lang.ClassNotFoundException: mezz.modnametooltip.TooltipEventHandler) [22:08:29] [main/WARN]: Error loading class: me/shedaniel/rei/impl/client/ClientHelperImpl (java.lang.ClassNotFoundException: me.shedaniel.rei.impl.client.ClientHelperImpl) [22:08:30] [main/WARN]: Error loading class: journeymap/client/ui/fullscreen/Fullscreen (java.lang.ClassNotFoundException: journeymap.client.ui.fullscreen.Fullscreen) [22:08:30] [main/WARN]: @Mixin target journeymap.client.ui.fullscreen.Fullscreen was not found gtceu.mixins.json:journeymap.FullscreenMixin [22:08:30] [main/WARN]: Error loading class: org/cyclops/integrateddynamics/block/BlockCable (java.lang.ClassNotFoundException: org.cyclops.integrateddynamics.block.BlockCable) [22:08:30] [main/WARN]: @Mixin target org.cyclops.integrateddynamics.block.BlockCable was not found mixins.epp.json:MixinBlockCable [22:08:30] [main/WARN]: Error loading class: blusunrize/immersiveengineering/api/wires/GlobalWireNetwork (java.lang.ClassNotFoundException: blusunrize.immersiveengineering.api.wires.GlobalWireNetwork) [22:08:30] [main/WARN]: @Mixin target blusunrize.immersiveengineering.api.wires.GlobalWireNetwork was not found mixins.epp.json:MixinGlobalWireNetwork [22:08:30] [main/INFO]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.3.5). [22:08:30] [main/INFO]: Patching IForgeItemStack#getEnchantmentLevel [22:08:30] [main/INFO]: Patching IForgeItemStack#getEnchantmentLevel [22:08:30] [main/INFO]: Mixing client.MixinMinecraft from mixins/common/nochatreports.mixins.json into net.minecraft.client.Minecraft [22:08:31] [main/INFO]: Smooth Boot (Reloaded) config initialized [22:08:31] [main/WARN]: Static binding violation: PRIVATE @Overwrite method m_216202_ in modernfix-forge.mixins.json:perf.tag_id_caching.TagOrElementLocationMixin cannot reduce visibiliy of PUBLIC target method, visibility will be upgraded. [22:08:32] [main/INFO]: Patching IForgeItemStack#getEnchantmentLevel [22:08:32] [main/INFO]: Patching IForgeItemStack#getEnchantmentLevel [22:08:32] [main/WARN]: Method overwrite conflict for scheduleRandomTick in corgilib-common.mixins.json:chunk.MixinChunkAccess, previously written by dev.corgitaco.ohthetreesyoullgrow.mixin.chunk.MixinChunkAccess. Skipping method. [22:08:32] [main/WARN]: Method overwrite conflict for getScheduledRandomTicks in corgilib-common.mixins.json:chunk.MixinChunkAccess, previously written by dev.corgitaco.ohthetreesyoullgrow.mixin.chunk.MixinChunkAccess. Skipping method. [22:08:32] [main/WARN]: Static binding violation: PRIVATE @Overwrite method m_172993_ in embeddium.mixins.json:core.render.world.WorldRendererMixin cannot reduce visibiliy of PUBLIC target method, visibility will be upgraded.  
    • Hello, I am reporting an issue with Forge and Neoforge having a black screen even though the game is open and interactable, does anyone know how to fix it? the version is 1.20.1 here is  the exit code: -805306369  
  • Topics

×
×
  • Create New...

Important Information

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