
drok0920
Forge Modder-
Posts
443 -
Joined
-
Last visited
Everything posted by drok0920
-
Hmm it doesnt seem to be working for me can you give an example? This is how i normally get my block textures from my @mod file public static Block SaphireBlock = new SaphireBlock(Material.rock).setBlockName("SaphireBlock").setBlockTextureName("BOW:saphire_block");
-
Hello MCF forums, I would like to know how to make animated textures work. I know that i need the rectangular .png file and the .mcmeta file but i dont know how to get my block to use it.
-
Ok thank you for you help i have gotten it to work but i was a little scared at first because i forgot i got the ids wrong in the biome so its all sandstone
-
Yes but none of the field or variables are readable
-
Ok now how would i get it to only spawn my custom biome im not very good with arrays
-
Ok i will do that thank you for the help.
-
Will that work since my ChunkProvider extends IChunkProvider?
-
Ok thank you
-
I meant is that the literal name of the method i know how to overide a method
-
But i do have one more question related to biomes. How would i make only certain biome generate in my custom dimension? Here is my ChunkProvider for it: http://pastebin.com/QgTwxq4F
-
Never Mind i think i fixed it by changing it to: BiomeManager.coolBiomes.add(new BiomeEntry(BOW.CodeBiome, 10));
-
Ok so i put: BiomeManager.coolBiomes.add(CodeBiome); But it gives me an error at .add
-
ok i will does that mean i have to re-do all of the code?
-
its not there ill show you my biomemanager class: http://pastebin.com/5hyTJe33
-
Do you mean these? public static ArrayList<BiomeGenBase> strongHoldBiomes = new ArrayList<BiomeGenBase>(); public static ArrayList<BiomeGenBase> strongHoldBiomesBlackList = new ArrayList<BiomeGenBase>();
-
Ok i will check again
-
then how would i do it? I have looked into the BiomeManager class and the only thing that would look like t would spawn the biome is Biomemanager.addspawnBiome
-
Hello MCF forums, I would like to know why my biome wont generate! Here are my classes @mod: http://pastebin.com/MdemWvmg Biome: http://pastebin.com/sABVs4ak Thank you, ~Drok
-
How to set which tools can break my block/ore?
drok0920 replied to Achilleus's topic in Modder Support
Ok thank you -
How to set which tools can break my block/ore?
drok0920 replied to Achilleus's topic in Modder Support
Im not sure yet but to get the drop you need x-tool (i would also like to know how to vary the drop based on enchantment/tool/item) -
How to set which tools can break my block/ore?
drok0920 replied to Achilleus's topic in Modder Support
I mean for example i have a ore call "testOre" And an item call "testItem" how could i get ONLY testItem to break testOre and get the drop -
How to set which tools can break my block/ore?
drok0920 replied to Achilleus's topic in Modder Support
Umm i have a question how would i get it to only be able to be broken by a specific item/tool -
Ok cool i got it to work. Thank you for you help collAlias. Here is what i used for anyone that needs it. public void onPlayerStoppedUsing(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer, int par4) { int j = this.getMaxItemUseDuration(par1ItemStack) - par4; ArrowLooseEvent event = new ArrowLooseEvent(par3EntityPlayer, par1ItemStack, j); MinecraftForge.EVENT_BUS.post(event); if (event.isCanceled()) { return; } j = event.charge; boolean flag = par3EntityPlayer.capabilities.isCreativeMode || EnchantmentHelper.getEnchantmentLevel(Enchantment.infinity.effectId, par1ItemStack) > 0; if (flag || par3EntityPlayer.inventory.hasItem(Items.arrow)) { float f = (float)j / 20.0F; f = (f * f + f * 2.0F) / 3.0F; if ((double)f < 0.1D) { return; } if (f > 1.0F) { f = 10.0F; } EntityArrow entityarrow = new EntityArrow(par2World, par3EntityPlayer, f * 2.0F); EntityArrow entityarrow1 = new EntityArrow(par2World, par3EntityPlayer, f * 2.0F); EntityArrow entityarrow2 = new EntityArrow(par2World, par3EntityPlayer, f * 2.0F); double pos1x = entityarrow1.posX + 0D; double pos1y = entityarrow1.posY + 1D; double pos1z = entityarrow1.posZ + 0D; entityarrow1.setPosition(pos1x, pos1y, pos1z); if (f == 1.0F) { entityarrow.setIsCritical(true); entityarrow1.setIsCritical(true); entityarrow2.setIsCritical(true); } par1ItemStack.damageItem(1, par3EntityPlayer); par2World.playSoundAtEntity(par3EntityPlayer, "random.bow", 1.0F, 1.0F / (itemRand.nextFloat() * 0.4F + 1.2F) + f * 0.5F); if (flag) { entityarrow.canBePickedUp = 2; } else { par3EntityPlayer.inventory.consumeInventoryItem(Items.arrow); } if (!par2World.isRemote) { par2World.spawnEntityInWorld(entityarrow); par2World.spawnEntityInWorld(entityarrow1); par2World.spawnEntityInWorld(entityarrow2); } } }