Questions tagged [minecraft-modding]

For questions about modding Minecraft, regardless of the edition.

Filter by
Sorted by
Tagged with
4 votes
3 answers
2k 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 ...
Andrew Graber's user avatar
7 votes
4 answers
11k 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, ...
leafypixiestix's user avatar
-2 votes
2 answers
468 views

Procedural World Generation [duplicate]

How does Minecraft generate it's texture (ex. which block is grass and which one is stone)?
Spynaz's user avatar
  • 45
0 votes
1 answer
2k 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 : https://stackoverflow.com/questions/4995652/3d-occlusion-culling where ...
user1152717's user avatar
5 votes
1 answer
37k views

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

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 ...
Jedidja's user avatar
  • 273
0 votes
2 answers
1k 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 ...
and0's user avatar
  • 3
3 votes
1 answer
4k 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 ...
Andrew Graber's user avatar
3 votes
2 answers
2k 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?
Andrew Graber's user avatar
0 votes
1 answer
6k 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 ...
Sean Allred's user avatar
0 votes
3 answers
39k views

Why does Mojang write Minecraft in Java [closed]

Is there any specific reason why Java was the right choice for Minecraft?
alt's user avatar
  • 701
-1 votes
1 answer
1k 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 ...
Damaon's user avatar
  • 183
0 votes
0 answers
151 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 ...
Khlorghaal's user avatar
14 votes
2 answers
26k 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 ...
user000user's user avatar
9 votes
3 answers
2k 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 ...
Apples's user avatar
  • 608
0 votes
1 answer
249 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 ...
o0'.'s user avatar
  • 3,370
2 votes
2 answers
7k 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 somewhere?...
o0'.'s user avatar
  • 3,370
6 votes
3 answers
4k views

How do I modify the health of an entity after it has 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.
iiridescent's user avatar
2 votes
1 answer
545 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 ...
thedeadlybutter's user avatar
1 vote
1 answer
2k 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 ...
Faris Rehman's user avatar
-4 votes
1 answer
941 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 calls....
LiquidFeline's user avatar
  • 1,381
2 votes
2 answers
1k 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 ...
first_responder's user avatar
2 votes
3 answers
987 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 if ...
HuseyinUslu's user avatar
-1 votes
1 answer
1k 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 ...
DragonCz's user avatar
15 votes
5 answers
2k 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 ...
danijar's user avatar
  • 5,681
-4 votes
1 answer
300 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, ...
David Torrey's user avatar
2 votes
1 answer
281 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 general,...
nickbrickmaster's user avatar
-2 votes
1 answer
149 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 ...
Shaun Wild's user avatar
-1 votes
2 answers
285 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: ...
AncientSwordRage's user avatar
0 votes
1 answer
377 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: java.lang....
Robby Duke's user avatar
4 votes
1 answer
5k 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 ...
Nick's user avatar
  • 1,595
-1 votes
1 answer
2k 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 ...
Jaxkr's user avatar
  • 194
2 votes
1 answer
792 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 ...
Trixmix's user avatar
  • 126
2 votes
1 answer
787 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 ...
yamikoWebs's user avatar
0 votes
2 answers
541 views

Player position triggering teleports

I'm developing a Minecraft plugin (bukkit) in which a server admin can create 'portals' - a small region that will teleport any players who enter it. I have the teleportation sorted and I know how I ...
jSherz's user avatar
  • 225
2 votes
1 answer
404 views

Parallelizing creation of geometry chunks in minecraft-like game

In my game I separate creation of chunks into two stages. The first is where I generate the heightmap using simplex noise and the 2nd is when I create the actual vertex buffers. I do it like this so ...
Chad Layton's user avatar
8 votes
3 answers
13k 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 ...
danijar's user avatar
  • 5,681
2 votes
1 answer
2k views

How can I teleport seamlessly, without using interpolation?

I've been implementing Bukkit plugin for creating toggleable in-game warping areas that will teleport any catched entity to other similar area. I was going to implement concept of non-Euclidean maze ...
toriningen's user avatar
1 vote
1 answer
596 views

Minecraft custom name laucher

I'm trying to create a custom name laucher for Minecraft. I run an offline server and was wanting to give some of my friends a laucher to use so they can play. I have done this before with a batch ...
HcgRandon's user avatar
  • 192
5 votes
4 answers
1k views

Drawing 2D Images "3D-Like"

So, I want to use textures for weapons in my FPS game instead of actual models. However, if I just draw the texture onto a square in the game, it has the rotation and stuff, but it looks "2D". How ...
untitled's user avatar
  • 674
-1 votes
1 answer
2k views

What is the Relative Rarity of Blocks Generated in Minecraft? [closed]

I was watching a tutorial from last year that was discussing how to create blocks that would be generated with the world. I have lost the link to the video, but the basic issue I'm having here is ...
BrotherJack's user avatar
3 votes
1 answer
4k views

Stuck trying to decompress sections in Minecraft Anvil files (.mca)

I've been trying to write some Java code to read .mca files, based on the information at http://wiki.vg/Map_Format and http://wiki.vg/User:Sprenger120 . I am at the point where I can read in the ...
Zarkonnen's user avatar
  • 164
0 votes
4 answers
1k views

XNA transparent objects?

I've working on a voxel like game like Minecraft, but I'm not sure how I should handle alpha. I've got the world split into chunks and I render each chunk, I have things like leaves which have alpha ...
Levi H's user avatar
  • 611
4 votes
1 answer
1k views

Minecraft style XNA game collision?

I've been trying to get this working for ages now, I can detect if there's a solid block at any place on the map and I can check how far something is inside of it, but I don't understand how to fix ...
Levi H's user avatar
  • 611
-4 votes
1 answer
710 views

Can minecraft support an asymmetrical mesh?

I want to play as a Zaku II from gundam in Minecraft. I was saddened that player skins must be symmetrical. I know there's a mod that lets you play as a MLP pony, and another one that let you ...
Qwaar's user avatar
  • 9
0 votes
4 answers
2k views

Bukkit send a custom placed name plate?

Hello i have been working on a part of my plugin that has waypoints allowing the user to create delete etc. I got to thinking after using and seeing a couple of the disguse plugins. That maybe i could ...
HcgRandon's user avatar
  • 192
-3 votes
1 answer
473 views

Bukkit inventory saving: crashing somewhere

I'm working on a command for a bukkit plugin that lets you transfer worlds. In the section about saving the player's inventory, I'm getting a runtime error. My question is: Why is the error happening, ...
HcgRandon's user avatar
  • 192
2 votes
1 answer
1k views

Bukkit saving inventory enchantments

I am working on a bukkit plugin. One thing I want this plugin to do is teleport you to other worlds on the server. However, I don't want the player's inventory to be saved. Right now, I have this ...
HcgRandon's user avatar
  • 192
0 votes
1 answer
289 views

Primitive Animation

I am creating a minecraft-like clone and was wondering what is the best way to go about animating a model, for example implementing the following feature: when the player presses the arrow keys, move ...
Darestium's user avatar
  • 1,154
6 votes
1 answer
1k views

Minecraft Mod portable torch/lantern

I have just started making a mod for minecraft, I learned how to make items and import custom png's and have gotten all of that to work. I have been searching around the code trying to find a way to ...
Sam's user avatar
  • 69
5 votes
3 answers
5k views

Why would someone chose midpoint displacement over perlin noise for 3D terrain generation?

I myself am creating a terrain generation algorithm and would be interested in knowing why others have chosen midpoint displacement over perlin noise. Minecraft is an example where midpoint ...
Xavier's user avatar
  • 1,633