i need some help with a minecraft mod

so i have this modid.mixins.json { "required": true, "package": "com.example.mixin", "compatibilityLevel": "JAVA_21", "mixins": [ "InGameHudMixin", "MouseMixin", "ParticleManagerMixin" ], "injectors": { "defaultRequire": 1 }, "overwrites": { "requireAnnotations": true } } and these files but for some reason intellij says this error and paths codes everything is right it just dosent wanna work it crashes my game plz help someone
No description
No description
26 Replies
JavaBot
JavaBot•5mo ago
⌛ This post has been reserved for your question.
Hey @frqme! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
JavaBot
JavaBot•5mo ago
Please format your code to make it more readable. For java, it should look like this:
​`​`​`​java
public void foo() {

}
​`​`​`​
​`​`​`​java
public void foo() {

}
​`​`​`​
Hype_the_Time (PING ON REPLY)
Fabric mc has their own dc with a specialised mixins channel. - > experts Did you modify all the stuff including the package since it says com.example still etc. Also mixin class hierarchy please
frqme
frqmeOP•5mo ago
i dont think
No description
Hype_the_Time (PING ON REPLY)
Vaguely remembered the fabric mod json having a reference to the Mixin file. Make sure it has the mod id. Also package matches here ye And are the Mixin classes annotated with mixin?
frqme
frqmeOP•5mo ago
wdym? im kinda new to mods
Hype_the_Time (PING ON REPLY)
in the fabric.mod.json there is a link to the Mixin config file name. Make sure its correct
Dexter
Dexter•5mo ago
{
"schemaVersion": 1,
"id": "nexure",
"version": "1.0.0",
"name": "Nexure Client",
"description": "A clean custom Minecraft client.",
"authors": [ "Frqme!" ],
"license": "CC0-1.0",
"icon": "assets/nexure/icon.png",
"environment": "client",
"entrypoints": {
"client": [
"com.example.NexureClient"
]
},
"mixins": [
"nexure.mixins.json"
],
"depends": {
"fabricloader": ">=0.15.0",
"minecraft": "~1.21.5",
"java": ">=17",
"fabric-api": "*"
}
}thats it
{
"schemaVersion": 1,
"id": "nexure",
"version": "1.0.0",
"name": "Nexure Client",
"description": "A clean custom Minecraft client.",
"authors": [ "Frqme!" ],
"license": "CC0-1.0",
"icon": "assets/nexure/icon.png",
"environment": "client",
"entrypoints": {
"client": [
"com.example.NexureClient"
]
},
"mixins": [
"nexure.mixins.json"
],
"depends": {
"fabricloader": ">=0.15.0",
"minecraft": "~1.21.5",
"java": ">=17",
"fabric-api": "*"
}
}thats it
This message has been formatted automatically. You can disable this using /preferences.
Hype_the_Time (PING ON REPLY)
That's good
frqme
frqmeOP•5mo ago
ok so what can it be
Hype_the_Time (PING ON REPLY)
IMA have a look at my files but since on phone it will take a bit. Idk whether it is it (likely not) but sometimes its intelij thats causing an incorrect issue. Try launch via gradle once after a clean. After a look I couldn't see any mismatches from mine really. My last idea would be related to you showing me the code of 1 of the 3 mixins but tbh it seems like a good idea to me to go to <#807617700734042122> (fabric mc) since last time I needed help they responded reasonably fast and they know more than I do. I'm at the end of ideas here. @frqme Was it a bad / missing package block?
frqme
frqmeOP•5mo ago
i dont think
Hype_the_Time (PING ON REPLY)
Can you send 1 of the Mixin classes here?
Dexter
Dexter•5mo ago
package com.example.mixin; import com.example.manager.ParticleManager; import net.minecraft.client.particle.Particle; import net.minecraft.particle.ParticleEffect; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; @Mixin(net.minecraft.client.particle.ParticleManager.class)
public abstract class ParticleManagerMixin {

@Inject(method = "createParticle(Lnet/minecraft/particle/ParticleEffect;DDDDDD)Lnet/minecraft/client/particle/Particle;", at = @At("HEAD"), cancellable = true)
private <T extends ParticleEffect> void createParticle(T parameters, double x, double y, double z, double velocityX, double velocityY, double velocityZ, CallbackInfoReturnable<Particle> cir) {
updated manager method.
if (!ParticleManager.isParticleVisible(parameters.getType())) {
cir.setReturnValue(null);
}
}
}
public abstract class ParticleManagerMixin {

@Inject(method = "createParticle(Lnet/minecraft/particle/ParticleEffect;DDDDDD)Lnet/minecraft/client/particle/Particle;", at = @At("HEAD"), cancellable = true)
private <T extends ParticleEffect> void createParticle(T parameters, double x, double y, double z, double velocityX, double velocityY, double velocityZ, CallbackInfoReturnable<Particle> cir) {
updated manager method.
if (!ParticleManager.isParticleVisible(parameters.getType())) {
cir.setReturnValue(null);
}
}
}
This message has been formatted automatically. You can disable this using /preferences.
Hype_the_Time (PING ON REPLY)
Yeah. I'm out of ideas. Like it indicates it isn't able to find them but the package stuff seems right. Its right package and mixins seem to be configured properly in my eyes on a phone. I would say its time for fabric mc. Not crazy fast but they have a deep knowledge but gotta be patient IG.
frqme
frqmeOP•5mo ago
yea sent there idk
Hype_the_Time (PING ON REPLY)
Wait 1 idea
frqme
frqmeOP•5mo ago
?
Hype_the_Time (PING ON REPLY)
Maybe it can't be both via mixins but be like server only
frqme
frqmeOP•5mo ago
idk maybe
Hype_the_Time (PING ON REPLY)
I only use client since client side only but check if there's server exclusive or sth And then check if they work like that Wait no your doing client
frqme
frqmeOP•5mo ago
yea
Hype_the_Time (PING ON REPLY)
It was the other guy with server But try replacing the mixins with client. Worth a try
Dexter
Dexter•5mo ago
{
"required": true,
"minVersion": "0.8",
"package": "de.hype.bingonet.fabric.mixins.mixin",
"compatibilityLevel": "JAVA_8",
"mixins": [
],
"client": [
"BingoNetCommandSource",
"ChatHudMixin",
"ChestLidMixin",
"ChestMixin",
"ClientCommandSourceMixin",
"CommandNodeAccessMixin",
"FulbrightMixin",
"IncomingPacketListenerPatches",
"InventoryKeyBinds",
"LiteralCommandNodeMixin",
"MinecraftWindowTitleMixin",
"RootCommandNodeAccessMixin",
"ScreenHandlerMixin",
"SimpleOptionMixin",
"WorldRenderLastEventPatch",
"itemmixins.CustomItemData",
"itemmixins.CustomItemTooltip",
"itemmixins.ModifyCountAndTextureMixin"
],
"injectors": {
"defaultRequire": 1
}
}
{
"required": true,
"minVersion": "0.8",
"package": "de.hype.bingonet.fabric.mixins.mixin",
"compatibilityLevel": "JAVA_8",
"mixins": [
],
"client": [
"BingoNetCommandSource",
"ChatHudMixin",
"ChestLidMixin",
"ChestMixin",
"ClientCommandSourceMixin",
"CommandNodeAccessMixin",
"FulbrightMixin",
"IncomingPacketListenerPatches",
"InventoryKeyBinds",
"LiteralCommandNodeMixin",
"MinecraftWindowTitleMixin",
"RootCommandNodeAccessMixin",
"ScreenHandlerMixin",
"SimpleOptionMixin",
"WorldRenderLastEventPatch",
"itemmixins.CustomItemData",
"itemmixins.CustomItemTooltip",
"itemmixins.ModifyCountAndTextureMixin"
],
"injectors": {
"defaultRequire": 1
}
}
This message has been formatted automatically. You can disable this using /preferences.
Hype_the_Time (PING ON REPLY)
My one in my mod
JavaBot
JavaBot•5mo ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.

Did you find this page helpful?