Skip to main content
24 votes
Accepted

How do Minecraft know where village's buildings are if the village is not generated yet?

Yes, it generates more chunks (or at least more of the village tree) than you think it does. This is what I call "area of interest" in my voxel code. There are two kinds of area of interest: Logical (...
Engineer's user avatar
  • 30.4k
11 votes

How do Minecraft know where village's buildings are if the village is not generated yet?

Technical stuff During Minecraft's chunk generation a chunk passes several stages before it is done and can be rendered. These stages, in order, are as follows: ...
hoffmale's user avatar
  • 221
7 votes
Accepted

How would I actually implement A* pathfinding in a 3D world?

What A* needs to work is the following: Given the current node, get the list of possible nodes it can move to, with their costs. The ability to evaluate the heuristic function. Please notice I've ...
Theraot's user avatar
  • 28k
5 votes
Accepted

Iterating in "box" formation

First, we need to identify the square consists 4 symmetric sides, each of them of length 2*r. ...
wondra's user avatar
  • 4,930
5 votes
Accepted

How can I create a Minecraft: Bedrock Edition add-on?

🏅 Objectives After reading this answer through and through, you should be able to effectively answer the following questions: What is an add-on? What is a resource pack? What is a behavior pack? ...
Taco's user avatar
  • 326
4 votes
Accepted

Interesting graphic artifact

That's usually just due to non-existent mipmapping. Turn it on.
Bálint's user avatar
  • 15.1k
4 votes

Programming with Python in a recent version of Minecraft

There are a wide variety of ways to interact with Minecraft programatically, including an official Javascript "add-on" API to the "bedrock" version of Minecraft, APIs for Minecraft ...
nealmcb's user avatar
  • 191
4 votes

How can I mod a Minecraft slime to be about the size of a full block?

You can't. You can't make a "size" 1.8 slime. The closest you can get is a size 2 slime because Slime.setSize(int) only takes an integer because the ...
aytimothy's user avatar
  • 293
3 votes
Accepted

How do i store blocks information in my Voxel game?

I would recommend you take a look at the flyweight pattern. It allows you to use objects such as tiles or blocks in very large numbers when a simple repeated representation would use an unacceptable ...
Shashimee's user avatar
  • 1,290
3 votes
Accepted

Source code of Minecraft servers?

There is the modcoderpack. It contains the minecraft client and server code: http://www.modcoderpack.com/website/releases
Ludwig Schindler's user avatar
3 votes
Accepted

Name of this technique used in games such as Minecraft or the sims

It's either called Marching cubes/squares (depends on how many axes you're working with), autotile or -fence. The marching algorithms work on filled areas. You define whether the corners of the ...
Bálint's user avatar
  • 15.1k
3 votes

How can I use IntelliJ to make Minecraft mods?

Download IntelliJ Download Minecraft Forge from https://files.minecraftforge.net/, you'll want the MDK Depending on your needs, the recommended version is fine, but as changes are being made regularly,...
Draco18s no longer trusts SE's user avatar
3 votes

How to create persona pieces for Minecraft Bedrock?

I posted an issue at Minecraft Creator repository about this question. The answer is that, to be able to create persona pieces, one must be participant of the Minecraft Partner Program. There's ...
Rodrigo Balest's user avatar
3 votes
Accepted

How is it possible that Minecraft save files are so small?

There are a few things going on here: 6MB is bigger than you think A megabyte is over one million bytes. A million is a huge number. The text of almost any novel would fit inside of a single megabyte. ...
Tim C's user avatar
  • 645
2 votes

How to remove jitter from motion input?

I develop software that converts motion input to responsive and precise mouse input, as well as maintain a website that tries to help developers implement equally good solutions themselves. I ...
Jibb Smart's user avatar
  • 2,460
2 votes

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

Using EntityPlayerMP#canCommandSenderUseCommand(int permLevel, String commandName) might be a way to find out if a player is an operator.
scope's user avatar
  • 69
2 votes

Name of this technique used in games such as Minecraft or the sims

I'm not aware of any special name for this technique. Nothing I can think of calling it is returning any meaningful results. I do know that when the texture is different (not the block shape) based ...
Draco18s no longer trusts SE's user avatar
2 votes
Accepted

How can I get old Minecraft style terrain biome selection?

What is the top right half? That part is omitted because under normal Earth environments, it's not observed to happen. Consider the following: Note that in the coldest (polar) regions, the ...
Pikalek's user avatar
  • 13.3k
2 votes
Accepted

How can I make an entity invulnerable to fall damage?

Your onEntityFall method is not registered to the event bus. Notice where your yourPlayerHarvestEvent method is and how its ...
Draco18s no longer trusts SE's user avatar
2 votes

Minecraft modding 1.12 draw image

int i = (this.width - this.xSize) / 4; int j = (this.height - this.ySize) / 2; this.drawTexturedModalRect(0, 0, 0, 0, 154, 226); Warning: unused variables ...
Draco18s no longer trusts SE's user avatar
2 votes

How minecraft manages interactable blocks (Chest)?

There is a separate "TileEntity" list per chunk which store the data for blocks that don't have enough with the id+metadata that is available for all blocks in the chunk. When the chunk gets loaded ...
ratchet freak's user avatar
2 votes

How can I make a custom mob that looks like the Enderman?

Minecraft does not support remodeling entities yet, therefore the Vanilla datapack also does not contain entity models. Where you would find the specifics of entity models is in the code.
Fabian Röling's user avatar
2 votes
Accepted

Potion effect never wears out

I haven't actually implemented a Minecraft Mod. This answer is a bit of speculation, based on some old tutorials. Your method onItemRightClick will be called twice. ...
Theraot's user avatar
  • 28k
1 vote
Accepted

Does Minecraft Really Rely on CPU More Than GPU For FPS?

The point here is that although CPU and GPU works asynchronously they also work alternately. GPU can't draw what CPU didn't compute yet. If you have fast CPU and slow GPU then there's no point in ...
kolenda's user avatar
  • 1,420
1 vote
Accepted

How minecraft manages interactable blocks (Chest)?

Both Mark Mueller and Ratchet Freak have part of the full answer. Minecraft blocks are singleton instances: there is only one instance of the BlockDirt class, one ...
Draco18s no longer trusts SE's user avatar
1 vote

How minecraft manages interactable blocks (Chest)?

It's been a while since I have looked at the minecraft source code but I think the block extended a container handler. Whenever you right clicked it will search if the right click happened on the ...
Haley Mueller's user avatar
1 vote
Accepted

Unsupported API version on Spigot 1.14 snapshot

Remove everything after 1.14, it should look like this: api-version: 1.14 alternatively just remove it. It doesn't really serve any purpose right now.
Bálint's user avatar
  • 15.1k
1 vote
Accepted

How can I use Cocoa beans in Minecraft Forge custom crafting recipes?

Coco beans are brown dye. Dye has metadata values that determine which specific item it is (until 1.13 and The Flattening). The data value you're looking for in this case, is 3. ...
Draco18s no longer trusts SE's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible