Questions tagged [minecraft-modding]

For questions about modding Minecraft, regardless of the edition.

Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

How to create a minecraft style world that is based of a heightmap

For my game I am trying to create a Minecraft style world that is based off a heightmap that I made In Photoshop. I am trying to make the map which is 7km squared where each cube is 1m cubed but I ...
idontfeellikeusingmyrealname's user avatar
1 vote
2 answers
267 views

Minecraft Forge 1.8 referencing mod problem

I'm trying to make a Minecraft Forge mod. I've done this before, but I've never worked with entities. So I was trying to add an entity to the EntityRegistry, but I ...
Script_Coded's user avatar
1 vote
1 answer
278 views

How to get an AbstractClientPlayer for all players?

I'm working on an minecraft forge mod (1.8.8). I have en custom (ownable) entity and want to set its texture to the texture of its owner, because it's a mini version of the owner. I found out that i ...
Alex H's user avatar
  • 121
1 vote
1 answer
118 views

I can't create a "trap" block

So, I am trying to make a "trap" block. It should kill the entity that will stand on it(or walk as in the code, if somebody knows how to make that it will do something while an entity stands on it, it ...
daniel_sl's user avatar
0 votes
0 answers
49 views

How to setup for live player / observer pair w/ voice chat in Minecraft

I'm trying to build a setup for educational use of Minecraft: One person plays Minecraft, another person watches live online with the least lag/latency possible, and the pair can talk over high-...
Mallory-Erik's user avatar
3 votes
1 answer
208 views

Minecraft modding: onLanded and item type/positioning?

My question is about programming Minecraft mods. So i added a block to my Mod. Now I want, that when you drop a sugar on it, that it waits some time and then, if the sugar is still there, it will ...
Nova Shadowflame's user avatar
1 vote
1 answer
1k views

Why does Forge not find my texture for my custom background?

I am creating a minecraft mod that improves the main menu for my minecraft server. At first I wanted to create the background, but somehow when I try to start minecraft it closes and I get a ...
Freakey's user avatar
  • 13
5 votes
5 answers
1k views

How can I render "two-sided" clouds like in Minecraft?

The clouds in Minecraft are semi-transparent and are rendered on both sides. If you fly into the cloud you can see inside of the cloud. If I render clouds the inside faces would be visible on the ...
Peter Quiring's user avatar
0 votes
2 answers
234 views

Minecraft Forge modding 1.8 instance changing tool/armor material + color

I am developing a minecraft mod in forge, and I need to find a way to create tools and armor where individual instances of items would have different tool material properties, armor material ...
Phoenix's user avatar
  • 203
-4 votes
2 answers
896 views

What's the difference between an .nbt and an .mca file?

What do I have to do if I want to save a .nbt file as .mca file? I got a byte array and all the data is OK. If I save the contents as a .nbt file I can open and view it with NBTExplorer. If I save it ...
Vetterjack's user avatar
3 votes
1 answer
814 views

How animated block in voxel engine?

In my voxel engine (XNA 4.0) I'm use a vertex buffer for the entire chunk and update it after the set block, changing block metadata or light level. This is not too frequent operation compared with ...
user avatar
0 votes
2 answers
2k views

Calculating pitch angle to hit a target using a projectile that has fixed speed

I am trying to calculate a vertical angle needed to hit a target at [distance, elevation] 2D coordinates relative to shooter given a fixed projectile velocity, air ...
Tomáš Zato's user avatar
1 vote
2 answers
205 views

How do I get to ModPE to perform a function the first time a mod is opened?

I am making a Minecraft PE mod and I want to set a variable only on the first launch of the mod. So, how do I make it it set the variable and then not set it again until I import the mod again?
Nathan Quackenboss's user avatar
3 votes
2 answers
11k views

How does Minecraft render chunks? [duplicate]

I'm writing a simple Minecraft like game to test out a few world gen algorithms and to learn more about OpenGL. My first render code was glBegin() ... glEnd() style....
Hullu2000's user avatar
1 vote
1 answer
1k views

How can I check if player is an operator in Forge?

In Minecraft Forge, I would like to know if there is any way to find out if a player currently has vanilla "OP" / "Operator" status. I can't find a method that does this on the EntityPlayer Class. I'...
Flatron's user avatar
  • 111
3 votes
1 answer
2k views

Minecraft Modding - How do I use OpenGL stencil functions alongside the game's GlStateManager?

Note: I am using Minecraft Coder Pack 9.10 for game version 1.8.0 (official release). I am trying to make a multiline text field similar to the game's original net.minecraft.client.gui.GuiTextField. ...
Shadowtrot's user avatar
0 votes
1 answer
1k views

Minecraft Forge setTextureName method not working

I am attempting to make an item using the latest version of Forge. For some reason, the setTextureName method gives me an error that says: The method setTextureName(String) is undefined for the ...
Arti Schmidt's user avatar
2 votes
0 answers
222 views

(Minecraft) MoveHelper for custom entity not updating

I'm trying to create a shark mob for minecraft 1.8 (using Forge 1.8). Since it's a water mob, the movement functions need to be edited to allow it to path correctly in water. However, after ...
steelfeathers's user avatar
2 votes
2 answers
8k views

What makes Minecraft so CPU intensive, and what could be done to improve it? [closed]

Recently I've been searching for VPSes that allow Minecraft servers to be hosted, and surprisingly very few do. Most allow for games - but Minecraft in specific is disallowed by many. Now it's fairly ...
Jon's user avatar
  • 251
1 vote
1 answer
3k views

Minecraft Forge Look for Entities in a Certain Location

The title mostly explains it. I have a tile entity that is called Energizer. I want this energizer to check to see if there is an EntityItem on top of it and if so, consume it and create energy. The ...
Andrew Graber's user avatar
3 votes
0 answers
292 views

Does anyone know what technique was used in Minecraft to create shadows? [closed]

Specifically I want to know the technique used to render shadows under animals and players. I would like to create shadows like that for my own block game but I don't even know what to google. Any ...
Xavier's user avatar
  • 1,633
0 votes
2 answers
1k views

Storing a block world

I've gotten a basic Minecraft clone working (thanks to gamedev.stackexchange's help! ^_^), but know I have no idea how to save the file. Minecraft itself uses a naive list of block ids as far as I ...
Shien's user avatar
  • 257
