Jump to content

[1.7.10] Adding trade to "new" villager type mob


DonKresenko

Recommended Posts

First of all, I'M NOT MAKING A NEW VILLAGER TYPE (that one is easy), I'm making a new MOB that can trade with the player and has only 1 trade. The mob has a custom model and custom render (that part is done), but I can't get the trade to work. The GUI shows up when i right-click on a mob, but there's a blank trade (see photo). Anyone know how to fix it? Would help :)

 

Problem photo

Y0fTgG2.png

 

Entity code

package com.blabla.test;

import net.minecraft.entity.passive.EntityVillager;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Tuple;
import net.minecraft.village.MerchantRecipe;
import net.minecraft.village.MerchantRecipeList;
import net.minecraft.world.World;

public class EntityWizard extends EntityVillager {

private MerchantRecipeList buyingList;

public EntityWizard(World w) {
	super(w);
}

@Override
public MerchantRecipeList getRecipes(EntityPlayer player) {
	if (this.buyingList == null)
        {
            this.addDefaultEquipmentAndRecipies(1);
        }

        return this.buyingList;
    }

@Override
public void setRecipes(MerchantRecipeList recipeList) {
	recipeList.add(new MerchantRecipe(new ItemStack(Items.ghast_tear, 8, 0), null, new ItemStack(Items.arrow, 16)));
}

public void addDefaultEquipmentAndRecipies(int i) {
	MerchantRecipeList merchantrecipelist;
        merchantrecipelist = new MerchantRecipeList();
        
        merchantrecipelist.add(new MerchantRecipe(new ItemStack(Items.ghast_tear, 8, 0), null, new ItemStack(Items.arrow, 16)));
        
}

}

_         

___ ___| |__  _ __ 

/ __/ __| '_ \| '_ \

\__ \__ \ | | | | | |

|___/___/_| |_|_| |_|

Link to comment
Share on other sites

Got the recipe working, but it crashes when i use the trade

 

source

package com.nuclearbanana.anticraft.entity;

import com.nuclearbanana.anticraft.AntiCraft;

import net.minecraft.entity.passive.EntityVillager;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Tuple;
import net.minecraft.village.MerchantRecipe;
import net.minecraft.village.MerchantRecipeList;
import net.minecraft.world.World;

public class EntityWizard extends EntityVillager {

//private MerchantRecipeList buyingList;

public EntityWizard(World w) {
	super(w);
}

@Override
public MerchantRecipeList getRecipes(EntityPlayer player) {
	MerchantRecipeList merchantrecipelist = new MerchantRecipeList();
	 merchantrecipelist.add(new MerchantRecipe(new ItemStack(Items.ghast_tear, 8, 0), new ItemStack(AntiCraft.Triphophyllite), new ItemStack(AntiCraft.Kukstibite, 16)));
	return merchantrecipelist;
    }

@Override
public void setRecipes(MerchantRecipeList recipeList) {
	recipeList.add(new MerchantRecipe(new ItemStack(Items.ghast_tear, 8, 0), new ItemStack(AntiCraft.Triphophyllite), new ItemStack(AntiCraft.Kukstibite, 16)));
}

public void addDefaultEquipmentAndRecipies(int i) {
	MerchantRecipeList merchantrecipelist;
        merchantrecipelist = new MerchantRecipeList();
        
        merchantrecipelist.add(new MerchantRecipe(new ItemStack(Items.ghast_tear, 8, 0), new ItemStack(AntiCraft.Triphophyllite), new ItemStack(AntiCraft.Kukstibite, 16)));
        
}

}

 

Crash report \/

 

 

[16:02:02] [main/INFO] [GradleStart]: Extra: []

[16:02:02] [main/INFO] [GradleStart]: Running with arguments: [--userProperties, {}, --assetsDir, C:/Users/Srbislav/.gradle/caches/minecraft/assets, --assetIndex, 1.7.10, --accessToken, {REDACTED}, --version, 1.7.10, --tweakClass, cpw.mods.fml.common.launcher.FMLTweaker, --tweakClass, net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker]

[16:02:02] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[16:02:02] [main/INFO] [LaunchWrapper]: Using primary tweak class name cpw.mods.fml.common.launcher.FMLTweaker

[16:02:02] [main/INFO] [LaunchWrapper]: Loading tweak class name net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[16:02:02] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLTweaker

[16:02:02] [main/INFO] [FML]: Forge Mod Loader version 7.10.85.1230 for Minecraft 1.7.10 loading

[16:02:02] [main/INFO] [FML]: Java is Java HotSpot Client VM, version 1.8.0_25, running on Windows 8.1:x86:6.3, installed at C:\Program Files\Java\jre1.8.0_25

[16:02:02] [main/INFO] [FML]: Managed to load a deobfuscated Minecraft name- we are in a deobfuscated environment. Skipping runtime deobfuscation

[16:02:02] [main/INFO] [LaunchWrapper]: Calling tweak class net.minecraftforge.gradle.GradleStartCommon$GradleStartTweaker

[16:02:02] [main/INFO] [GradleStart]: Injecting location in coremod cpw.mods.fml.relauncher.FMLCorePlugin

[16:02:02] [main/INFO] [GradleStart]: Injecting location in coremod net.minecraftforge.classloading.FMLForgePlugin

[16:02:02] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[16:02:02] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.FMLDeobfTweaker

[16:02:02] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[16:02:02] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLInjectionAndSortingTweaker

[16:02:02] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[16:02:03] [main/ERROR] [FML]: The binary patch set is missing. Either you are in a development environment, or things are not going to work!

[16:02:08] [main/ERROR] [FML]: FML appears to be missing any signature data. This is not a good thing

[16:02:08] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper

[16:02:08] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.FMLDeobfTweaker

[16:02:09] [main/INFO] [LaunchWrapper]: Loading tweak class name cpw.mods.fml.common.launcher.TerminalTweaker

[16:02:09] [main/INFO] [LaunchWrapper]: Calling tweak class cpw.mods.fml.common.launcher.TerminalTweaker

[16:02:09] [main/INFO] [LaunchWrapper]: Launching wrapped minecraft {net.minecraft.client.main.Main}

[16:02:11] [main/INFO]: Setting user: Player209

[16:02:15] [Client thread/INFO]: LWJGL Version: 2.9.1

[16:02:17] [Client thread/INFO] [MinecraftForge]: Attempting early MinecraftForge initialization

[16:02:17] [Client thread/INFO] [FML]: MinecraftForge v10.13.2.1230 Initialized

[16:02:17] [Client thread/INFO] [FML]: Replaced 182 ore recipies

[16:02:17] [Client thread/INFO] [MinecraftForge]: Completed early MinecraftForge initialization

[16:02:18] [Client thread/INFO] [FML]: Searching C:\Users\Srbislav\Desktop\Mihajlo\AntiCraft\eclipse\mods for mods

[16:02:26] [Client thread/INFO] [FML]: Forge Mod Loader has identified 4 mods to load

[16:02:26] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, anticraft] at CLIENT

