Questions tagged [minecraft-forge]

Minecraft Forge is an unofficial API for extending Minecraft. It is built upon the Minecraft Coder Pack (MCP) and is usually updated to the latest version upon release. It is built upon java and has its own initialization system.

Filter by
Sorted by
Tagged with
-1 votes
0 answers
23 views

How to use New Line Break in JSON in Localization Keys in my Minecraft Mod?

I'm a Minecraft Modder and I know "\n" is the Character to add a new line but for some reason if I use Minecraft 1.18.2 the "\n" doesn't work with Translation Keys for Items and ...
0 votes
1 answer
19 views

how to use setBlock() with custom block in Forge?

So, i was making a mod and i wanted to use level.setBlock() which i used like this: level.setBlock(pos, Blocks.DIRT.defaultBlockState(), 1); and it worked but when i want to set my custom block, i ...
0 votes
0 answers
11 views

Minecraft modding, how to add new layer to texture of item when it is in hand

I'm trying to make mod that adds something like imbuing magic to weapons (like sword covered in ice), but creating new texture for every weapon in game sounds dumb so I was wondering if there is a way ...
-1 votes
1 answer
37 views

How do you stop a custom enchantment from working whe applied to a bow and arrow?

I made an enchantment in Minecraft Forge that poisons the entity that you hit, but it also works with a bow. I don't want that. I want it to work like the fire aspect enchantment. Does anyone know how ...
  • 1
-2 votes
0 answers
14 views

Overriding the default TabOverlay within a forge mod (1.8.9)

I'm trying to make a particular forge mod (1.8.9), that highlights players in the tab list based on certain parameters. I want in short to draw something on the tab overlay. To do all of this, I'm ...
-1 votes
0 answers
26 views

How do you get the current TPS in chattriggers (minecraft)?

So basically I want to detect TPS spikes to add a wait to my mod (to avoid them) but idk how to measure them in real-time. Example: TPS goes to 5 if (currentTPS < 16) { Thread.sleep(100) } So, is ...
0 votes
0 answers
27 views

Block/BlockEntity invisible when spawned in by world generation, however is visible when placed by player

I recently got into Minecraft modding with forge, I'm quite experienced with Java as I have learnt it years ago, but I just can't seem to figure out what's going on here. So basically, I've made a ...
0 votes
1 answer
51 views

java minecraft texture with modded block not working

I decided to start learning java and make a minecraft mod. I tried to make an modded block with holes and extensions but when I try to start minecraft it says that there is something wrong with the ...
-1 votes
0 answers
37 views

DecompileMC error - minecraft forge 1.8.9