-2 votes
1 answer
584 views

Is Minecraft component-based or does it have class for every block? [closed]

I'm wondering if Minecraft has class for every type of block or blocks are just IDs in code. EDIT And what about data like transparency, resistance, hardness, tool, etc? Are they hardcoded or stored ...
nikoliazekter's user avatar
0 votes
1 answer
109 views

What are names like "net.minecraft.blocks" called? [closed]

I'm trying to find these types of names for certain Minecraft blocks to add them to a block whitelist for one of my mods. Is there an actual name for these? If not, how would I go about finding a list ...
2xedo's user avatar
  • 113
2 votes
1 answer
295 views

Is there a way to drain durability from an item instead of a sword, for instance?

I am modding Minecraft 1.8 using Eclipse with Forge, and I just wondered, is there a way to drain durability from a battery, for instance, instead of a piece of armor when hit. I have tried things ...
TheMysteriousCoder's user avatar
1 vote
1 answer
131 views

Creating a queue for BeginInvoke method - loading chunks

I have a voxel game similar to Minecraft. I have a funciton PushLoadedChunks(Direction) that pushes all of the loaded chunks forward, backward, left, right. This is done with sfd.BeginInvoke(...
Jon's user avatar
  • 33
0 votes
1 answer
494 views

Sending block chunks through TCP

I am creating a 'Minecraft clone' and the game is going to be only multiplayer. I currently have a limited world (it's not going to be infinite) that is 512 chunks. Each chunk is 16(X) * 16(Z) * 128(...
George Cloone-y's user avatar
-1 votes
1 answer
837 views

minecraft source code for use in mods

So I am teaching a class where we will be using java to make minecraft mods. To keep things simple, we are using a third party program to set up the under-the-hood stuff for us (that way we don't have ...
unknown's user avatar
  • 101
1 vote
1 answer
398 views

Minecraft - how do I add a PNG for a new Mob to either assets or resourcepacks

I've installed MCP and set up eclipse and successfully added my new monster to the game. It spawns properly and does everything I meant it to do. The only problem I still have is that the texture that ...
Abyssal Assault's user avatar
2 votes
0 answers
1k views

How do I make a Minecraft recipe that costs XP?

I want to program a Minecraft client-mod or server-plugin that adds a recipe for making a Bottle o' Enchanting with the following ingredients: 1 glass bottle + 1 lvl of experience → 1 Bottle o' ...
CleverModer's user avatar
0 votes
1 answer
510 views

minecraft mapping from tibia OTBM file

I am new to minecraft modding but i program for a living and it looks quite simple to get around. I have this fantasy and a quick internet search shows im not the only one. For those of you who do not ...
PIRATE FIFI's user avatar
-2 votes
1 answer
750 views

MCP 1.7.10 Java class navigation [closed]

So, I'm new to the Minecraft modding community and trying to understand where to start. I've attempted to do it before, but dropped it to the complexity of starting and the lack of a site like this to ...
Elias Benevedes's user avatar
0 votes
2 answers
676 views

How can I read a portion of one Minecraft world file and write it into another?

I'm looking to read block data from one Minecraft world and write the data into certain places in another. I have a Minecraft world, let's say "TemplateWorld", and a 2D list of Point objects. I'm ...
RapierMother's user avatar
0 votes
1 answer
1k views

What kind of algorithms could I use to generate biome borders like in Minecraft? [duplicate]

After I've found this post I'm curious what kind of algorithms they use to generate these shapes (second image). I can't imagine that the basic shapes are basing on a perlin or simplex noise or a ...
NedBabbel's user avatar
1 vote
1 answer
797 views

TileEntitySpecialRenderer only renders from certain angle

I'm developing a Minecraft mod with Forge. I've added a tileentity and a custom renderer for it. The problem is: The block is only visible from sertain angles. I've compaed my code to other peoples ...
Hullu2000's user avatar
4 votes
1 answer
6k views

How do I get the number of online players in a Minecraft server from outside the client?

I know that the Minecraft client can query the server for number of players and maximum players, even when the server properties has enable-query set to ...
Tony I.'s user avatar
  • 143
3 votes
1 answer
26k views

How do I decompile Minecraft?

I'm trying to get started modding Minecraft. I opened up the minecraft.jar file in Eclipse, but it doesn't contain what I expected. In this tutorial the presenter ...
vroomvsr's user avatar
  • 155
8 votes
3 answers
2k views

How to load stacking chunks on the fly?

I'm currently working on an infinite world, mostly inspired by minecraft. A Chunk consists of 16x16x16 blocks. A block(cube) is 1x1x1. This runs very smoothly with a ViewRange of 12 Chunks (12x16) ...
Brettetete's user avatar
5 votes
5 answers
2k views

How to make blocks like "redstone" working in a minecraft-like game when the chunks are not loaded

I'm working on a 2D minecraft-like game, I use chunks to save my world and each chunk has 128*128 blocks in it. And infinite chunks can create an infinite world. Memory should never be infinite and ...
warmwine's user avatar
2 votes
1 answer
1k views

How can I mod Minecraft 1.7.9?

I've looked up a lot of tutorials on YouTube and all of them only work for versions of Minecraft prior to 1.7.9. I first got a Minecraft Coder Pack (MCP) off of this website, but then realized that ...
Michael Yaworski's user avatar
-2 votes
1 answer
222 views

How does the minecraft main menu play a "movie" [closed]

I've been wondering for a while, and been doing a lot of research on the subject: how does the main menu in minecraft play a "video". As far as i can tell, it's not a .gif, it appears to be a movie. ...
PulsePanda's user avatar
0 votes
2 answers
705 views

What can I do about a "missing mcp.cfg" error?

I am trying to use MCP. After trying to run decompile.sh, I manually ran decompile.py, getting the error "...
ghipkins's user avatar
2 votes
0 answers
413 views

Create multiple viewports in minecraft?

Im new to minecraft modding, but Im curious about the possibility of creating a mod such that players could set up a 'security camera' with its own viewport so that the player could 'see what the ...
zergylord's user avatar
  • 203
2 votes
2 answers
338 views

Why aren't ModLoader's decompiled files showing up?

I want to start making a Minecraft 1.6.4 mod, but have this trouble with ModLoader: I've run the decompile.bat batch file, but when opening the ...
imulsion's user avatar
2 votes
1 answer
359 views

Rasterizing parametric solids in Minecraft voxel space

I'm trying to render giant procedurally generated trees in Minecraft. I have code that generates a tree model and represents it parametrically as a collection of cones and spheres using vectors and ...
Ryan Michela's user avatar
5 votes
1 answer
5k views

Where do I store (or how do I refer to) textures for custom blocks?

I'm making my first foray into Minecraft modding on Ubuntu using Minecraft Forge. I'm finding it a little hard to get started as many of the tutorials seem to refer to older versions of Minecraft (e.g....
user avatar
0 votes
2 answers
1k views

Create a tornado like particle movement, based on velocity

For context i'm using Java and Minecraft Forge, however the concept should be fairly standard. To spawn particles you use this function... ...
Anim8's user avatar
  • 1
0 votes
0 answers
1k views

How can I get the entity a player is looking at in a Bukkit plugin?

I'm creating a wizardry plugin for Minecraft, and I was wondering how you would get the entity that a player was looking at, I know that you would have to use a ...
Jojodmo's user avatar
  • 103
3 votes
2 answers
1k views

Why Minecraft has such a terrible backward compatibility? [closed]

For every release of Minecraft, even a minor release, is almost guaranteed to break some plugins or mod. Why is this so? I am asking this so that we could avoid the same architecture problem as ...
Rosdi Kasim's user avatar
1 vote
0 answers
345 views

Block With Given ID Does Not Exist - Minecraft Mod

I have tried to make my own Minecraft Block using Forge, but for some reason, when I use /give Playerxxx 1000 1 the game says, <...
inixsoftware's user avatar