A popular sandbox indie game made by Markus Persson, a.k.a. Notch. The gameplay revolves around collecting materials and building shelters in survival, or simply making intriguing structures in the creative mode of the game.

learn more… | top users | synonyms

5
votes
3answers
2k views

how to make blocks like “redstone” working in a minecraft-like game when the block is very far-away from your character

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 ...
0
votes
0answers
19 views

how do I know what blocks to draw in a lightweight Minecraft style game [duplicate]

I am creating a lightweight minecraft style test game in C++ using opengl es. I have come upon a problem while planning it though - what is the most efficient way to render blocks? I know about back ...
0
votes
0answers
15 views

Dropping an item onImpact (projectile) duplicates?

I have a custom Racket that 'throws' an entity (EntityBall) when an ItemBall is present in my inventory. When the EntityBall lands i want it to drop the Itemball for the player to pick up again. This ...
0
votes
0answers
10 views

Unable to override method aD() in custom class extending EntityLiving (using CraftBukkit for Minecraft)

I am creating a CustomZombie by extending EntityZombie (which extends ultimately EntityLiving) and want to override method aD() by copying some code that I found on bukkit forums so that I can double ...
0
votes
1answer
93 views

How can I generate biome borders?

I'm looking for ways to generate random biome borders (like what Minecraft has). One technique involves choosing specific biomes based on (eg) a rainfall map and a temperature map. But that just ...
0
votes
1answer
282 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 ...
-2
votes
1answer
101 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. ...
0
votes
0answers
31 views

Mod Coder Pack Error on decompile