[16:02:26] [Client thread/INFO] [FML]: Attempting connection with missing mods [mcp, FML, Forge, anticraft] at SERVER

[16:02:27] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:§4AntiCraft

[16:02:28] [Client thread/INFO] [FML]: Processing ObjectHolder annotations

[16:02:28] [Client thread/INFO] [FML]: Found 341 ObjectHolder annotations

[16:02:28] [Client thread/INFO] [FML]: Configured a dormant chunk cache size of 0

[16:02:28] [Client thread/INFO] [FML]: Applying holder lookups

[16:02:28] [Client thread/INFO] [FML]: Holder lookups applied

[16:02:29] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[16:02:29] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...

[16:02:29] [Thread-6/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL

[16:02:29] [Thread-6/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[16:02:30] [Thread-6/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.

[16:02:30] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[16:02:30] [sound Library Loader/INFO]: Sound engine started

[16:02:37] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[16:02:38] [Client thread/INFO]: Created: 256x256 textures/items-atlas

[16:02:38] [Client thread/INFO] [sTDOUT]: [com.nuclearbanana.anticraft.AntiCraft:postInit:172]: AntiCraft loaded!

[16:02:38] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 4 mods

[16:02:38] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:§4AntiCraft

[16:02:40] [Client thread/INFO]: Created: 512x256 textures/blocks-atlas

[16:02:41] [Client thread/INFO]: Created: 256x256 textures/items-atlas

[16:02:41] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[16:02:41] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: SoundSystem shutting down...

[16:02:41] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:importantMessage:90]:    Author: Paul Lamb, www.paulscode.com

[16:02:41] [Client thread/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[16:02:41] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[16:02:41] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Starting up SoundSystem...

[16:02:42] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: Initializing LWJGL OpenAL

[16:02:42] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:    (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)

[16:02:42] [Thread-8/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]: OpenAL initialized.

[16:02:42] [sound Library Loader/INFO] [sTDOUT]: [paulscode.sound.SoundSystemLogger:message:69]:

[16:02:42] [sound Library Loader/INFO]: Sound engine started

[16:03:00] [server thread/INFO]: Starting integrated minecraft server version 1.7.10

[16:03:00] [server thread/INFO]: Generating keypair

[16:03:01] [server thread/INFO] [FML]: Injecting existing block and item data into this server instance

[16:03:01] [server thread/INFO] [FML]: Applying holder lookups

[16:03:01] [server thread/INFO] [FML]: Holder lookups applied

[16:03:01] [server thread/INFO] [FML]: Loading dimension 0 (AntiCraft Test) (net.minecraft.server.integrated.IntegratedServer@18abf25)

[16:03:02] [server thread/INFO] [FML]: Loading dimension 1 (AntiCraft Test) (net.minecraft.server.integrated.IntegratedServer@18abf25)

[16:03:02] [server thread/INFO] [FML]: Loading dimension -1 (AntiCraft Test) (net.minecraft.server.integrated.IntegratedServer@18abf25)

[16:03:02] [server thread/INFO]: Preparing start region for level 0

[16:03:03] [server thread/INFO]: Preparing spawn area: 16%

[16:03:04] [server thread/INFO]: Preparing spawn area: 49%

[16:03:05] [server thread/INFO]: Preparing spawn area: 88%

[16:03:06] [server thread/INFO]: Changing view distance to 6, from 10

[16:03:07] [Netty Client IO #0/INFO] [FML]: Server protocol version 1

[16:03:07] [Netty IO #1/INFO] [FML]: Client protocol version 1

[16:03:07] [Netty IO #1/INFO] [FML]: Client attempting to join with 4 mods : [email protected],[email protected],[email protected],[email protected]

[16:03:07] [Netty IO #1/INFO] [FML]: Attempting connection with missing mods [] at CLIENT

[16:03:07] [Netty Client IO #0/INFO] [FML]: Attempting connection with missing mods [] at SERVER

[16:03:07] [Client thread/INFO] [FML]: [Client thread] Client side modded connection established

[16:03:07] [server thread/INFO] [FML]: [server thread] Server side modded connection established

[16:03:07] [server thread/INFO]: Player209[local:E:dc4007fd] logged in with entity id 163 at (-226.13511905513528, 52.0, -653.364649710334)

[16:03:07] [server thread/INFO]: Player209 joined the game

[16:03:16] [server thread/INFO]: Saving and pausing game...

[16:03:16] [server thread/INFO]: Saving chunks for level 'AntiCraft Test'/Overworld

[16:03:16] [server thread/INFO]: Saving chunks for level 'AntiCraft Test'/Nether

[16:03:16] [server thread/INFO]: Saving chunks for level 'AntiCraft Test'/The End

[16:03:30] [server thread/INFO]: Player209 has just earned the achievement [Taking Inventory]

[16:03:30] [Client thread/INFO]: [CHAT] Player209 has just earned the achievement [Taking Inventory]

[16:03:38] [server thread/ERROR]: Encountered an unexpected exception

net.minecraft.util.ReportedException: Ticking memory connection

at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:198) ~[NetworkSystem.class:?]

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726) ~[MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614) ~[MinecraftServer.class:?]

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118) ~[integratedServer.class:?]

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485) [MinecraftServer.class:?]

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752) [MinecraftServer$2.class:?]

Caused by: java.lang.NullPointerException

at net.minecraft.entity.passive.EntityVillager.useRecipe(EntityVillager.java:395) ~[EntityVillager.class:?]

at net.minecraft.inventory.SlotMerchantResult.onPickupFromSlot(SlotMerchantResult.java:80) ~[slotMerchantResult.class:?]

at net.minecraft.inventory.Container.slotClick(Container.java:347) ~[Container.class:?]

at net.minecraft.network.NetHandlerPlayServer.processClickWindow(NetHandlerPlayServer.java:955) ~[NetHandlerPlayServer.class:?]

at net.minecraft.network.play.client.C0EPacketClickWindow.processPacket(C0EPacketClickWindow.java:41) ~[C0EPacketClickWindow.class:?]

at net.minecraft.network.play.client.C0EPacketClickWindow.processPacket(C0EPacketClickWindow.java:113) ~[C0EPacketClickWindow.class:?]

at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241) ~[NetworkManager.class:?]

at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182) ~[NetworkSystem.class:?]

... 5 more

[16:03:38] [server thread/ERROR]: This crash report has been saved to: C:\Users\Srbislav\Desktop\Mihajlo\AntiCraft\eclipse\.\crash-reports\crash-2015-01-29_16.03.38-server.txt

[16:03:38] [server thread/INFO]: Stopping server

[16:03:38] [server thread/INFO]: Saving players

[16:03:38] [server thread/INFO]: Saving worlds

[16:03:38] [server thread/INFO]: Saving chunks for level 'AntiCraft Test'/Overworld

[16:03:38] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:388]: ---- Minecraft Crash Report ----

// Oh - I know what I did wrong!

 

Time: 1/29/15 4:03 PM

Description: Ticking memory connection

 

java.lang.NullPointerException: Ticking memory connection

