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

2
votes
1answer
43 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 ...
-3
votes
2answers
18 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've got an byte array and all the data is ok. If I save the content as a .nbt file I can open and view it with NBTExplorer. If I save ...
2
votes
1answer
72 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 ...
1
vote
0answers
63 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. ...
0
votes
1answer
18 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 drag and gravitational ...
0
votes
0answers
12 views

How To Make ModPE Perform Function The First Time Mod 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. ...
0
votes
2answers
127 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. Very ineficient and slow. I ...
0
votes
0answers
32 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. ...
0
votes
0answers
17 views

Static blocks - phaser isometric plugin

I'm creating isometric game like minecraft with phaser engine with rotates isometric plugin and I need colliding with player, but when I turn off physics, blocks is not static. Question: How to ...
0
votes
1answer
61 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 ...
1
vote
1answer
63 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 ...
1
vote
1answer
88 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 ...
-2
votes
1answer
139 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 ...
2
votes
1answer
74 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 ...
1
vote
2answers
198 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 ...
5
votes
3answers
674 views

How do I modify the health of an entity after it's been created?

Is there any way to add or remove health after an entity has been created? For example, I'd like to have a mob regenerate "hearts" when some event happens.
5
votes
1answer
17k 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
108 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 ...
3
votes
0answers
82 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 ...
3
votes
2answers
2k views

Bukkit shoot tnt & help with vectors

I want to shoot a piece of tnt from the players face and then let it explode when it hits the target block. if (cmd.getName().equalsIgnoreCase("cannon")) { ...
0
votes
1answer
73 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 ...
-1
votes
1answer
107 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 ...
7
votes
3answers
8k views

How to handle a Block World like Minecraft

I want to write a simple game with a block world like in Minecraft. My theoretical question is what is the best way to handle this block informations during playing. My first Idea was a huge array but ...
11
votes
3answers
4k views

Are the Minecraft animations hardcoded into the game? [closed]

I would like to know how the animation system works in minecraft. I get a feeling that all the mobs are hardcoded into the game. Did notch really sit there and create the matrices for all the ...
0
votes
0answers
71 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) * ...
0
votes
0answers
149 views

Minecraft Forge 1.7.10 Modding: Using BlockPistonBase metadata as a determinant for facing direction

I've recently begun to revamp some old code that I've had lying around by utilizing a lot of what Minecraft already has available, but have run into a bit of an issue. I have this large chunk of code ...
0
votes
1answer
90 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 "ERROR:root:!! Missing mcp.cfg !!" I tried to copy the variables from mcp.cfg into the files ...
1
vote
1answer
45 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 ...
1
vote
0answers
115 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' ...
1
vote
0answers
111 views

Broken World Generation [closed]

I am learning to write java/mod Minecraft. The mod I am working on is just a "Can I do it?" Kind of thing and I have no intention to distribute it. The problem I ran into is when I try to generate a ...
0
votes
1answer
467 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 ...
0
votes
1answer
249 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 ...
4
votes
4answers
3k 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, ...
3
votes
1answer
789 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 ...
-2
votes
1answer
376 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 ...
0
votes
2answers
90 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 ...
1
vote
0answers
257 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 ...
0
votes
1answer
211 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 ...
7
votes
3answers
261 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) ...
16
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 ...
0
votes
1answer
235 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 ...
3
votes
1answer
577 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 false, but how do I do this outside of the ...
0
votes
1answer
2k 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 decompiles minecraft.jar and finds ...
0
votes
0answers
77 views

Can I sell my minecraft clone? [duplicate]

In my spare time I am making a game similar to Minecraft. I am trying to make it different to Minecraft in any way I can to avoid confusion. Also I am not using any of the assets or source code of ...
0
votes
0answers
69 views

Bukkit ThrownPotion doesn't have effects

I am trying to make it so a player can throw a potion when they right click with a stick. So far I have the potions being launched. However, the potion that is being thrown does not have any effects ...
5
votes
5answers
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
2answers
482 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 ...
4
votes
4answers
1k views

I'm a single developer making a game made of blocks. Can I make 3d characters made of blocks without looking like Minecraft?

I would like to differentiate the look as much as I can but yet it has to be within the limits of what is reasonable for a single programmer can do. I have alot of ideas that would make the game ...
1
vote
1answer
899 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 ...
5
votes
1answer
1k 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 ...