I am not sure if I am posting this in the right place, but I have been trying to manually deobfuscate the Minecraft code. So far, it has been unsuccessful, so I am trying to use MCP. (There seem to be ...
1
vote
0answers
79 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 ...
1
vote
2answers
146 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 eclipse folder, the bin folder is empty. The batch ...
0
votes
0answers
40 views

Server side of `recompile` script fails with Minecraft Forge

I have Minecraft Forge 1.6.4 installed on Ubuntu and have used it successfully to create mods and run them in Eclips. However, recompiling via recompile.sh always fails unless I only recompile the ...
2
votes
1answer
92 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 ...
3
votes
1answer
114 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 ...
0
votes
2answers
212 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... world.spawnParticle("largesmoke", posX, posY, posZ, ...
0
votes
0answers
260 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 Vector, but I really am not familiar ...
1
vote
2answers
236 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 ...
0
votes
0answers
161 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, There is no block with id '1000' My Block Code: package ...
4
votes
3answers
208 views

How do I add a method to a class without editing the source file?

I am trying to add a method to a Minecraft source file, but I have to figure out how to do it without actually editing the source files, as it would be illegal to redistribute Minecraft's source files ...
2
votes
3answers
1k views

How to find the entity I'm looking at?

I am currently making a mod for Minecraft but I have come to a stop because I am lacking in some knowledge. I need to get data for the entity I am looking at, which I believe requires the use vectors, ...
-2
votes
2answers
244 views

Procedural World Generation [duplicate]

How does Minecraft generate it's texture (ex. which block is grass and which one is stone)?
1
vote
1answer
502 views

Voxel Performance

So Im trying to make a minecraft style voxel game to learn OpenGL, but Im running into performance issues. I found this thread : http://stackoverflow.com/questions/4995652/3d-occlusion-culling where ...
5
votes
1answer
7k views

Why is Minecraft's default resolution (seemingly) non-standard?

Background: I'm writing some articles on Minecraft in an attempt to introduce 10-year olds to development through modding. I know very little about the game itself, though :) I'm trying to understand ...
0
votes
2answers
328 views

Best way to read expandable voxel world (hashmap) such as in Minecraft

I'm building a 3D multiplayer Roguelike-style engine (tile and turn-based) and I'd like to make the worlds virtually "infinite", similar to what you would see in Minecraft. I'm storing data in a ...
1
vote
1answer
798 views

How can I gain access to a player instance in a Minecraft mod?

I'm creating Minecraft mod with a pickaxe that takes away experience when you break a block. The method for taking away experience from a player is addExperience on EntityPlayer, so I need to get an ...
4
votes
2answers
418 views

How can I mod an item to take experience from a player in Minecraft?

I am creating a mod that has invincible tools which take experience from the player each time they are used. Can someone please tell me how to make the tools take away the experience when used?
0
votes
0answers
241 views

How can I extract a list of Minecraft items and recipes?

I'm designing a robust system for resolving item dependencies in Minecraft and to do so, I need to maintain a database of items and recipes. Right now, this database has to be hand-crafted (no pun ...
-5
votes
3answers
2k views

Why does Mojang write Minecraft in Java [closed]

Is there any specific reason why Java was the right choice for Minecraft?
-1
votes
1answer
414 views

Simplex noise 3d map generation [duplicate]

I've just started learning 3d stuff and want to make minecraft clone, cause cubes are easy ( I hope ) :) Arleady wrote chunk creation, menagement and displaying and want to generate nice terrain, but ...
1
vote
0answers
95 views

How to put OpenGL in a state for drawing blended, colored, nontextured polys?

Using OpenGL1.1 (sadly) I'm trying to draw a cube, which is colored and alpha blended. It is instead showing up as opaque black. Even without including alpha in the color it still shows up as opaque ...
8
votes
2answers
3k views

Cave generation with Perlin worms

I'm currently trying to generate a Minecraft like voxel terrain with 3D Simplex Noise and also want to implement caves. I found the method of Perlin Worms in this thread, which generates really nice ...
7
votes
2answers
534 views

How to remove jitter from motion input?

I am writing a Minecraft mod that supports input from the Razer Hydra. It is a pair of motion controllers (one for each hand) that provide incredibly accurate position and rotation information. For ...
-1
votes
1answer
189 views

How well (or badly) does Minecraft SMP scale?

Has anyone tested and collected some data about how well does Minecraft SMP scale, with an increasing number of players (up to large amounts of players)? I.e. the bottlenecks are: mostly in the ...
0
votes
2answers
6k views

Is Minecraft's source code available? [closed]

I recall Mojang stating they would release the source code of Minecraft sooner or later, but searching both on google and on Minecraft sites I wasn't about to find it. So... is it available ...
4
votes
2answers
319 views

Modify current mob health minecraft

Is there any way to add/remove health after an entity has been created? For example, I'd like to have a X mob regenerate Y "hearts" when Z happens. Thanks for any help in advance.
2
votes
1answer
428 views

How does Minecraft update process work?

When you initially launch Minecraft you open the "launcher", which will check if your client is up to date. If it's not it proceeds to download the latest files & then runs the game. How does ...
0
votes
1answer
837 views

Minecraft - How do I check if someone has a clear inventory

How do I check if a player has a clear inventory? I'm making a PvP arena plugin but I need it so when someone types /pvp join, it checks if they have a clear inventory. If they do have a clear ...
-4
votes
1answer
308 views

Is OpenGL 1.1 really slow? [closed]

If anyone ever played minecraft and realized no matter what computer you have it normally doesn't give over 100 FPS? While looking at decompiled code from it I noticed it renders with OpenGL 1.1 ...
2
votes
2answers
559 views

How to generate houses procedurally in a voxel world?

I am developing a mod for the game Minecraft, a block-based voxel game. As part of the mod, I want to create a procedural house generator that will be generated based on specific needs/desires, such ...
2
votes
3answers
493 views

Minecraft like blocky-clouds

We are working on a minecraft-like block-based engine/lib. Lately I've started working a blocky-clouds as in minecraft; So it appers that in minecraft, clouds are not procedural. I'm still looking ...
-1
votes
1answer
607 views

How to run Minecraft from a different folder [closed]

My problem is that I can run minecraft from a different folder, but when I run it, it is still using .minecraft folder. It saves the worlds there and so on. How can I run it like "everything get from ...
15
votes
5answers
1k views

Why is chunk size often a power of two?

There are many Minecraft clones out there and I am working on my own implementation. A principle of terrain rendering is tiling the whole world in fixed size chunks to reduce the effort of localized ...
-4
votes
1answer
197 views

Dynamic cubes for cube engine [closed]

I had an idea for a cube world (i'm writing in C#) that would make creating new types of cubes simple and dynamic. Here is how I imagine it: 1.Text file stores everything including block name, ...
2
votes
1answer
201 views

How to make an articulated mob in Minecraft?

I am attempting to make a sea serpent, and I want to know how to make it be able to turn in any place, or at each 'segment', somewhat like the snakes in mocreatures. I know how to make mobs in ...
-2
votes
1answer
117 views

How to disguise a serverside mob as another?

I've been working a Minecraft sever mod and i want to be able to add a new entity to the server, but then make the server send the packets to the client, imitating another mob, for example.. Lets say ...
-1
votes
2answers
224 views

Are there any good guides for making mods for Minecraft? [closed]

I've been coding in Java for 5 months at work now, and having past experience with programming in other languages, modifying existing code at Uni etc. I feel like I want to get started on (read: ...
0
votes
1answer
199 views

Index out of bounds, Java bukkit plugin

I'm getting index out of bounds errors in my Bukkit plugin, and it's really beginning to piss me off... I for the life of me can't figure this issue out! Caused by: ...
4
votes
1answer
1k views

How does Minecraft render its sunset and sky?

In Minecraft, the sunset looks really beautiful and I've always wanted to know how they do it. Do they use several skyboxes rendered over eachother? That is, one for the sky (which can turn dark and ...
-1
votes
1answer
740 views

What causes the pre-1.8 Minecraft far lands to generate? [closed]

Before Minecraft Beta 1.8, when you reached about x:3000000 y:3000000, the terrain generator would freak out and begin generating broken scary land. What went on in the MC code to provoke this? Why ...
2
votes
1answer
323 views

How do I efficiently generate chunks to fill entire screen when my player moves?

In my game I generate chunks when the player moves. The chunks are all generated on the fly, but currently I just created a simple flat 8X8 floor. What happens is that when he moves to a new chunk ...
1
vote
1answer
558 views

First Minecraft mod not working: make a new sword

I am making my first mod and cannot see what is wrong with it. I am using MCP and Modloader. For my first mod I was going to make swords. I started with making a new EnumToolMaterials WOOD(0, 59, ...