at net.minecraft.entity.passive.EntityVillager.useRecipe(EntityVillager.java:395)

at net.minecraft.inventory.SlotMerchantResult.onPickupFromSlot(SlotMerchantResult.java:80)

at net.minecraft.inventory.Container.slotClick(Container.java:347)

at net.minecraft.network.NetHandlerPlayServer.processClickWindow(NetHandlerPlayServer.java:955)

at net.minecraft.network.play.client.C0EPacketClickWindow.processPacket(C0EPacketClickWindow.java:41)

at net.minecraft.network.play.client.C0EPacketClickWindow.processPacket(C0EPacketClickWindow.java:113)

at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)

at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182)

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726)

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)

 

 

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

---------------------------------------------------------------------------------------

 

-- Head --

Stacktrace:

at net.minecraft.entity.passive.EntityVillager.useRecipe(EntityVillager.java:395)

at net.minecraft.inventory.SlotMerchantResult.onPickupFromSlot(SlotMerchantResult.java:80)

at net.minecraft.inventory.Container.slotClick(Container.java:347)

at net.minecraft.network.NetHandlerPlayServer.processClickWindow(NetHandlerPlayServer.java:955)

at net.minecraft.network.play.client.C0EPacketClickWindow.processPacket(C0EPacketClickWindow.java:41)

at net.minecraft.network.play.client.C0EPacketClickWindow.processPacket(C0EPacketClickWindow.java:113)

at net.minecraft.network.NetworkManager.processReceivedPackets(NetworkManager.java:241)

 

-- Ticking connection --

Details:

Connection: net.minecraft.network.NetworkManager@4148f7

Stacktrace:

at net.minecraft.network.NetworkSystem.networkTick(NetworkSystem.java:182)

at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:726)

at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:614)

at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:118)

at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:485)

at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:752)

 

-- System Details --

Details:

Minecraft Version: 1.7.10

Operating System: Windows 8.1 (x86) version 6.3

Java Version: 1.8.0_25, Oracle Corporation

Java VM Version: Java HotSpot Client VM (mixed mode), Oracle Corporation

Memory: 951427104 bytes (907 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)

JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M

AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0

FML: MCP v9.05 FML v7.10.85.1230 Minecraft Forge 10.13.2.1230 4 mods loaded, 4 mods active

mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

