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 (...
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:
...
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 ...
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.
...
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?
...
4
votes
Accepted
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 ...
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 ...
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 ...
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
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 ...
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,...
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 ...
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.
...
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 ...
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.
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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. ...
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 ...
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 ...
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 ...
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.
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.
...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
minecraft-modding × 237java × 74
modding × 46
voxels × 31
opengl × 19
procedural-generation × 15
bukkit × 15
xna × 13
c# × 12
terrain × 9
algorithm × 8
3d × 7
lwjgl × 7
optimization × 7
plugin × 6
rendering × 5
lighting × 5
random × 5
perlin-noise × 5
terrain-rendering × 5
gui × 4
server × 4
unity × 3
c++ × 3
mathematics × 3