Jump to content

drok0920

Forge Modder
  • Posts

    443
  • Joined

  • Last visited

Everything posted by drok0920

  1. you mean add --assetsDir (dirrectory) after the "gradlew build" in the cmd prompted?
  2. I also have another question. How do you make a custom mob ONLY spawn on a certain block(or a block that extends that block) in any biome?
  3. Just to make it easier(instead of having to type out the name every time after i build it and because i want to be able to find the mod in a easier-to-remember place)
  4. Hello, I'm not sure if this go's here but i will put it here any way, if i need to move it somewhere else i will gladly move it. How would i (a) set the "name" of the jar gradlew build creates and how would i set a different path for gradlew build to put that jar in? Thank you, Drok
  5. Never mind i figure it out it turn out that when i updated my mod i never moved my textures derp
  6. Hello, I was wondering why my mod wont build/compile with the textures i provided. Is this a bug or am i just not doing something right?
  7. I knew how to do this is 1.6.4 but i have not tried in 1.7.10 but this is how i did it in 1.6.4: Do this where you define your items: SwordItem = new SwordItem (5000).setUnlocalizedName("AmberItem"); ShovelItem = new ShovelItem (5000).setUnlocalizedName("ShovelItem ")
  8. ok i will try the tickRate method
  9. Would changing for(int i = -1; i < 2; i++) { for(int j = -1; j < 2; j++) { for(int k = -1; k < 2; k++) { if(world.getBlock(x+i, y+j, z+k) != Blocks.air || world.getBlock(x+i, y+j, z+k) != this) { world.setBlock(x+i, y+j, z+k, this); } } } } to for(int i = -1; i < 10; i++) { for(int j = -1; j < 10; j++) { for(int k = -1; k < 10; k++) { if(world.getBlock(x+i, y+j, z+k) != Blocks.air || world.getBlock(x+i, y+j, z+k) != this) { world.setBlock(x+i, y+j, z+k, this); } } } } speed up the spread rate? if not how would i speed it up?
  10. Yes daafganggdg you are correct
  11. Ah ok thank you Edit: Wait that is the random i imported (java.util.Random) Edit2: Derp never mind i was looking at the wrong class
  12. it does here it is public void updateTick(World world, int x, int y, int z, Random rand){
  13. It does not apear to call that method at all and the @Override method gives an error. please help
  14. I will try that
  15. @Jacky2611 i did that and found out that it doesn't call the method at all @daafganggdg Well sort of i want it to do that but to every block except air(or a new block i will add later).
  16. Please does anyone know why that code wont work?
  17. Here is the complete block class: package team.flock.drok0920.BOW.Blocks; import scala.util.Random; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init.Blocks; import net.minecraft.world.World; public class AlfitarianVirusBlock extends Block { protected AlfitarianVirusBlock(Material mat) { super(mat); this.setCreativeTab(CreativeTabs.tabBlock); this.setTickRandomly(true); } public void updateTick(World world, int x, int y, int z, Random rand) { if (!world.isRemote) { for (int l = 0; l < 40000; ++l) { int i1 = x + rand.nextInt(3) - 1; int j1 = y + rand.nextInt(5) - 3; int k1 = z + rand.nextInt(3) - 1; Block block = world.getBlock(i1, j1 + 1, k1); if (world.getBlock(i1, j1, k1) != Blocks.air) { world.setBlock(i1, j1, k1, BOWBlocks.AVBlock); } } } } }
  18. Nope it still wont work
  19. ah ok i will try that but will my code work at all AND at a higher rate than grass?
  20. i have told you that i have looked at it but i cant seem to get it to do what i want this is what i have tried. public void updateTick(World world, int x, int y, int z, Random rand) { if (!world.isRemote) { for (int l = 0; l < 40000; ++l) { int i1 = x + rand.nextInt(3) - 1; int j1 = y + rand.nextInt(5) - 3; int k1 = z + rand.nextInt(3) - 1; Block block = world.getBlock(i1, j1 + 1, k1); if (world.getBlock(i1, j1, k1) != Blocks.air) { world.setBlock(i1, j1, k1, this); } } } }
  21. Hello, I would like to know how to get a custom block to "absorb" all blocks around it that aren't air. By this i mean that i need it to spread like grass but at a much higher rate and be able to spread down. i have looked at the grass and mycelium classes and the "A block that spreads over every block but air?" topic but i can't seem to get any of them to work. Thank you, Drok
  22. Thank you i figured that out my self and thank you for your comment about the class i always work my hardest to keep them clean.
  23. yes i know about the errors that is just me being lazy and not making any at the moment and how would i give minecraft more ram in eclipse?
  24. Hello, I would like to know why my ore generation class keeps causing crashes(yes i know that it is the ore gen class as i have looked and removing a few lines of code stops that crash but then it wont generate) here is my ore gen class and crash. Class http://pastebin.com/wsACQrwD Crash http://pastebin.com/Q5efEmK9
  25. Ah that was why it didnt work now it works i forgot 1 "t" in attribute
×
×
  • Create New...

Important Information

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