Tag Info

New answers tagged

0

here appears to be a 4096 block limit. use a larger bit size like an int for 2 billion blocks, Notch severely underestimated several things when first creating minecraft and we are still paying for a lot of those decision. My game uses strings to represent block ids, not integers. create a map and save it along with the world, that way ...


0

Creating a save file/format is not so difficult, essentially what you are doing is saving your memory structure to disk so that you later can read it and recreate the same memory structure. The main issue you need to consider is how to make sure that a world saved with an earlier version can be loaded by a later version. To that end it is a good idea to ...


1

Class Based as a quick lookup learns. Every block is defined in a loose file and extends Block. package tutorial.generic; import net.minecraft.block.Block; import net.minecraft.block.material.Material; public class GenericBlock extends Block { public GenericBlock (Material material) { super(material); } }


0

I know this is an old question, but here is the answer for someone else stumbling over this problem. :) To get the Vector for the direction of the head you have to use, player.getEyeLocation().getDirection() Here is a working example of the code, you may have to play around with the multiplier to get the desired result. I also rewrote some of the ...


3

These are java package namespaces, based on the conventions for that language. See this question: http://stackoverflow.com/questions/2661698/java-com-package-namespace . Namespaces are used to group together and scope different code components within a project.



Top 50 recent answers are included