Skip to main content
Filter by
Sorted by
Tagged with
Best practices
0 votes
9 replies
116 views

I am self-taught, so I apologize if the title uses terms incorrectly. I am trying to write a Minecraft mod that adds some RPG mechanics to the game. BUT more importantly, for this question, it ...
user6512677's user avatar
0 votes
0 answers
120 views

Good afternoon/evening. I encountered a problem in the mod: why, when I try to visually break a block on a spawn, does it return it back, even though it shouldn't? package com.example.visualbreakmod; ...
kroll_tt's user avatar
0 votes
0 answers
66 views

Unable to launch Gradlew build. I've tried everything, but it won't launch. It works fine, but as soon as I want to create a mod for Minecraft, it doesn't work. I'm attaching a Google Drive link with ...
Alessio Mario Barbuto's user avatar
2 votes
1 answer
117 views

I am writing an injector for a method that looks like this: protected ItemInteractionResult useItemOn(ItemStack stack, BlockState state, Level level, BlockPos pos, Player player, InteractionHand hand, ...
GPorubanTKK's user avatar
0 votes
0 answers
65 views

The thing is, I already know how to make a simple block having a single texture on every side, but what i want is a block, like a furnace, which has a front, a top, 3 sides, and a bottom. however, i ...
BananasHelp20's user avatar
1 vote
1 answer
130 views

When launching my minecraft forge 1.8.9 mod in a dev env (Intellij Idea) it launches perfectly fine but when exporting the mod and using it In-Game it crashes on start-up with this error: Description: ...
Zacgamingpro1234's user avatar
0 votes
0 answers
148 views

I've been fighting to find ways to get transparency to work in my custom entities whilst updating my code from 1.16.5 to 1.20.1. I can not for the life of me figure this out. I've tried mimicking the ...
Mason's user avatar
  • 25
0 votes
0 answers
57 views

I'm working on a Minecraft Forge 1.12.2 mod and running into an extremely strange issue during the build process. I have a class called ContainerATM.java, which is a typical Forge container for a ...
user31147711's user avatar
0 votes
1 answer
113 views

I'm making a backrooms inspired minecraft mod, but i've run into a problem: all my textures load, apart from the textures for my lamp. the lighting works as intended though. ModBlocks.java package net....
Troy Gomme's user avatar
2 votes
0 answers
62 views

I'm making a datapack for 1.16.5 minecraft. I want it to be compatible with both vanilla and forge. I made smelting and blasting recipes and they only work in forge (I removed all other mods to test ...
Rylee Statler's user avatar
0 votes
1 answer
86 views

I'm trying to make a block that sends me to a new dimension, but when I try right clicking it, nothing happens. I've put a few debug messages to send a message to the chat or to show up in the logs ...
minecraftchest2's user avatar
0 votes
0 answers
101 views

I’m trying to automate the setup and launch of a Minecraft Forge instance on macOS entirely through the terminal, without using the official launcher or CurseForge. My goal is to: • Automatically ...
E AI Electronic's user avatar
1 vote
1 answer
713 views

I want to add an ES6 JavaScript executor to my mod. I've tried ​GraalVM and currently ​org.mozilla:rhino, which work fine in an external main() entry point, but in-game, they always throw a ​java.lang....
Archer Lee's user avatar
0 votes
0 answers
220 views

So was creating the datagen folders for a minecraft mod and when i try to run my code it shows me this error: java.lang.reflect.InvocationTargetException I created every datagen folder: package ...
Jaime Serrano's user avatar
0 votes
1 answer
563 views

I have a rather simple problem: Given the x, y and z coordinates of a barrel/chest, in a PlayerChatDecorateEventJS, I want to insert an ItemStack into it. I have read through the generated docs for ...
FabianButHere's user avatar
-2 votes
1 answer
107 views

I've been trying to run a batch file (run.bat for a minecraft server) via Java console. while i did manage to figure out a way to run the batch script on java, it seems that i cannot send commands ...
DNL PLAYZ's user avatar
0 votes
0 answers
38 views

I am creating a simple crafting block (not using block entities) and ran into some issues. I would like to use the onstep method inherent to the Blocks class to check whether an instanceof ItemEntity ...
Gbotdays's user avatar
1 vote
1 answer
1k views

I am writing my first Minecraft mod. My first item, Creeper Meat is successfully added and named in the creative inventory, but is not using the texture I placed into src/main/resources/assets/...
Nori's user avatar
  • 196
1 vote
0 answers
60 views

when i try sysns gradle changes in intellij idea i get this error: FAILURE: Build failed with an exception. Where: Build file 'C:\Users\dimam\Downloads\forge-1.7.10-10.13.4.1614-1.7.10-src\...
V8 Eater's user avatar
0 votes
1 answer
907 views

I have a mod for NeoForge version 21.4.38-beta which has some items: public static final class _Items { private _Items() { throw new AssertionError(); } private ...
The below statement is true's user avatar
0 votes
1 answer
276 views

I'm creating a minecraft mod with a block named Ruby Block, I setup the JSON files for the block data but they don't seem to work. When I test it in game, I'm able to place the blocks but when I try ...
Ezra Old's user avatar
1 vote
1 answer
179 views

I'm new at Minecraft Modding and I created a simple mod that checks if the player is in The End when they log in, if not they are teleported to a random coordinate there. I was trying to develop the ...
Gustavo Zago's user avatar
0 votes
0 answers
230 views

Edit: I have an M1 MacBook Air I have been following a Kaupenjoe tutorial for making a Minecraft Forge 1.18.2 mod but haven't been able to run the runClient task as I keep getting an error: java.lang....
duckofjudgement's user avatar
1 vote
1 answer
2k views

I am using NeoForge to make a Minecraft mod, following this tutorial I noticed that when I add ModItems.register(modEventBus); my game crashes with the following error: Minecraft Error Main class: ...
Mjennow's user avatar
  • 23
2 votes
1 answer
883 views

I am writing a mod for Minecraft. I use neoforged/NeoGradle. I can run Minecraft client with my mod by gradlew runClient I know that the mod works, because I can see it in the game. I use ...
Vitaly's user avatar
  • 2,682
0 votes
1 answer
114 views

I'm trying to create an item that places blocks that are in another hand above the block on which the item is used, but it only places the first block normally, and the others are invisible, which ...
Murzik Gaming's user avatar
0 votes
0 answers
1k views

This may sound like a noob question, but I've browsed the web for several hours now and haven't found any satisfying explanation. I'm completely new to Minecraft modding and Forge, and I'm trying to ...
Hobbes's user avatar
  • 237
-1 votes
1 answer
319 views

So i'm trying to get it so you can export NBT data from minecraft so it can be used in this online tool i'm making. Here is an example of the NBT data I am trying to convert: const NbtString = "{...
ThomasNL's user avatar
  • 357
0 votes
1 answer
2k views

According to IntelliJ forge 1.21.1 has deprecated .get() and .get().getModEventBus(), I am wondering if this is why my code is running into errors. If so, how do I now write it? I have tried asking ...
Code Corruption's user avatar
1 vote
1 answer
66 views

I'm trying to make an item in Minecraft that detects a block to a maximum of six blocks beneath the block selected with said item. So, if a block that is right-clicked with the item in hand has a Y-...
AwesomeDudeFellaBro's user avatar
0 votes
1 answer
226 views

ive been trying to make a custom command on forge 1.8.9, but I couldnt find any guide or ducumentation on how to create argumens for the commands, the thing I want to do is for example "/settext ...
vaclavak's user avatar
0 votes
1 answer
562 views

I'm currently developing a Minecraft mod using NeoForge, and I've encountered an issue when registering a custom item. After adding my texture file for the item, I receive the following error when ...
Cas_R's user avatar
  • 33
0 votes
1 answer
70 views

I will say right away, in the logs error does not appear, I use forge version 2859 for minecraft 1.12.2, I wrote a couple of classes one of which is responsible for RageMode, the essence is that the ...
Ego Solus's user avatar
-2 votes
1 answer
105 views

I'm currently coding a Minecraft Mod in Java and I have some issues about implementing the Exception correctly. I tried in the Class below different things: Before I used Maps instead of List using ...
CuteKitsuneForever's user avatar
0 votes
0 answers
119 views

So I have been trying to host a minecraft forge server from a dedicated PC running on Debian 12 and using java 17.0.11 Java Runtime Error: # A fatal error has been detected by the Java Runtime ...
Christian Raymon's user avatar
0 votes
1 answer
3k views

I am making a Minecraft Forge mod with custom recipes, one of which is the following { "type": "minecraft:crafting_shaped", "pattern": [ "E", "...
wmarcos15's user avatar
0 votes
0 answers
52 views

public static boolean isHuman(Entity pEntity) { return pEntity.is(ModEntityTags.HUMANS); } im trying to use a custom tag i made for this method however the 'is' method from the Entity ...
among us's user avatar
0 votes
1 answer
1k views

So I am using IntelliJ IDEA to mod Minecraft Forge 1.18.2 and I am trying to change the isEmptyBlock method of the LevelReader class using SpongePowered mixins. But LevelReader is an interface, and ...
I Ate Minecraft's user avatar
0 votes
1 answer
469 views

I download MDK from https://files.minecraftforge.net/net/minecraftforge/forge/index_1.16.5.html After building my forge mod in .jar and starting the minecraft, it gives me an error that the dependency ...
vefixx's user avatar
  • 1
1 vote
0 answers
85 views

so I have a code that is not working properly, which every tick with the main event handler checks if it is raining or not, if it is raining then the code in the body is executed, but it is executed ...
Ego Solus's user avatar
0 votes
1 answer
99 views

Another issue. My Bed model is not lining up properly with the boundary box. IT works perfectly when facing south or east, but facing north or west puts the block one block towards east or south. So ...
PupsiCola's user avatar
1 vote
1 answer
869 views

Trying to make a small personal mod for this server I'm in, using MC Forge for 1.20.1. We want to have custom bed models. I've got just about everything working except for a few things. For some ...
PupsiCola's user avatar
1 vote
0 answers
110 views

I'm still very new to the Minecraft modding scene, and I'm trying to create a guitar that when right-clicked within the players hand, plays a short .ogg. The issue is that while the game and items ...
Just Another Commenter's user avatar
0 votes
0 answers
30 views

when deleting blocks within a radius of 50 blocks minecraft suspends, and I need to play a sound before the deletion and after 120 seconds began to remove blocks code: @Override public void ...
HLNikNiky's user avatar
1 vote
0 answers
685 views

I have a problem when I try run the task runClient. My launcher minecraft start, but after crashed. Below follow the error: net.minecraftforge.fml.common.LoaderExceptionModCrash: Caught exception from ...
João Albéris's user avatar
2 votes
0 answers
239 views

I'm working on a Forge mod for Minecraft version 1.12.2 and I need to retrieve the title of the currently open GUI. In newer versions like Forge MDK 1.16.5, I can achieve this using mc.screen.getTitle(...
Interdum01's user avatar
0 votes
1 answer
243 views

I send the packet via the Bukkit plugin. Package Send Code: public static boolean sendPacket(Player player, String message) { try { String full_msg = "Text(" + message + ")&...
owoPeef's user avatar
0 votes
1 answer
4k views

I've just started working on a Minecraft Mod using the Architectury framework, and for the first couple of days everything was fine, but recently my project started having various problems, such as ...
Rwagsu's user avatar
  • 1
0 votes
0 answers
64 views

project on github: https://github.com/Sesdear/DristLauncher/tree/main My code: import json import os import subprocess # Function to find the Java executable def find_java_executable(): try: ...
HLNikNiky's user avatar
0 votes
0 answers
83 views

my code import os import subprocess import logging installer_path = 'forge-1.12.2-14.23.5.2860-installer.jar' forge_install_path = 'minecraft_direct' install_command = ['java', '-jar', ...
HLNikNiky's user avatar

1
2 3 4 5
17