Everything posted by Mateiaru
-
[SOLVED] [Dimension] [Biome] Custom top and filler block replaced with air
Bump
-
[SOLVED] [Dimension] [Biome] Custom top and filler block replaced with air
Hello there! I have a problem with my top and filler blocks in a custom biome. The biome is in my custom dimension, I have a custom world provider, chunk provider, world chunk manager and everything. The problem is: if I replace the biome's top block with a minecraft vanilla block it will work. If not, instead of using my block it uses an air block. Also, I have my own genTerrainBlock function: @Override public void genTerrainBlocks(World world, Random random, Block[] blocks, byte[] bytes, int int1, int int2, double d) { boolean flag = true; Block block = this.topBlock; byte b0 = (byte)(this.field_150604_aj & 255); Block block1 = this.fillerBlock; int k = -1; int l = (int)(d / 3.0D + 3.0D + random.nextDouble() * 0.25D); int i1 = int1 & 15; int j1 = int2 & 15; int k1 = blocks.length / 256; for (int l1 = 255; l1 >= 0; --l1) { int i2 = (j1 * 16 + i1) * k1 + l1; if (l1 <= 0 + random.nextInt(5)) { blocks[i2] = Blocks.bedrock; } else { Block block2 = blocks[i2]; if (block2 != null && block2.getMaterial() != Material.air) { if (block2 == TheDogDim.dogBlock) { if (k == -1) { if (l <= 0) { block = null; b0 = 0; block1 = TheDogDim.dogBlock; } else if (l1 >= 59 && l1 <= 64) { block = this.topBlock; b0 = (byte)(this.field_150604_aj & 255); block1 = this.fillerBlock; } if (l1 < 63 && (block == null || block.getMaterial() == Material.air)) { if (this.getFloatTemperature(int1, l1, int2) < 0.15F) { block = Blocks.ice; b0 = 0; } else { block = Blocks.water; b0 = 0; } } k = l; if (l1 >= 62) { blocks[i2] = block; bytes[i2] = b0; } else if (l1 < 56 - l) { block = null; block1 = TheDogDim.dogBlock; blocks[i2] = Blocks.gravel; } else { blocks[i2] = block1; } } else if (k > 0) { --k; blocks[i2] = block1; if (k == 0 && block1 == Blocks.sand) { k = random.nextInt(4) + Math.max(0, l1 - 63); block1 = Blocks.sandstone; } } } } else { k = -1; } } } } Basically I used the BiomeGenBase's genBiomeTerrain and replaced the vanilla stone with my own stone. Also if I set the filler block to a vanilla block it works. Only if I set it to a custom block is doesn't. Thanks in advance, Mateiaru
-
[1.7.2] Custom Dimension Top and Filler Blocks Won't Generate
I know that this thread is no longer used, but I post this for other people having the same problem. So, in your biome class (for ex: BiomeGenTest extending BiomeGenBase) add a function: Replace Blocks.stone with your custom dimension filler block. Also if you want custom bedrock in your biome you can change Blocks.bedrock to your custom bedrock (make sure it is unbreakable). The same with the gravel and sand (and of course sandstone).
-
[1.7.2] World of Dogs - Cutest Mod Ever! - New Version!
The new version will be released an about 1-2 weeks (about 25 May).
-
[1.7.2] [Dimension] Portal not lighting
I still need help. It doesn't light up. And I need to get this fast, I want to release a new version of World of Dogs!
-
[1.7.2] [Dimension] Portal not lighting
Hi there! I would really need some help with my custom dimension... I can't light my portal. Here's my custom fire onBlockAdd method: And here's my tryToCreatePortal (func_150000_e): I just coped-pasted the method from blockportal... and I don't need to override the onEntityCollidedWithBlock because it only does player.setInPortal()... Anyway, here's my Size class (from the portal block). Again, I copy-pasted it and replaced obsidian with my block and the fire as well... And the log output is: Also, I have a custom teleporter but I'm not very sure where to put it... Please help! Thanks in advance, Mateiaru
-
[1.7.2] World of Dogs - Cutest Mod Ever! - New Version!
The Dogs are added, but in the beta version. Sorry! First, I need to fix some bugs (model render problem, moving sideways and sitting animation). Also, this update will be in a few days and hopefully I'll fix these problems. In the next update I might add also a Github for source code and the portal to the dimension. Also, I need to know how much Dog Ore spawns and some suggestions Also, for survival maybe try and tell me how hard is to find the ore and how hard is to use the stuff! I can test this because I made it and I know everything and you know, it's easy for a creator to do everything in a mod... Please reply! It makes me feel like somebody is actually likes my mod P.S. I'll add on the wiki a new page about updates and maybe beta versions download!
-
[1.7.2] World of Dogs - Cutest Mod Ever! - New Version!
NEW VERSION 0.1.3 Pre Alpha! Items: + Changed texture for The Magical Dog Wand and also added crafting recipe! + New: The Magical Doggy Wand! + More armor: Puppy Armor + More tools: Puppy Tools + And More! Blocks: + New Bricks: Dog Bricks, Doggy Bricks & Puppy Bricks! + New Stairs: Dog, Doggy & Puppy! + And More! Changelog: http://worldofdogs.wikia.com/wiki/Download#Changelog Download Mod: http://worldofdogs.wikia.com/wiki/Download#Download Wiki: http://worldofdogs.wikia.com/ Mod Talk: http://worldofdogs.wikia.com/wiki/World_of_Dogs_Mod_Wiki_talk:Community_Portal If you have any suggestion or if you want to report a bug, reply to this post or to the Mod Talk above without having to create an account!
-
[1.7.2] World of Dogs - Cutest Mod Ever! - New Version!
World of Dogs Cutest Mod Ever! Beta version is now released! "Are you ready for cuteness? Are you ready to see the unbelievable in Minecraft? Are you ready for a brand new world? Then you are ready for World of Dogs!" Puppy the IV-th [move][glow=red,2,300] World of Dogs: Cutest Mod Ever! Beta version is now released with dogs, the cute dimension, taming, breeding and more! Download the cuteness mod, suggest new features and share! [/glow][/move] xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x \ /\ / | \ x World of Dogs beta version has been released with very much other cool x x \/ \/ o | / x stuff like a new dimension, cute dogs & puppies, new tools, armor and even more! x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Screenshots: Features: + a brand new ore: Doggy Ore + The Cute Dimension + new tools: Dog Tools & Puppy Tools + new armor: Dog Armor & Puppy Armor, with Buffs when worn! + The Magical Dog Wand, The Magical Doggy Wand and The Magical Puppy Wand + New building blocks: Bricks, Stairs, Slabs & More + Cute Mobs: Dogs & Puppies + And more! Current and upcoming features: http://worldofdogs.wikia.com/wiki/Upcoming_Features World of Dogs wiki: http://worldofdogs.wikia.com Mod Talk (where you can propose new features and talk about it): http://worldofdogs.wikia.com/wiki/World_of_Dogs_Mod_Wiki_talk:Community_Portal Changelog: http://worldofdogs.wikia.com/wiki/Download#Changelog Want cuteness? Download it here: http://worldofdogs.wikia.com/wiki/Download If you like this mod, please reply what should be added in the beta version!
-
[SOLVED] Armor Issue - Couldn't render entity ArrayIndexOutOfBoundsException
It worked! I changed to 3 (I edited the diamond armor texture) and voila, my armor!!! I got this problem because I watched 1.6.4 armor tutorial. THANK YOU!!!!
-
[SOLVED] Armor Issue - Couldn't render entity ArrayIndexOutOfBoundsException
Hello! I posted this issue before, but I'm re-posting to include some more data. First, screenshot in-game: Second, my code! Main Class public class TheDogDim { public static final String id = "thedogsworld"; public static ArmorMaterial dogArmor = EnumHelper .addArmorMaterial("DogArmorMaterial", 20, new int[]{3, 6, 5, 3}, 10); // Armor IDs public static int helmetID = 5221; public static int chestplateID = 5222; public static int leggingsID = 5223; public static int bootsID = 5224; // Armor @EventHandler public void preInit(FMLPrehttp://minecraftforge.net/forum/Smileys/default/tongue.gifInitializationEvent e) { // ---- ARMOR STUFF ---- // Helmet dogHelmet = new DogArmor(dogArmor, helmetID, 0); dogHelmet.setCreativeTab(dogdimTab).setUnlocalizedName("dogHelmet"); dogHelmet.setTextureName(id + ":" + "dogHelmet") // I have creative tab, I just cut it // Chestplate dogChestplate = new DogArmor(dogArmor, chestplateID, 1); dogChestplate.setCreativeTab(dogdimTab).setUnlocalizedName("dogChestplate"); dogChestplate.setTextureName(id + ":" + "dogChestplate"); // Leggings dogLeggings = new DogArmor(dogArmor, helmetID, 2); dogLeggings.setCreativeTab(dogdimTab).setUnlocalizedName("dogLeggings"); dogLeggings.setTextureName(id + ":" + "dogLeggings"); // Boots dogBoots = new DogArmor(dogArmor, bootsID, 3); dogBoots.setTextureName(id + ":" + "dogBoots"); dogBoots.setCreativeTab(dogdimTab).setUnlocalizedName("dogBoots"); // Registering stuff GameRegistry.registerItem(dogHelmet, dogHelmet.getUnlocalizedName()); GameRegistry.registerItem(dogChestplate, dogChestplate.getUnlocalizedName()); GameRegistry.registerItem(dogLeggings, dogLeggings.getUnlocalizedName()); GameRegistry.registerItem(dogBoots, dogBoots.getUnlocalizedName()); } } Armor Class package ro.etrandafir.mate.theDogsWorld; import net.minecraft.entity.Entity; import net.minecraft.item.ItemArmor; import net.minecraft.item.ItemStack; public class DogArmor extends ItemArmor { public DogArmor(ArmorMaterial material, int id, int placement) { super(material, id, placement); } @Override public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type) { if (stack.getItem() == TheDogDim.dogLeggings) { return (TheDogDim.id + ":textures/models/armor/dogarmor_2.png"); } if (stack.getItem() == TheDogDim.dogHelmet || stack.getItem() == TheDogDim.dogChestplate || stack.getItem() == TheDogDim.dogBoots) { return (TheDogDim.id + ":textures/models/armor/dogarmor_1.png"); } return null; } } Eclipse screenshot: And the log: [10:50:01] [Client thread/ERROR]: Couldn't render entity java.lang.ArrayIndexOutOfBoundsException: 5221 at net.minecraft.client.renderer.entity.RenderBiped.getArmorResource(RenderBiped.java:405) ~[RenderBiped.class:?] at net.minecraft.client.renderer.entity.RenderPlayer.shouldRenderPass(RenderPlayer.java:74) ~[RenderPlayer.class:?] at net.minecraft.client.renderer.entity.RenderPlayer.shouldRenderPass(RenderPlayer.java:516) ~[RenderPlayer.class:?] at net.minecraft.client.renderer.entity.RendererLivingEntity.doRender(RendererLivingEntity.java:175) [RendererLivingEntity.class:?] at net.minecraft.client.renderer.entity.RenderPlayer.doRender(RenderPlayer.java:171) [RenderPlayer.class:?] at net.minecraft.client.renderer.entity.RenderPlayer.doRender(RenderPlayer.java:564) [RenderPlayer.class:?] at net.minecraft.client.renderer.entity.RenderManager.func_147939_a(RenderManager.java:314) [RenderManager.class:?] at net.minecraft.client.renderer.entity.RenderManager.renderEntityWithPosYaw(RenderManager.java:297) [RenderManager.class:?] at net.minecraft.client.gui.inventory.GuiInventory.func_147046_a(GuiInventory.java:116) [GuiInventory.class:?] at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:844) [GuiContainerCreative.class:?] at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:111) [GuiContainer.class:?] at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:44) [inventoryEffectRenderer.class:?] at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:678) [GuiContainerCreative.class:?] at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1209) [EntityRenderer.class:?] at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1063) [Minecraft.class:?] at net.minecraft.client.Minecraft.run(Minecraft.java:951) [Minecraft.class:?] at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_51] at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_51] at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?] at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?] Please help. I don't know whan I'm doing wrong! Thanks in advance, Mateiaru
-
[SOLVED] Right-clicking an entity with an item
This is never true. Learn basic java. Yes. You cannot say if (something == new SomeClass()) Try if (event.target instanceof EntityCow && event.entityPlayer.getCurrentEquippedItem().getItem() == FTea.teaCup) Hope it works.
-
Armor not rendering
I have a problem: My custom armor won't render. Here's my code (I cut what's not about armor): public class TheDogDim { public static final String id = "thedogsworld"; public static ArmorMaterial dogArmor = EnumHelper .addArmorMaterial("DogArmorMaterial", 20, new int[]{3, 6, 5, 3}, 10); // Armor IDs public static int helmetID = 5221; public static int chestplateID = 5222; public static int leggingsID = 5223; public static int bootsID = 5224; // Armor public static Item dogHelmet = new DogArmor(dogArmor, helmetID, 0); public static Item dogChestplate = new DogArmor(dogArmor, chestplateID, 1); public static Item dogLeggings = new DogArmor(dogArmor, leggingsID,2); public static Item dogBoots = new DogArmor(dogArmor, bootsID, 3); @EventHandler public void preInit(FMLPreInitializationEvent e) { // ---- ARMOR STUFF ---- // Helmet dogHelmet.setCreativeTab(dogdimTab).setUnlocalizedName("dogHelmet"); dogHelmet.setTextureName(id + ":" + "dogHelmet") // I have creative tab, I just cut it // Chestplate dogChestplate.setCreativeTab(dogdimTab).setUnlocalizedName("dogChestplate"); dogChestplate.setTextureName(id + ":" + "dogChestplate"); // Leggings dogLeggings.setCreativeTab(dogdimTab).setUnlocalizedName("dogLeggings"); dogLeggings.setTextureName(id + ":" + "dogLeggings"); // Boots dogBoots.setTextureName(id + ":" + "dogBoots"); dogBoots.setCreativeTab(dogdimTab).setUnlocalizedName("dogBoots"); // Registering stuff GameRegistry.registerItem(dogHelmet, dogHelmet.getUnlocalizedName()); GameRegistry.registerItem(dogChestplate, dogChestplate.getUnlocalizedName()); GameRegistry.registerItem(dogLeggings, dogLeggings.getUnlocalizedName()); GameRegistry.registerItem(dogBoots, dogBoots.getUnlocalizedName()); } } And here's my armor class: public class DogArmor extends ItemArmor { public DogArmor(ArmorMaterial material, int id, int placement) { super(material, id, placement); } @Override public String getArmorTexture(ItemStack stack, Entity entity, int slot, String type) { if (stack.getItem() == TheDogDim.dogLeggings) { return (TheDogDim.id + ":textures/models/armor/dogarmor_2.png"); } if (stack.getItem() == TheDogDim.dogHelmet || stack.getItem() == TheDogDim.dogChestplate || stack.getItem() == TheDogDim.dogBoots) { return (TheDogDim.id + ":textures/models/armor/dogarmor_1.png"); } else { return null; } } } Here's an eclipse screenshot showing armor textures: What am I doing wrong? Please help me!
IPS spam blocked by CleanTalk.