
drok0920
Forge Modder-
Posts
443 -
Joined
-
Last visited
Everything posted by drok0920
-
you mean add --assetsDir (dirrectory) after the "gradlew build" in the cmd prompted?
-
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?
-
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)
-
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
-
Never mind i figure it out it turn out that when i updated my mod i never moved my textures derp
-
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?
-
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 ")
-
ok i will try the tickRate method
-
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?
-
Yes daafganggdg you are correct
-
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
-
it does here it is public void updateTick(World world, int x, int y, int z, Random rand){
-
It does not apear to call that method at all and the @Override method gives an error. please help
-
I will try that
-
@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).
-
Please does anyone know why that code wont work?
-
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); } } } } }
-
Nope it still wont work
-
ah ok i will try that but will my code work at all AND at a higher rate than grass?
-
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); } } } }
-
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
-
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.
-
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?
-
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
-
Ah that was why it didnt work now it works i forgot 1 "t" in attribute