I want to get into minecraft 1.8.9 modding but when i try to set up eclipse it shows me an error at decompileMC when i execute gradlew setupDecompWorkspace eclipse it says 18:30:40.873 [ERROR] [org....
0 votes
0 answers
21 views

Intellij only building Eclipse Adoptium.jarfile (.jar) files

I'm making a minecraft mod and I want to export it as a .jar file. But when I do './gradlew build' (Which builds a jar file) it makes a 'Eclipse Adoptium.jarfile (.jar)' file. Also is a 'Eclipse ...
0 votes
0 answers
23 views

How to fix gradlew setupDecompWorkspace eclipse

I want to do a 1.8.9 minecraft mod but when i do gradlew setupDecompWorkspace eclipse it shows me an error : FAILURE: Build failed with an exception. * What went wrong: Could not determine java ...
-2 votes
0 answers
33 views

Is it possible to give a dirt block aa block entity identity in Minecraft?

I want to prevent "pie-ray" in Minecraft where players can find other players bases based on block entities showing up on a pie graph. I was thinking that I can circumvent this by giving ...
-1 votes
0 answers
35 views

Need help shadowing my dependencies when exporting (shadowJar, gradle)

My dependencies don't export when I compile my project (gradlew build). This is my build.graddle.kts : https://paste.md-5.net/mivovenaro.js Here are my errors (already explained above): when building (...
0 votes
0 answers
28 views

Log the name of the player that joins the mc server

Im new to java and minecraft mods but i want to set up a server side mod where whenever someone joins the world it would trigger a webhook and send a msg to the discord. I am using MCreator and i just ...
0 votes
0 answers
38 views

How can I compile my dependencies in my jar? (shadowJar)

So I have a dependency and need to implement it into my .jar file (final export). Here's my build.graddle.kts: https://paste.md-5.net/mivovenaro.js Here's the error I always run into: Caused by: java....
0 votes
1 answer
47 views

How can I fix error "Could not resolve dev.architectury:architectury-pack200:0.1.3." for my java project?

I have a java program (with a couple of classes) that I need to export. To export it, I use the gradlew build command. But I always encounter this error Could not resolve dev.architectury:...
0 votes
0 answers
45 views

How to make a Minecraft mod that will hold the attack button (usually left mouse click) when "///start" is typed in chat?

I am currently working on a Minecraft bot because I want to learn Java as a student but I can't seem to find the specific code I am looking for to make this happen. My code: new Thread(() ->...
0 votes
0 answers
20 views

Minecraft Forge: Particle that does not rotate towards the player

I have a problem. I'm working on Forge under 1.19.3. I want to render a particle in such a way that it does not rotate towards the player's camera. By default, all particles rotate towards the camera. ...
  • 97
-2 votes
1 answer
36 views

My batch file isn’t executing the .jar file like it’s supposed to

enter image description hereI tried to run a jar file through a batch file, but it closes without opening the UI that is meant to run with the file. I tried downloading Jarfix, but could not double-...
1 vote
1 answer
63 views

How can I get player facing (like north, east, west or south)?

I am trying to get players facing, but my code doesn't work correctly. I need this for my mod so I can boost with it. I tried searching some methods which can return me facing but i didn't find any. ...
0 votes
0 answers
67 views

gradlew genIntellijRuns failed, Could not resolve all files for configuration ':runtimeClasspathCopy'

I was trying to run my gradle project on Intellij IDEA but it gave me this error, this is the output when I ran it with --stacktrace: To honour the JVM settings for this build a single-use Daemon ...
0 votes
1 answer
92 views

Batch File to silently auto-install Forge

I am writing a batch file to install forge (for modded Minecraft). And I can not figure out a way to auto-install Forge. I can't find anything online nor have adding "/s" to the file done ...
  • 9
0 votes
2 answers
327 views

MinecraftForge 1.19.3 Ore Generation (Java Edition)

Tutorials for modding Minecraft using Minecraftforge use a constant called BuiltInRegistries.CONFIGURED_FEATURE to allow a mod to register a custom feature. This constant is missing from Minecraft 1....
1 vote
1 answer
93 views

Is there any good way to get the current player's speed or player object in minecraft forge 1.19.X

I am making a mod that tells you your current speed on the screen. My current issue is finding a good way to get the current speed at each frame. My attempt consists of my knowledge that the ...
1 vote
0 answers
39 views

ParseResults as a parameter of getCommandManager().execute

I'm encountering a problem which I have not found anywhere else online as everyone is using CommandManager().executeCommand(player, string); //string is the command which for some reason is not ...
1 vote
1 answer
92 views

How to give Vanilla Items an NBT Tag for setting max durability ? Minecraft Forge [1.12.2]

I'm still a bit of a beginner in Mc Modding and just learned how to use NBT Tags for my own Items, and so my question is if it is possible to put an NBT Tag on existing Vanilla Items. I'm trying to ...
0 votes
0 answers
63 views

Something is wrong with my GLSL shader for Minecraft

While i was making my shader for minecraft ive run into a problem 0(13) : error C0000: syntax error, unexpected ';', expecting '{' at token ";" 0(14) : error C0000: syntax error, unexpected '...
0 votes
4 answers
223 views

java.io.FileNotFoundException Minecraft Mod

When I try to open the minecraft mod project in intelliJ IDEA I get this error when building the project. Caused by: java.io.FileNotFoundException: C:\Users\tiago.gradle\caches\forge_gradle\...
0 votes
0 answers
42 views

Minecraft overlay doesn't appear (1.7.10)

I would like some help with my mod I am doing in version 1.7.10. I made an overlay that is displayed when the player wins exp in his job(so an ExtendedEntityProperties) I made a feature that with a ...
0 votes
0 answers
33 views

ReceivePacketEvent not triggering

I have a mod that is not executing receive packet events when I run @Cancelable public class ReceivePacketEvent extends Event { public Packet<?> packet; public ReceivePacketEvent(Packet<?&...
  • 15
0 votes
0 answers
51 views

Injecting commands into a background task

I'll try to explain as much as I can my issue. So I have an Ubuntu machine set up which I use to host my Minecraft Server. It uses Java 8. To start it, I usually use the command java -Xmx10G -jar ...
  • 1
1 vote
0 answers
177 views

How to keep my Minecraft server running in Google Cloud Platform?

I used a VM in Google Cloud Platform to host a Minecraft server, which I use ./run.sh to start the server. However, once I close the VM bash it shuts down my server. It's a way to keep my server ...
0 votes
1 answer
19 views

Loot condition for death by fall damage in forge for 1.12.2

I am creating a Forge mod for 1.12.2, and I need a certain item to be dropped when a pig dies of fall damage. I have already found how to change loot tables and such, I just need the LootCondition ...
0 votes
0 answers
34 views

Terminal Appender in Minecraft Forge

When I create a new, completely clean forge server and turn it on with my .bat file, a very strange problem arises - the console does not have different text colors (this is supported in Log4j2 ...
-1 votes
1 answer
250 views

Setup Minecraft Forge to create mod in eclipse

I'm trying to make a mod in minecraft (1.12.x) in eclipse, but i'm having a lot of problems with it. Many I managed to solve them but this problem not: Unresolved dependency: net.minecraftforge:forge:...
0 votes
0 answers
99 views

What could I do to optimise this Minecraft Forge code in 1.19.2?

I'm pretty new to Minecraft modding and would like to know if there's a better way to test for a block in a radius around my player. my current implementation is the following: if ((world....
  • 1
0 votes
0 answers
89 views

Why is Level.addParticle() method not displaying particle when executed?

I am attempting to make an entity that spawns a cloud of particles. Whenever I use the addParticle() method, the particles don't spawn, but replacing it with a setblock does spawn blocks. The method ...
0 votes
1 answer
875 views

Forge 1.7.10 : Error while "gradlew setupDecompWorkspace"

I was trying to setup my modding environement and when i did 'gradlew setupDecompWorkSpace', this happen : WARNING: You are using an unsupported version of ForgeGradle. Please consider upgrading to ...
0 votes
0 answers
22 views

Minecraft modding 1.12.2 entity creation causing noclassdeffound in built project

I have created a minecraft mod in forge 1.12.2, it works just fine in Intellij when I run it there, but when I build it I get a noclassdeffound error. From the crash logs I can see that the issue is ...
0 votes
1 answer
333 views

FTB Infinity Evolved server not starting with JDK 8

I have downloaded and unzipped the FTB Infinity server from CurseForge on my Arch Linux machine and run both the install and run scripts, and I am presented with this error: Starting server OpenJDK 64-...
0 votes
0 answers
117 views

Minecraft 1.12.2 modding custom entity trouble loading textures onto model

I am trying to add a custom Ghost to Minecraft 1.12.2, I have created a model using tabular and followed a tutorial by Turty Wurty (Only followed from the point where he implemented the entity, this ...
1 vote
1 answer
509 views

How do I change the player model to a BlockBench made model in minecraft forge 1.12.2

I have created a custom model in BlockBench and I am trying to override the rendering of the players model. The code in the class for the model I created is ` package com.example.examplemod;// ...
0 votes
0 answers
47 views

how to make keybind press and not pressed

Hi I'm a beginner at java I'm having this error idk how to solve it if (item.getItem() instanceof net.minecraft.item.ItemBlock) { mc.gameSettings.keyBindSneak.pressed = false; BlockPos ...
-1 votes
1 answer
36 views

Thaumcraft4 - Golem Core "Harvest" - Bug with magic beans [closed]

I've got a mana bean farm with different segments according of bean type each. There are golems with "Harvest" core and Ordo upgrade are harvesting them. They cannot reach the segments they ...
0 votes
0 answers
59 views

How to make a multiple input block entity?

I am coding a minecraft mod and I have recently been trying to make a custom block entity. My problem is relatively simple; how would I make a block entity that has multiple input slots? I have ...
0 votes
0 answers
38 views

Different gradle wrapper version for Module

I have a project with several sub projects and I have issue where one of the sub projects requires gradle 4.9 when the other projects with the latest. Is there anyway to set the gradle wrapper version ...
0 votes
0 answers
16 views

Spawning custom mob in vanilla structure

I try to spawn my custom mob in a vanilla structure (desert_pyramid)... I thought it would just work with the .json in (data/modid/forge/biome_modifier/entity.json) but this seems to only work with ...
-1 votes
1 answer
126 views

MCreator: Can't find symbol [duplicate]

I'm currently working on a new mod named "Craftelmon", which adds the 9th Generation Pokémon into Minecraft. But every time when I'm saving a mod element inside MCreator, the Editor shows ...
-1 votes
1 answer
247 views

1.12.2 Forge and modern intelliJ IDEA not loading resources [closed]

I am trying to get even the examplemod included with Forge MDK to work. no avail. I added the Forge MDK project to IDEA and ran genIntelliJRuns and then clicked the runClient. The mcmod.info file isn'...
  • 19
-1 votes
2 answers
234 views

No suitable constructor found 1.18 java mod [closed]

I’m mid-way though writing a Minecraft 1.18.2 mod (Forge 40.1.80). As this is the first Minecraft mod I am writing, I’m not too experienced in the field and have no idea what is causing this issue. ...

1
2 3 4 5
15