Jump to content

Bektor

Forge Modder
  • Posts

    852
  • Joined

  • Last visited

Everything posted by Bektor

  1. Hello, I want to know whats the highest dimension ID and whats the lowest dimension ID, that is possible. Bektor
  2. Hello. I have a question: Can anyone explain me how to sign a jar with the Fingerprint System and how to use it? Bektor
  3. I think this could help you: https://bitbucket.org/cltnschlosser/minecolonies/src/8e91ab516b21140ec1e063a1aba8b61b4c56f3df/src/main/java/com/github/lunatrius/schematica/world/schematic/?at=master https://bitbucket.org/cltnschlosser/minecolonies/src/8e91ab516b21140ec1e063a1aba8b61b4c56f3df/src/main/java/com/minecolonies/util/Schematic.java?at=master This mod is using Schematica for placing schematics in the world and there are classes that can show you how to read the schematic files and how to scan a building that you can put it into a schematic file.
  4. Hello. I'm currently using Minecraft 1.6.4 with Forge 1.6.4-9.11.1.964 (don't tell me that's out of date...) and now I'm having a problem by using Schematics.... Here is the error: And here is the code: For the Schematics I'm using an edited version of Schematica. If more code is needed: https://bitbucket.org/MinecraftPlaye/mcolonies/src/d63de09c34c27c665d87265c2d014ae797fd355e/src/main/java/com/?at=Backup I hope that someone could help me. Bektor
  5. event.player.addChatMessage(new ChatComponentTranslation(EnumChatFormatting.DARK_RED + "msg.config_update.name"));
  6. Hello, I have one question. Is it possible to send a colored test message that could have a translation into different languages? If so, how? Currently I'm using event.player.addChatMessage(new ChatComponentTranslation("msg.config_update.name")); but that won't work. If I change the color, it will only print instead of the message in the color red. Bektor
  7. Yes. The "&" operator means "and". And/But why is it working if I have more then 3 different wood blocks?
  8. Hello. I've created a Pickup Handler, but it looks like that this Pickup Handler won't load. Common Proxy (I tested it with both, MinecraftForge.EVENT_BUS.register and FMLCommonHandler.instance().bus().register) PlayerPickupEventHook I'm using Forge 1.7.2-10.12.1.1103. EDIT: Ok, I solved it, forgot to remove the SideOnly... in the Event class Bektor
  9. Ok, I fixed it, by changing in the getTypeFromMeta method the meta & 3 to meta & 1. But I didn't understand why this caused the crash....
  10. Ok, but how could I fix it (tried it with the getTypeFromMeta method, but didn't work)
  11. Yes, I understand my code and no, I'm didn't know how to fix this. (The String types has a size of 2, I've 4 images, 2 for the side and 2 for the top, because I have 2 blocks and the getSubBlocks methods creates 2 sub blocks...) And well, the error is very obvious for you, but not for me (I hate ArrayIndexOutOfBoundsException, thats the error where I'm failing really often by fixing it and most time I give up after a few hours....and mostly I getting this error by 2D-Java Games by the screen rendering...but thats an other story...)
  12. And what must I change to fix this?
  13. Thanks. But it seems to be, that sometimes I get an crash by the Icon (in 3 from 7 world, that I created happend it...) So here is my code: and here is the crash: And yes, I know that this is a different class, then the class with the getDrops method (well, exact the same classes, only one method is different and the sub-blocks...) Bektor
  14. I hope with "generate" method in tree generator did you mean the generate method in my tree class. And how do I make the result more rare?
  15. Ok, thanks. So how need I to use this method? (adding the different items/block that should be dropped and the quantityDropped)
  16. Hello. I've created a metadata based block, but now I have a problem. This block drops everytime itself, but I want that this block drops an Item and that the same block with an other metadata drops an other item or more of the same item. Here is my code: So what must I change, that the block with metadata 0 drops as an example two sticks and the block with metadata 1 drops 6 coal? Second problem can be found here: http://www.minecraftforge.net/forum/index.php/topic,20990.msg106490.html#msg106490 Bektor
  17. Anyone who can help me?
  18. Well, use the SchematicToJava Converter and update this code. [That what I'm doing every time, well currently I'm trieng to update this tool.]
  19. Hello. I've created a custom dimension and now I want that in the biomes my custom trees are spawning. But I have now one problem. private final WorldGenTree silverTree = new WorldGenTree(PFBlocks.pfLogs, PFBlocks.pfLeaves, 1, 0, false, 5, 3, false); // tree can't spawn in vines private final WorldGenBigSilverTree silverWoodTree = new WorldGenBigSilverTree(false); public WorldGenAbstractTree func_150567_a(Random random) { if(random.nextInt(3) == 0) return (WorldGenAbstractTree)silverTree; else if(random.nextInt(10) == 0) return (WorldGenAbstractTree)silverWoodTree; else return worldGeneratorTrees; } How did I change how often a tree spawns per chunk in this method, because I want that the silverWoodTree spawns really rare, but currently it spawns really often like every other tree, too. Oh and before I forget this, this method is in my biome class that extends my BiomeBase that extends BiomeGenBase. Bektor
  20. Not every time. From 3 builds, only by two builds the source files were linked automatically. By one build there were not linked. (Well, but after rebuilding this build, they were build there,too)
  21. hm, what I found now so far out is that in your Teleporter-class in the placeInPortal-Method you use int j = MathHelper.floor_double(y_position); instead of int j = MathHelper.floor_double(entity.posY) - 1; And in your Portal class, why are you teleporting the player into dimension 1 instead of 0 (0 = Overworld/Surface). I'm don't now if this make any difference, but give it a try, if this doesn't work, then I will look a last time in your code and if I didn't find there the error, then I will send you my code...
  22. Which Forge-Version did you used in 1.7.2 exactly? Because for me, it happens only by using the latest Forge 1.7.2 builds with the async world generation. Every other Forge 1.7.2 versions works fine for me, with over 30 mods installed.
  23. Well, downgrade to Forge 1.7.2-10.12.2.1121. All other builds for 1.7.x++ have this problems. And I'm a modder, too. And from that what you descripe, its exact the same, what I told LexManos a few weeks ago in this thread: http://www.minecraftforge.net/forum/index.php/topic,20213.0.html Thats what he said to me: "However, 'lag' is not a issue we can help you with as 99.9999% of the time its someone doesn't understand that 1) MC is a resource hog, 2) mods are doing something or 3) They are breaking it."
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.