FML{7.10.85.1230} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Forge{10.13.2.1230} [Minecraft Forge] (forgeSrc-1.7.10-10.13.2.1230.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

anticraft{1.0} [§4AntiCraft] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available

Profiler Position: N/A (disabled)

Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used

Player Count: 1 / 8; [EntityPlayerMP['Player209'/163, l='AntiCraft Test', x=-225.94, y=52.00, z=-653.29]]

Type: Integrated Server (map_client.txt)

Is Modded: Definitely; Client brand changed to 'fml,forge'

[16:03:38] [Client thread/INFO] [sTDOUT]: [net.minecraft.client.Minecraft:displayCrashReport:393]: #@!@# Game crashed! Crash report saved to: #@!@# .\crash-reports\crash-2015-01-29_16.03.38-server.txt

[16:03:38] [Client thread/INFO] [FML]: Waiting for the server to terminate/save.

[16:03:39] [server thread/INFO]: Saving chunks for level 'AntiCraft Test'/Nether

[16:03:39] [server thread/INFO]: Saving chunks for level 'AntiCraft Test'/The End

[16:03:39] [server thread/INFO] [FML]: Unloading dimension 0

[16:03:39] [server thread/INFO] [FML]: Unloading dimension -1

[16:03:39] [server thread/INFO] [FML]: Unloading dimension 1

[16:03:39] [server thread/INFO] [FML]: Applying holder lookups

[16:03:39] [server thread/INFO] [FML]: Holder lookups applied

[16:03:39] [server thread/INFO] [FML]: The state engine was in incorrect state SERVER_STOPPING and forced into state SERVER_STOPPED. Errors may have been discarded.

[16:03:39] [Client thread/INFO] [FML]: Server terminated.

AL lib: (EE) alc_cleanup: 1 device not closed

Java HotSpot Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

 

 

_         

___ ___| |__  _ __ 

/ __/ __| '_ \| '_ \

\__ \__ \ | | | | | |

|___/___/_| |_|_| |_|

Link to comment
Share on other sites

Not sure why the crash, but I am noticing that

addDefaultEquipmentAndRecipies

does nothing.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Your problem is that you are extending EntityVillager, but buyingList and addDefaultEquipment are both PRIVATE members of EntityVillager - you cannot use or override them without Reflection or ASM.

 

What you can do, however, is override getRecipes to return your own list, but because you override EntityVillager, your mob is still using the villager's buyingList (which is NULL) when useRecipe or any other villager method is called.

 

You either have to override every method from EntityVillager which interacts with buyingList and make it use your own list, or you need to not extend EntityVillager and just implement IMerchant instead.

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.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Sorry, but I would like to ask if anyone else is experiencing the problem: java.lang.ClassCastException: class net.minecraft.client.player.LocalPlayer cannot be cast to class net.minecraft.server.level.ServerPlayer (net.minecraft.client .player.LocalPlayer and net.minecraft.server.level.ServerPlayer are in module [email protected] of loader 'TRANSFORMER' @19a64eae) This problem appeared yesterday, while I was testing parts of my mod, which I had previously tested. I thought I might have messed up somewhere, so today I went back to a previous version, already tested and functional, and it turns out that I ran into the same problem. Someone knows what is due? I can't share the entire code, but I can give you the parts that cause the error, I hope you can help me. Thanks in advance.   DataUtil Class public static void setBooleanOnServerAndSync(Player p, String key, boolean value, boolean temporary) { p.getCapability(PlayerDataProvider.PLAYER_DATA, null).ifPresent(playerData -> { playerData.setBoolean(key, value, temporary); Messages.sendToPlayer(SyncPlayerDataPacket.toClient(key).setBoolean(value), (ServerPlayer) p); //It fails here if (value) { ResearchUtil.markResearchAsUpdated(p, key); } }); } Gui that calls the previous method public void tick() { this.timePassed++; if (this.timePassed > 1000) { this.minecraft.setScreen(null); assert minecraft.level != null; assert minecraft.player != null; DataUtil.setBooleanOnServerAndSync(Objects.requireNonNull(minecraft.level.getPlayerByUUID(minecraft.player.getUUID())),"eldritchDream", true,false); } else if (this.timePassed == 20) { Minecraft.getInstance().player.playSound(Registration.DREAM_ALIENIS.get(), 1, 1); } super.tick(); } Error Log (Website paste.ee)
    • This is the code for my enchantment tags provider for data generation: public final class ModEnchantmentTagsProvider extends EnchantmentTagsProvider { public ModEnchantmentTagsProvider(PackOutput packOutput, CompletableFuture<Provider> lookupProvider) { super(packOutput, lookupProvider); } @Override protected void addTags(Provider provider) { tag(EnchantmentTags.ARMOR_EXCLUSIVE) .add(ArmorEnchantments.FREEZING_PROTECTION) .add(ArmorEnchantments.LIGHTNING_PROTECTION) .add(ArmorEnchantments.MAGIC_PROTECTION) .add(ArmorEnchantments.SONIC_PROTECTION); tag(ModEnchantmentTags.XP_GAIN_EXCLUSIVE) .add(Enchantments.MENDING) .add(ArmorEnchantments.EXPLORATION); } @Override public String getName() { return "Unique Magic Enchantment Tags"; } }   So what am I doing here is: 1) Adding my custom protection enchantments to be ARMOR_EXCLUSIVE so they don't clash with existing protection enchantments 2) Adding tag that makes my custom EXPLORATION enchantment to be exclusive with MENDING enchantment This is then registered in ModDataGenerators: dataGen.addProvider(event.includeServer(), new ModEnchantmentTagsProvider(packOutput, lookupProvider)); When datagen is run, I end up with this error: Caused by: java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Couldn't define tag minecraft:exclusive_set/armor as it is missing following references: uniquemagic:freezing_protection,uniquemagic:lightning_protection,uniquemagic:magic_protection,uniquemagic:sonic_protection Enchantments have been migrated to 1.21 and they work in game as they did in 1.20.6. I also get enchantment JSON files in src/generated/resources so that is working well too. However, I cannot make these tags to work no matter what I try. Is there something that I am missing?  
    • Help me, I deleted the mods that were complained about in loge, but nothing changes Log: java version "19.0.2" 2023-01-17 Java(TM) SE Runtime Environment (build 19.0.2+7-44) Java HotSpot(TM) 64-Bit Server VM (build 19.0.2+7-44, mixed mode, sharing) Hosting-Minecraft: Проверка файлов сервера на наличие Forge 1.17+  Hosting-Minecraft: Forge не найден, выполняем стандартный запуск jar файла... Hosting-Minecraft: java -Xms128M -XX:MaxRAMPercentage=95.0 -Dsip=65.108.21.152 -Dspt=25630 -XX:ConcGCThreads=2 -XX:ParallelGCThreads=2 -XX:+UseSerialGC -DPaper.IgnoreJavaVersion=true -Dfml.readTimeout=1024 -Dfml.queryResult=confirm -Dlog4j2.formatMsgNoLookups=true -Dterminal.jline=false -Dterminal.ansi=true -DIReallyKnowWhatIAmDoingISwear=true -Duser.timezone=Europe/Moscow -jar -Dfile.encoding=UTF-8 server.jar nogui Starting net.fabricmc.loader.impl.game.minecraft.BundlerClassPathCapture [13:43:46] [main/INFO]: Loading Minecraft 1.19.2 with Fabric Loader 0.15.11 [13:43:46] [ForkJoinPool-1-worker-1/WARN]: The mod "moreculling" contains invalid entries in its mod json: - Unsupported root entry "embedded" at line 35 column 13 [13:43:46] [ForkJoinPool-1-worker-2/WARN]: Mod structory uses the version 1.3.1a which isn't compatible with Loader's extended semantic version format (Could not parse version number component '1a'!), SemVer is recommended for reliably evaluating dependencies and prioritizing newer version [13:43:46] [ForkJoinPool-1-worker-2/WARN]: Mod letmedespawn uses the version fabric-1.0.2 which isn't compatible with Loader's extended semantic version format (Could not parse version number component 'fabric'!), SemVer is recommended for reliably evaluating dependencies and prioritizing newer version [13:43:46] [ForkJoinPool-1-worker-1/WARN]: Mod brewinandchewin uses the version fabric-2.0.0+1.19.2 which isn't compatible with Loader's extended semantic version format (Could not parse version number component 'fabric'!), SemVer is recommended for reliably evaluating dependencies and prioritizing newer version [13:43:46] [ForkJoinPool-1-worker-1/WARN]: Mod booking_it uses the version unversioned which isn't compatible with Loader's extended semantic version format (Could not parse version number component 'unversioned'!), SemVer is recommended for reliably evaluating dependencies and prioritizing newer version [13:43:46] [main/WARN]: Warnings were found!  - Mod 'Trinkets Curios Theme' (trinkets-curios-theme) 0.2.2+1.19 recommends any version of scout, which is missing!          - You should install any version of scout for the optimal experience. [13:43:46] [main/INFO]: Loading 294 mods:         - additionz 1.1.10         - advanced_runtime_resource_pack 0.6.4         - advdebug 2.3.0         - adventurez 1.4.18         - amecs 1.3.8+mc.1.19-rc2            \-- amecsapi 1.3.6+mc22w17a         - another_furniture 2.1.2-1.19.2         - appleskin 2.4.1+mc1.19         - attributefix 17.2.6         - autotag-convention 2.0.0+1.19            \-- autotag 2.0.0+1.19         - backslot 1.2.11            \-- amecsapi 1.3.6+mc22w17a         - backslotaddon 1.0.10         - balm-fabric 4.5.7         - bclib 2.1.7         - beautify 1.1.1+fabric-1.19.2            |-- cardinal-components-base 5.0.2            |-- cardinal-components-entity 5.0.2            \-- cardinal-components-world 5.0.2         - betteradvancements 0.2.2.147         - bettercombat 1.7.1+1.19         - betterdeserttemples 1.19.2-Fabric-2.2.2            \-- org_reflections_reflections 0.10.2         - betterdungeons 1.19.2-Fabric-3.2.1         - betterend 2.1.6         - betterfortresses 1.19.2-Fabric-1.0.5         - betterladdersmod 0.0.1-1.19.2         - bettermineshafts 1.19.2-Fabric-3.2.0         - betternether 7.1.4         - betteroceanmonuments 1.19.2-Fabric-2.1.0         - betterstats 2.8.1+1.19.2            |-- architectury 6.5.77            \-- tcdcommons 2.8+1.19.2         - betterthanmending 1.3.0         - blossom 1.0.7         - bookshelf 16.3.20         - brewinandchewin fabric-2.0.0+1.19.2            |-- booking_it unversioned            |    \-- mm 2.3            \-- mm 2.3         - bushierflowers 0.0.1-1.19.2         - cardinal-components 5.0.2            |-- cardinal-components-base 5.0.2            |-- cardinal-components-block 5.0.2            |-- cardinal-components-chunk 5.0.2            |-- cardinal-components-entity 5.0.2            |-- cardinal-components-item 5.0.2            |-- cardinal-components-level 5.0.2            |-- cardinal-components-scoreboard 5.0.2            \-- cardinal-components-world 5.0.2         - cavedust 1.2.0            \-- kirin 1.11.1-beta.1         - charmofundying 6.2.0+1.19.2         - chipped 2.1.5         - ciif 1.0.0+1.19         - cloth-config 8.2.88            \-- cloth-basic-math 0.6.1         - collective 6.57         - combatroll 1.1.5+1.19         - connectiblechains 2.1.4+1.19.2         - corgilib 1.0.0.34            |-- com_electronwill_night-config_core 3.6.6            \-- com_electronwill_night-config_toml 3.6.6         - couplings 1.9.1+1.19         - crawl 0.11.1            \-- mm 2.3         - creativecore 2.9.3         - creaturesfromthesnow 4.1.0+1.19.2         - creeperoverhaul 2.0.9         - customportals 3.2.0            |-- cardinal-components-base 5.0.2            |-- cardinal-components-world 5.0.2            |-- completeconfig-base 2.1.0            \-- completeconfig-gui-cloth 2.1.0         - customspawns 0.7+1.19         - dawn 3.5.0         - debugify 2.8.0         - defaultoptions 15.0.1         - dehydration 1.3.4         - disenchanter 0.1.7+1.19         - do_a_barrel_roll 2.6.2+1.19.2            |-- cardinal-components-base 5.0.2            |-- cardinal-components-entity 5.0.2            \-- cicada 0.1.2                 \-- langfiles-plus 1.0.0         - dummmmmmy 1.19.2-1.7.2         - dungeonz 1.0.1         - earlystage 1.0.10         - easymagic 4.3.3         - ecologics 2.1.11         - elytraslot 6.1.1+1.19.2         - emi 1.0.2+1.19.2+fabric         - emi_loot 0.6.2+1.19         - emiffect 0.1.5+mc1.19.2         - enchanted-vertical-slabs 1.8         - enderscape 0.3.5-1.19.1         - endrem 5.2.0         - entitycollisionfpsfix 2.0.0.0         - environmentz 2.0.5            \-- satin 1.9.0         - eventmod 1.0.5         - expandeddelight 0.2.5         - experiencebottler 1.19+build.2         - fabric-api 0.76.0+1.19.2            |-- fabric-api-base 0.4.15+8f4e8eb390            |-- fabric-api-lookup-api-v1 1.6.14+93d8cb8290            |-- fabric-biome-api-v1 9.1.1+16f1e31390            |-- fabric-block-api-v1 1.0.2+e415d50e90            |-- fabric-blockrenderlayer-v1 1.1.25+cafc6e8e90            |-- fabric-client-tags-api-v1 1.0.5+b35fea8390            |-- fabric-command-api-v1 1.2.16+f71b366f90            |-- fabric-command-api-v2 2.2.1+413cbbc790            |-- fabric-commands-v0 0.2.33+df3654b390            |-- fabric-containers-v0 0.1.41+df3654b390            |-- fabric-content-registries-v0 3.5.2+7c6cd14d90            |-- fabric-convention-tags-v1 1.3.0+4bc6e26290            |-- fabric-crash-report-info-v1 0.2.8+aeb40ebe90            |-- fabric-data-generation-api-v1 5.3.8+413cbbc790            |-- fabric-dimensions-v1 2.1.35+0d0f210290            |-- fabric-entity-events-v1 1.5.4+9244241690            |-- fabric-events-interaction-v0 0.4.34+562bff6e90            |-- fabric-events-lifecycle-v0 0.2.36+df3654b390            |-- fabric-game-rule-api-v1 1.0.24+b6b6abb490            |-- fabric-item-api-v1 1.6.6+b7d1888890            |-- fabric-item-groups-v0 0.3.39+9244241690            |-- fabric-key-binding-api-v1 1.0.25+5c4fce2890            |-- fabric-keybindings-v0 0.2.23+df3654b390            |-- fabric-lifecycle-events-v1 2.2.4+1b46dc7890            |-- fabric-loot-api-v2 1.1.13+83a8659290            |-- fabric-loot-tables-v1 1.1.16+9e7660c690            |-- fabric-message-api-v1 5.0.7+93d8cb8290            |-- fabric-mining-level-api-v1 2.1.24+33fbc73890            |-- fabric-models-v0 0.3.21+c6af733c90            |-- fabric-networking-api-v1 1.2.11+10eb22f490            |-- fabric-networking-v0 0.3.28+df3654b390            |-- fabric-object-builder-api-v1 4.2.2+d8ef690890            |-- fabric-particles-v1 1.0.14+4d0d570390            |-- fabric-recipe-api-v1 1.0.1+413cbbc790            |-- fabric-registry-sync-v0 0.9.32+9244241690            |-- fabric-renderer-api-v1 1.2.1+1adbf27790            |-- fabric-renderer-indigo 0.8.0+1adbf27790            |-- fabric-renderer-registries-v1 3.2.24+df3654b390            |-- fabric-rendering-data-attachment-v1 0.3.19+6e0787e690            |-- fabric-rendering-fluids-v1 3.0.11+4d0d570390            |-- fabric-rendering-v0 1.1.27+df3654b390            |-- fabric-rendering-v1 1.12.1+d8ef690890            |-- fabric-resource-conditions-api-v1 2.1.2+aae9039d90            |-- fabric-resource-loader-v0 0.8.4+edbdcddb90            |-- fabric-screen-api-v1 1.0.32+4d0d570390            |-- fabric-screen-handler-api-v1 1.3.7+1cc24b1b90            |-- fabric-sound-api-v1 1.0.2+c4f28df590            |-- fabric-textures-v0 1.0.24+aeb40ebe90            |-- fabric-transfer-api-v1 2.1.6+413cbbc790            \-- fabric-transitive-access-wideners-v1 1.3.3+08b73de490         - fabric-language-kotlin 1.9.5+kotlin.1.8.22            |-- org_jetbrains_kotlin_kotlin-reflect 1.8.22            |-- org_jetbrains_kotlin_kotlin-stdlib 1.8.22            |-- org_jetbrains_kotlin_kotlin-stdlib-jdk7 1.8.22            |-- org_jetbrains_kotlin_kotlin-stdlib-jdk8 1.8.22            |-- org_jetbrains_kotlinx_atomicfu-jvm 0.20.2            |-- org_jetbrains_kotlinx_kotlinx-coroutines-core-jvm 1.7.1            |-- org_jetbrains_kotlinx_kotlinx-coroutines-jdk8 1.7.1            |-- org_jetbrains_kotlinx_kotlinx-datetime-jvm 0.4.0            |-- org_jetbrains_kotlinx_kotlinx-serialization-cbor-jvm 1.5.1            |-- org_jetbrains_kotlinx_kotlinx-serialization-core-jvm 1.5.1            \-- org_jetbrains_kotlinx_kotlinx-serialization-json-jvm 1.5.1         - fabricloader 0.15.11            \-- mixinextras 0.3.5         - fabricshieldlib 1.7-1.19.2            \-- mm 2.3         - fancymenu 2.14.7         - farmersdelight 1.19.2-1.3.9         - farmersrespite 2.2.4            \-- porting_lib 2.1.656+1.19.2                 |-- forge_tags 3.0                 |-- porting_lib_base 2.1.656+1.19.2                 |    \-- serialization_hooks 0.3.26                 |-- porting_lib_entity 2.1.656+1.19.2                 |-- porting_lib_lazy_registration 2.1.656+1.19.2                 |-- porting_lib_model_generators 2.1.656+1.19.2                 |-- porting_lib_models 2.1.656+1.19.2                 |-- porting_lib_networking 2.1.656+1.19.2                 |-- porting_lib_obj_loader 2.1.656+1.19.2                 |    \-- porting_lib_model_loader 2.1.656+1.19.2                 \-- porting_lib_transfer 2.1.656+1.19.2                      \-- porting_lib_extensions 2.1.656+1.19.2                           |-- porting_lib_accessors 2.1.656+1.19.2                           |-- porting_lib_attributes 2.1.656+1.19.2                           |    \-- porting_lib_constants 2.1.656+1.19.2                           \-- porting_lib_common 2.1.656+1.19.2         - ferritecore 5.0.3         - forgeconfigapiport 4.2.11         - frame 0.26.1+1.19-fabric            |-- frame-api-base 0.2.1+906ebc04a9            |-- frame-blocks-v0 0.1.3+233e7428a9            |-- frame-config-v0 0.3.1+0fa45150a9            |-- frame-content-registries-v0 0.4.0+2876b511a9            |-- frame-enchantments-v0 0.1.0+4093105da9            |    \-- mm 2.3            |-- frame-game-rules-v0 0.2.4+e7ce56a6a9            |-- frame-items-v0 0.1.3+906ebc04a9            |-- frame-loot-tables-v0 0.1.4+4f7341eca9            |-- frame-registries-v0 0.1.1+0e0ec74ea9            |-- frame-rendering-v0 0.1.5+906ebc04a9            |-- frame-tabbed-item-groups-v0 0.2.4+0aca9b56a9            |-- frame-toymaker-v0 0.6.1+b13741c3a9            \-- frame-woods-v0 0.2.1+6a33fbada9         - geckolib3 3.1.40            \-- com_eliotlash_mclib_mclib 20         - geodes 1.7+1.19         - geophilic 1.19-2.0.0b         - go-fish 1.6.0-1.19.1         - guarding 1.19.2+2.2.0         - handcrafted 2.0.6         - herdspanic 1.0.6         - hopobetterunderwaterruins 1.1.1         - horseexpert 4.0.0         - ice_boat_nerf 1.0.14         - iceberg 1.0.46         - immersive_armors 1.5.5+1.19.2         - inmis 2.7.1-1.19            \-- omega-config 1.2.3-1.18.1         - inmisaddon 1.0.4         - interactic 0.1.11+1.19         - java 19         - jobsaddon 1.1.1         - jumpoverfences 1.1.0         - konkrete 1.6.1         - lazydfu 0.1.3         - letmedespawn fabric-1.0.2         - levelz 1.4.9         - libz 1.0.0         - lithium 0.11.1         - logbegone 1.0.6         - lootr 0.4.26.65         - mcwfences 1.0.7         - mcwwindows 2.1.2         - medievalweapons 1.4.5            \-- reach-entity-attributes 2.3.0         - midnightlib 1.0.0         - minecraft 1.19.2         - modernfix 3.7.1            |-- fabric-models-v0 0.3.21+c6af733c90            \-- fabric-screen-api-v1 1.0.32+4d0d570390         - moisturization 1.2.1         - moonlight 1.19.2-2.2.38         - moremobvariants 1.0.1         - musketmod 1.4.6         - nameplate 1.1.3         - naturalist 3.0.2         - nbtcrafting 2.2.3+mc1.19         - netherportalfix 10.0.1         - nethersdelight 1.0.1            \-- disable_custom_worlds_advice 3.0         - nochatreports 1.19.2-v1.13.12            |-- fabric-rendering-v1 1.11.0+73145abb90            \-- fabric-screen-api-v1 1.0.27+93d8cb8290         - numismatic-overhaul 0.2.8+1.19            |-- cardinal-components-base 5.0.2            |-- cardinal-components-entity 5.0.2            \-- stacc 1.3.3         - numismaticclaim 1.0.8         - onsoulfire 1.19-2         - openpartiesandclaims 0.17.3         - overweight_farming 1.19.2-2.0.2-fabric            |-- playerabilitylib 1.6.0            |-- reach-entity-attributes 2.3.0            \-- terraform-wood-api-v1 4.2.0         - owo 0.9.3+1.19            \-- blue_endless_jankson 1.2.1         - partyaddon 1.0.3         - patchouli 1.19.2-77-FABRIC            \-- fiber 0.23.0-2         - patchoulibutton 1.0.2         - paxi 1.19.2-Fabric-3.0.1         - player-animator 1.0.2         - polymorph 0.46.1+1.19.2         - puzzleslib 4.4.0            |-- cardinal-components-base 5.0.2            |-- cardinal-components-block 5.0.2            |-- cardinal-components-chunk 5.0.2            |-- cardinal-components-entity 5.0.2            \-- cardinal-components-world 5.0.2         - realisticfirespread 1.19-2         - reciperemover 1.0.5         - resourcefulconfig 1.0.20         - resourcefullib 1.1.24         - revive 1.0.5         - rotten 1.4.7         - rpgdifficulty 1.3.12         - seasons 2.2.1+1.19         - seasonsextras 1.2-BETA+1.19         - sleepwarp 2.0.0+1.19.2         - sod 22.10.13         - sootychimneys 1.0         - sound_physics_remastered 1.19.2-1.0.18         - spark 1.10.37            \-- fabric-permissions-api-v0 0.1-SNAPSHOT         - spectrelib 0.12.7+1.19.2         - spiceoffabric 1.6.0-beta.4+1.19.2            |-- capsaicin 1.3.1+mc1.19.3            |-- coat 1.0.0-beta.18+mc22w17a            |-- tweed4_annotated 1.3.1+mc22w17a            |-- tweed4_base 1.7.1+mc22w17a            |-- tweed4_data 1.2.1+mc22w17a            |-- tweed4_data_hjson 1.1.1+mc22w17a            |-- tweed4_tailor_coat 1.1.3+mc22w17a            \-- tweed4_tailor_screen 1.1.1+mc22w17a         - spoiledz 1.0.7         - starlight 1.1.1+fabric.ae22326         - starterkit 5.2         - stendhal 1.3.4-1.19            \-- libgui 6.0.0-beta.5+1.19-pre1                 |-- jankson 4.1.1+j1.2.1                 \-- libninepatch 1.1.0         - structory 1.3.1a         - suggestion_tweaker 1.19.1-1.4.1         - t_and_t 1.10         - takesapillage 1.0.4         - tawct 1.4.3+1.19.2         - tiered 1.2.7            \-- reach-entity-attributes 2.3.0         - tlc 1.0.0         - toms_storage 1.5.7         - treechop 0.17.6         - trinkets 3.4.2         - trinkets-curios-theme 0.2.2+1.19         - universal_ores 1.4.2         - villagerfix 1.0.3         - vinery 1.2.3            \-- terraform-wood-api-v1 4.2.0         - voicechat 1.19.2-2.4.9            \-- fabric-key-binding-api-v1 1.0.18+9ff28f4095         - voidz 1.0.9         - waterdripsound 1.19-0.3.0         - wwoo 3.1.9.1         - xaeroworldmap 1.30.3         - yet-another-config-lib 2.2.0-for-1.19.2         - yungsapi 1.19.2-Fabric-3.8.9            \-- org_javassist_javassist 3.28.0-GA [13:43:46] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=file:/home/container/libraries/net/fabricmc/sponge-mixin/0.13.3+mixin.0.8.5/sponge-mixin-0.13.3+mixin.0.8.5.jar Service=Knot/Fabric Env=SERVER [13:43:46] [main/INFO]: Compatibility level set to JAVA_17 [13:43:47] [main/WARN]: Reference map 'dummmmmmy-fabric-refmap.json' for dummmmmmy.mixins.json could not be read. If this is a development environment you can ignore this message [13:43:47] [main/INFO]: Loaded configuration file for Lithium: 114 options available, 1 override(s) found [13:43:47] [main/INFO]: Loaded configuration file for ModernFix: 45 options available, 0 override(s) found [13:43:47] [main/INFO]: Applying Nashorn fix [13:43:47] [main/WARN]: Reference map 'NethersDelight-refmap.json' for nethersdelight.mixins.json could not be read. If this is a development environment you can ignore this message [13:43:47] [main/WARN]: Reference map 'fabric-the-lost-castle-refmap.json' for tlc.mixins.json could not be read. If this is a development environment you can ignore this message [13:43:48] [main/WARN]: Error loading class: net/minecraft/class_459$class_462 (java.lang.ClassNotFoundException: net/minecraft/class_459$class_462) [13:43:48] [main/WARN]: @Mixin target net.minecraft.class_459$class_462 was not found amecs.mixins.json:ControlsListWidgetKeyBindingEntryAccessor from mod amecs [13:43:48] [main/WARN]: Error loading class: net/minecraft/class_309 (java.lang.ClassNotFoundException: net/minecraft/class_309) [13:43:48] [main/WARN]: @Mixin target net.minecraft.class_309 was not found amecs.mixins.json:MixinKeyboard from mod amecs [13:43:48] [main/WARN]: Error loading class: net/minecraft/class_638$class_5271 (java.lang.ClassNotFoundException: net/minecraft/class_638$class_5271) [13:43:48] [main/WARN]: @Mixin target net.minecraft.class_638$class_5271 was not found dust.mixins.json:ClientWorldAccessor from mod cavedust [13:43:48] [main/WARN]: Error loading class: net/minecraft/class_293 (java.lang.ClassNotFoundException: net/minecraft/class_293) [13:43:48] [main/WARN]: @Mixin target net.minecraft.class_293 was not found creativecore.fabric.mixins.json:VertexFormatMixin from mod creativecore [13:43:48] [main/WARN]: Error loading class: net/minecraft/class_5684 (java.lang.ClassNotFoundException: net/minecraft/class_5684) [13:43:48] [main/WARN]: @Mixin target net.minecraft.class_5684 was not found dehydration.mixins.json:TooltipComponentMixin from mod dehydration [13:43:48] [main/WARN]: Error loading class: net/minecraft/class_906 (java.lang.ClassNotFoundException: net/minecraft/class_906) [13:43:48] [main/WARN]: @Mixin target net.minecraft.class_906 was not found go-fish.mixins.json:FishingBobberEntityRendererMixin from mod go-fish [13:43:48] [main/WARN]: Error loading class: net/minecraft/class_702 (java.lang.ClassNotFoundException: net/minecraft/class_702) [13:43:48] [main/WARN]: @Mixin target net.minecraft.class_702 was not found go-fish.mixins.json:ParticleManagerMixin from mod go-fish [13:43:48] [main/WARN]: Error loading class: net/minecraft/class_1007 (java.lang.ClassNotFoundException: net/minecraft/class_1007) [13:43:48] [main/WARN]: @Mixin target net.minecraft.class_1007 was not found inmis.mixins.json:client.PlayerEntityFeatureMixin from mod inmis [13:43:48] [main/WARN]: Error loading class: com/nhoryzon/mc/farmersdelight/block/TomatoBushCropBlock (java.lang.ClassNotFoundException: com/nhoryzon/mc/farmersdelight/block/TomatoBushCropBlock) [13:43:48] [main/WARN]: @Mixin target com.nhoryzon.mc.farmersdelight.block.TomatoBushCropBlock was not found jobsaddon.mixins.json:compat.TomatoBushCropBlockMixin from mod jobsaddon [13:43:48] [main/WARN]: Force-disabling mixin 'alloc.blockstate.StateMixin' as rule 'mixin.alloc.blockstate' (added by mods [ferritecore]) disables it and children [13:43:48] [main/WARN]: Error loading class: net/minecraft/class_634 (java.lang.ClassNotFoundException: net/minecraft/class_634) [13:43:48] [main/WARN]: @Mixin target net.minecraft.class_634 was not found modernfix-fabric.mixins.json:core.ClientPlayNetHandlerMixin from mod modernfix [13:43:48] [main/WARN]: Error loading class: net/minecraft/class_340 (java.lang.ClassNotFoundException: net/minecraft/class_340) [13:43:48] [main/WARN]: @Mixin target net.minecraft.class_340 was not found modernfix-fabric.mixins.json:feature.branding.GuiMixin from mod modernfix [13:43:48] [main/WARN]: Error loading class: net/minecraft/class_1043 (java.lang.ClassNotFoundException: net/minecraft/class_1043) [13:43:48] [main/WARN]: @Mixin target net.minecraft.class_1043 was not found modernfix-fabric.mixins.json:safety.DynamicTextureMixin from mod modernfix [13:43:48] [main/WARN]: Error loading class: net/minecraft/class_525 (java.lang.ClassNotFoundException: net/minecraft/class_525) [13:43:48] [main/WARN]: @Mixin target net.minecraft.class_525 was not found modernfix-common.mixins.json:perf.dedicated_reload_executor.CreateWorldScreenMixin from mod modernfix [13:43:48] [main/WARN]: Error loading class: net/minecraft/class_7196 (java.lang.ClassNotFoundException: net/minecraft/class_7196) [13:43:48] [main/WARN]: @Mixin target net.minecraft.class_7196 was not found modernfix-common.mixins.json:perf.dedicated_reload_executor.WorldOpenFlowsMixin from mod modernfix [13:43:48] [main/WARN]: Error loading class: fr/catcore/server/translations/api/resource/language/SystemDelegatedLanguage (java.lang.ClassNotFoundException: fr/catcore/server/translations/api/resource/language/SystemDelegatedLanguage) [13:43:48] [main/WARN]: Error loading class: net/minecraft/class_4224 (java.lang.ClassNotFoundException: net/minecraft/class_4224) [13:43:48] [main/WARN]: @Mixin target net.minecraft.class_4224 was not found sound_physics_remastered.mixins.json:ChannelAccessor from mod sound_physics_remastered [13:43:48] [main/WARN]: Error loading class: net/minecraft/class_471 (java.lang.ClassNotFoundException: net/minecraft/class_471) [13:43:48] [main/WARN]: @Mixin target net.minecraft.class_471 was not found stendhal.mixins.json:AnvilScreenMixin from mod stendhal [13:43:48] [main/WARN]: Error loading class: net/minecraft/class_473 (java.lang.ClassNotFoundException: net/minecraft/class_473) [13:43:48] [main/WARN]: @Mixin target net.minecraft.class_473 was not found stendhal.mixins.json:BookEditScreenMixin from mod stendhal [13:43:48] [main/WARN]: Error loading class: net/minecraft/class_3872 (java.lang.ClassNotFoundException: net/minecraft/class_3872) [13:43:48] [main/WARN]: @Mixin target net.minecraft.class_3872 was not found stendhal.mixins.json:BookScreenMixin from mod stendhal [13:43:48] [main/WARN]: Error loading class: net/minecraft/class_408 (java.lang.ClassNotFoundException: net/minecraft/class_408) [13:43:48] [main/WARN]: @Mixin target net.minecraft.class_408 was not found stendhal.mixins.json:ChatScreenMixin from mod stendhal [13:43:48] [main/WARN]: Error loading class: net/minecraft/class_498 (java.lang.ClassNotFoundException: net/minecraft/class_498) [13:43:48] [main/WARN]: @Mixin target net.minecraft.class_498 was not found stendhal.mixins.json:SignEditScreenMixin from mod stendhal [13:43:48] [main/WARN]: Error loading class: net/minecraft/class_465 (java.lang.ClassNotFoundException: net/minecraft/class_465) [13:43:48] [main/WARN]: @Mixin target net.minecraft.class_465 was not found trinkets-curios-theme.mixins.json:HandledScreenMixin from mod trinkets-curios-theme [13:43:48] [main/WARN]: Error loading class: org/jetbrains/annotations/ApiStatus$Internal (java.lang.ClassNotFoundException: org/jetbrains/annotations/ApiStatus$Internal) [13:43:48] [main/WARN]: Error loading class: org/jetbrains/annotations/ApiStatus$Internal (java.lang.ClassNotFoundException: org/jetbrains/annotations/ApiStatus$Internal) [13:43:48] [main/WARN]: Error loading class: org/jetbrains/annotations/ApiStatus$Internal (java.lang.ClassNotFoundException: org/jetbrains/annotations/ApiStatus$Internal) [13:43:49] [main/INFO]: I used the json to destroy the json [13:43:49] [main/INFO]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.3.5). [13:43:50] [main/INFO]: Mixing server.MixinPlayer from nochatreports.mixins.json into net.minecraft.class_1657 [13:43:50] [main/WARN]: @Final field field_6280:Ljava/util/Map; in vinery.mixins.json:LivingEntityMixin from mod vinery should be final [13:43:51] [main/WARN]: Method overwrite conflict for compatSync in environmentz.mixins.json:ServerPlayerEntityMixin from mod environmentz, previously written by net.dehydration.mixin.ServerPlayerEntityMixin. Skipping method. [13:43:51] [main/WARN]: Method overwrite conflict for method_21740 in modernfix-common.mixins.json:perf.remove_biome_temperature_cache.BiomeMixin from mod modernfix, previously written by me.jellysquid.mods.lithium.mixin.world.temperature_cache.BiomeMixin. Skipping method. [13:43:51] [main/ERROR]: Minecraft has crashed! net.fabricmc.loader.impl.FormattedException: java.lang.NoSuchFieldError: CLIENT_CONFIG         at net.fabricmc.loader.impl.FormattedException.ofLocalized(FormattedException.java:63) ~[fabric-loader-0.15.11.jar:?]         at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:472) ~[fabric-loader-0.15.11.jar:?]         at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74) [fabric-loader-0.15.11.jar:?]         at net.fabricmc.loader.impl.launch.knot.KnotServer.main(KnotServer.java:23) [fabric-loader-0.15.11.jar:?]         at net.fabricmc.loader.impl.launch.server.FabricServerLauncher.main(FabricServerLauncher.java:69) [fabric-loader-0.15.11.jar:?]         at net.fabricmc.installer.ServerLauncher.main(ServerLauncher.java:69) [server.jar:1.0.1] Caused by: java.lang.NoSuchFieldError: CLIENT_CONFIG         at org.betterx.bclib.config.Configs.<clinit>(Configs.java:12) ~[bclib-2.1.7.jar:?]         at org.betterx.bclib.api.v2.levelgen.biomes.BCLBiomeSettings.applyWithDefaults(BCLBiomeSettings.java:201) ~[bclib-2.1.7.jar:?]         at org.betterx.bclib.api.v2.levelgen.biomes.BCLBiome.<init>(BCLBiome.java:290) ~[bclib-2.1.7.jar:?]         at org.betterx.bclib.api.v2.levelgen.biomes.BCLBiome.<init>(BCLBiome.java:273) ~[bclib-2.1.7.jar:?]         at org.betterx.bclib.api.v2.levelgen.biomes.InternalBiomeAPI.wrapNativeBiome(InternalBiomeAPI.java:268) ~[bclib-2.1.7.jar:?]         at org.betterx.bclib.api.v2.levelgen.biomes.InternalBiomeAPI.wrapNativeBiome(InternalBiomeAPI.java:232) ~[bclib-2.1.7.jar:?]         at org.betterx.bclib.api.v2.levelgen.biomes.BiomeAPI.<clinit>(BiomeAPI.java:254) ~[bclib-2.1.7.jar:?]         at org.betterx.bclib.api.v2.levelgen.biomes.BCLBiomeRegistry.bootstrap(BCLBiomeRegistry.java:91) ~[bclib-2.1.7.jar:?]         at net.minecraft.class_5458.method_44104(class_5458.java:98) ~[server-intermediary.jar:?]         at net.minecraft.class_5458.method_30566(class_5458.java:105) ~[server-intermediary.jar:?]         at java.util.LinkedHashMap.forEach(LinkedHashMap.java:729) ~[?:?]         at net.minecraft.class_5458.<clinit>(class_5458.java:104) ~[server-intermediary.jar:?]         at net.minecraft.class_2378.<clinit>(class_2378.java:326) ~[server-intermediary.jar:?]         at net.minecraft.class_2966.method_12851(class_2966.java:50) ~[server-intermediary.jar:?]         at net.minecraft.server.Main.main(Main.java:98) ~[server-intermediary.jar:?]         at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470) ~[fabric-loader-0.15.11.jar:?]         ... 4 more
    • i dont know what is cousing this i am creating my own private modpack to play with  a friend but for some reason less then a minute after loading in a world the games freezes becouse my memory is 99% used (the memory i allocated for minecraft to use)   i keep searching in the log but i cant find the couse cen some pls help my find it   i play in minecraft version 1.20.1 and forge version 47.2.32 log: https://drive.google.com/file/d/1HlCl6R_20LwEsgk4Z9Y84IPBUUorxcA9/view?usp=sharing
    • If you want to access Resource from Minecraft, use: ResourceLocation.withDefaultNamespace("potato"); or If you want to access Resource from your mod, use: ResourceLocation.fromNamespaceAndPath("your_mod_id", "your_key");
  • Topics

×
×
  • Create New...

Important Information

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