Questions tagged [minecraft-modding]
For questions about modding Minecraft, regardless of the edition.
239
questions
0
votes
1
answer
121
views
How do I fix a "missing mcp.cfg" error?
I am trying to use mod coder pack (MCP) to create mods of my own. I have downloaded MCP 9.4 version from www.modcoderpack.com. The error that I have encountered is that when I try to run a file called ...
2
votes
3
answers
1k
views
How can I make a custom mob that looks like the Enderman?
I have previously made two other mods that added in mobs. In order for the mob to look like a wolf, I needed the wolf.java file (Found online).
Without setting a defined java file, the mob will use ...
1
vote
3
answers
574
views
How minecraft manages interactable blocks (Chest)?
I am wondering, how does minecraft handle blocks like chest?
I guess normal blocks are ids in simple array, but how does it store and references blocks with special behaviour?
0
votes
1
answer
3k
views
Unsupported API version on Spigot 1.14 snapshot
I'm (trying to) develop a plugin for Spigot Minecraft 1.14.2. I have tried putting both api-version: 1.14.2 and ...
0
votes
1
answer
166
views
How can I use Cocoa beans in Minecraft Forge custom crafting recipes?
I'm creating a Minecraft mod with Forge, and I need to create a custom crafting recipe that uses cocoa beans. However, when I try to create the recipe, it does not work (as in, I cannot craft items ...
1
vote
1
answer
326
views
How can I get old Minecraft style terrain biome selection?
I'm using this post as a reference for what I'm doing.
The real thing of interest is this:
As you can see, this is a Whittaker diagram, with temperature and rain considerations.
So would this be ...
0
votes
0
answers
83
views
Minecraft Optifine - where is the zoom class?
I'm working on a mod where I want to have a zoom feature like Optifine. To start out, I want to try messing around with the zoom in the actual Optifine mod. There are a lot of .class files, and I don'...
1
vote
0
answers
38
views
Where do I write code in my minecraft modding environment?
So this is probably a stupid question but I'm just beginning so I hope someone can help. I set up my whole modding environment in eclipse but the problem is that I don't know where to start writing ...
1
vote
1
answer
754
views
How can I make an entity invulnerable to fall damage?
I've been using minecraft forge 1.12 to make a mod that gives the user super-jumping abilities. However, I've been having trouble making the player invincible to fall damage. I've tried to use a ...
0
votes
1
answer
2k
views
Minecraft modding 1.12 draw image
I want to draw an image that I created but the image is too big. Now I want the Gui to scale the image to a reasonable size, but when I change the width and height it doesn't make the image scale down/...
0
votes
1
answer
678
views
How do I use the Minecraft Coder Pack on Linux
I downloaded the Minecraft coder pack to mod the game and decompile it, but how do I use it on Linux. Some sources seem to give specific directions, but they are not clear and they involve executing ...
1
vote
1
answer
598
views
Minecraft/OpenGL - Create Multiple viewports
I'm working on a project for the game and i have been trying to draw a second smaller "window" that would act like a second camera, independent from the player.
I have looked into glViewport however ...
0
votes
2
answers
639
views
Minecraft Bedrock behaviors: drop items for player/owner?
I'm making a simple behavior pack for Minecraft's Bedrock Edition for my own experimenting - the aim is to get tamed wolves to play fetch. The behavior pack is valid and loading, as it sort of works, ...
-1
votes
1
answer
146
views
Interesting graphic artifact
I was exploring old Minecraft source code when I encountered this:
I just wanted to know what causes such distortion and how to fix it with OpenGL?
0
votes
1
answer
2k
views
Does Minecraft Really Rely on CPU More Than GPU For FPS? [closed]
I understand that Minecraft runs on Java which is very demanding on the CPU (garbage collection and JVM processes), but I still don't understand how FPS is the CPU's responsibility. Shouldn't the CPU ...
4
votes
2
answers
947
views
Name of this technique used in games such as Minecraft or the sims
In Minecraft, there are some blocks which are a little bit different than just cubes.
For example stairs or fences: these elements are "aware" of their surrounding blocks and render differently based ...
1
vote
0
answers
73
views
Problem with Thread (bunggecord and spigot)
I would like to see how many players are connected in a server by the way bukkit and Bungee messaging channel like this :
...
1
vote
1
answer
58
views
How to distinguish multiple same element already in place on a minecraft map
I am currently working on a minecraft plugin using spigot.
It's a sort of a race between players where checkpoints validation is needed.
I have a minecraft map edited on MCEdit and I have severals ...
4
votes
2
answers
1k
views
How do i store blocks information in my Voxel game?
I am trying to make a voxel game.
Voxel games made by blocks and each block has it's own information such as durability, step sounds, strength, ...
How do i store these information inside of blocks? ...
2
votes
2
answers
226
views
Iterating in "box" formation
I'm writing a minecraft clone in C++ and need some assisting with the chunk generation. Because I only want to load chunks that are near the player, I have to load and unload chunks based on the ...
0
votes
1
answer
436
views
No files in .net.minecraft
So, I've been trying to make a minecraft 1.11.2 client for minecraft. Thing is, the mcp/src/minecraft folder is empty, without any net files. The only error I had while decompiling was missing lwjgl 2....
-1
votes
1
answer
774
views
How can I create new Minecraft items in a Spigot plugin?
Is it possible to make a new custom item in a plugin so that in-hand 3D models and textures don't interfere with vanilla Minecraft items? How?
5
votes
0
answers
164
views
Scoreboard setdisplay list shows correctly per char. Can i make my sidebar show correctly per char as well?
So I've been writing a script over the last little while in Python that interacts with the Minecraft console. I'm basically trying to make a scoreboard based currency system that is world independent ...
1
vote
1
answer
303
views
Minecraft: What is the reasonable face/vertex limit for custom models?
When adding custom models to function as tile entity representations, what is a reasonable ceiling - based on performance - to maintain for individual models? Assume that the player will have the ...
1
vote
0
answers
793
views
Minecraft modding - Dealing extra damage from a sword
I am making a Minecraft mod, and in my tin sword, when it deals damage to an entity, it randomly deals more damage.
...
1
vote
1
answer
143
views
How can I add my custom mob to my minecraft game?
So, I'm obviously not a very experienced mob maker, so ill just get to the point. after I made a custom mob, I had no idea where to put it, how to make sound, how to make an egg for it etc. would ...
0
votes
1
answer
60
views
Moving entities above a tile entity
Sorry if my code looks amateur I just started modding, although I have experience in Java.
I have a tile entity checking every frame if there are entities above it. It works, but then stops after 1 ...
0
votes
2
answers
4k
views
Source code of Minecraft servers?
Is there any way to get the source code of Minecraft servers? I tried decompiling but I get very obfuscated arguments, classes, and methods.
If the answer is no, how did services like Bukkit and ...
2
votes
1
answer
287
views
How to make more jagged terrain [closed]
I need some help with some terrain I'm working on. I'm developing a plugin for Minecraft, but these concepts will apply to any game with terrain. I am using Simplex noise to generate cavern-like ...
1
vote
1
answer
565
views
How to optimize a cubes made world game? [duplicate]
I'm making a cube-world-game like Minecraft. And to render it I've splitted it in 16x16x16 blocks regions (also known as chunks in mc) and then, on rendering, I take all the chunks in the rendering ...
3
votes
3
answers
1k
views
Cube world rendering optimizations
I'm making a Minecraft like game and I would like to apply some optimizations. Firstly I didn't and I rendered the world using a vbo in which I stored a cube model and I drow all blocks of the worlds ...
5
votes
5
answers
3k
views
Programming with Python in a recent version of Minecraft
I've been teaching Python programming to a friend's son using the book Adventures in Minecraft. This book comes with a starter kit that contains a pre-configured Bukkit (v.1.6.4) server, and targets ...
1
vote
0
answers
59
views
How much more do I have to learn? [closed]
So I started learning java sometime ago and now I am understanding packages.
My main goal is to do minecraft modding. Can someone with modding experience please tell me how hard(or easy) minecraft ...
0
votes
1
answer
1k
views
Minecraft chunk file decompresssion
First of all, hello everyone,
I'm currently making a program to read Minecraft region files (r.#.#.mca) for a server.
The problem I have is that I can't decompress them, I tried GZip and ZLib ...
0
votes
1
answer
407
views
How to pass arguments with BungeeCord/Bukkit plugin messaging
I am trying to send a plugin message from Bukkit, to BungeeCord, but can not figure out how to send arguments.
Here is the code from the Bukkit plugin, which sends the message:
...
1
vote
1
answer
407
views
How to voxelize a height map?
Lets say I make a height map and I want to make it out of CUBES to use in my game. I dont want to generate anything procedualy, I just want to cubify a height map. So I just want a static mesh.
I also ...
0
votes
1
answer
643
views
Why do I get this EventException in Bukkit? [closed]
Could any one tell me why I get the exception (and how to fix it):
Bukkit Plugin Couldn't pass Playerdeathevent to Plugin [org.bukkit.event.EventException]
with this code?
...
1
vote
1
answer
730
views
Bukkit Scheduler not in main Class
I want to make an Repeating Task whisch isn't in the main Class. ("Bukkit.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {},20,20);")
But it says that it can't resolve the method.
1
vote
0
answers
147
views
Creation of block mesh for minecraft like chunk
Problem:
I'm trying to build a naive mesh for a "chunk" of 2x2x2 blocks. But the "mesh" i create is 3x3x3 blocks (i don't understand why?) and the "extra cubes" are not like i intendet them to be (...
3
votes
1
answer
200
views
Minecraft Forge 1.8 Custom Recipe Manager, need help
sorry for asking this question. Some of you will probably find it very easy but I just can't figure out how to do it.
I want to write a custom Recipe Manager. It has to check the recipes. Therefor I ...
0
votes
1
answer
825
views
Lighting in Minecraft/Block-esque worlds [duplicate]
Chaps,
I'm sure we all know at a high level how Minecraft's lighting engine works. Light sources flood surrounding blocks with light, which themselves flood their neighbors and so forth.
However, I ...
1
vote
0
answers
148
views
Rendering blocks in lwjgl, problems with VAO & VBO
//EDIT: Found the solution: had to use GL11.glDrawElements instead of DrawArrays.
I'm working on a "voxel based world" engine. At the moment my approach follows these steps:
Creation of a Mesh:
...
1
vote
0
answers
66
views
Minecraft Crafting GUI weird bugs
I'm writing a Forge mod for Minecraft 1.8. When I'm pressing the 'z' key a 3x3 Crafting grid should open. In the KeyInputHandler I call
...
0
votes
3
answers
150
views
Minecraft: Players Held Item Type
How can I check if a players held item is of a specific item type - for example an axe. (can be iron axe, gold axe, wooden axe, etc.)?
Or do I have to do multiple if statements to have this done?
<...
-2
votes
1
answer
195
views
Terrain making in unity [closed]
I'm making a minecraft-like game, I'm trying to make a terrain made of cubes, but copying and pasting the same cube takes too much time and uses too much of my pc's RAM. So, any suggestions?
3
votes
0
answers
308
views
How to smooth low-res sampling of noise for voxel terrain
I am attempting to create a new terrain generator as part of a minecraft mod, which works very well if it samples at the full terrain resolution (16x256x16 voxels per terrain chunk). This is extremely ...
1
vote
0
answers
699
views
Minecraft : Mod-making (MCreator) : Redstone Result Event
I am currently using a Mod-making Tool called "MCreator" made by Pylo.
I am currently making a Block Element and creating an event when The block is right clicked by a Prismarine Shard, then The ...
0
votes
1
answer
44
views
Keeping Players in Groups
tl;dr How can one enforce that groups of players stay together in units in Minecraft?
I'm developing a plugin for a Minecraft server. It's based off feudalistic societies, like Ancient Europe or ...
-1
votes
2
answers
784
views
Where is the GUI button press sound file for Minecraft?
I am making a custom modpack, and I need to change the GUI button press sound for my modpack, but I don't know where the sound file is for clicking the GUI button.
0
votes
2
answers
3k
views
Where do assets for Minecraft mods go?
I found this link:
Where do I store (or how do I refer to) textures for custom blocks?
Unfortunately, the answer did not explain where that assets folder actually is. As such, I can't figure out ...