Jump to content

Looke81

Members
  • Posts

    250
  • Joined

  • Last visited

Everything posted by Looke81

  1. So does anyone have experience of using an animated texture for a custom model?... i have no idea what i am doing
  2. woops well i knew that ive just misspelt it in the post
  3. hey i have a custom rendered block that i want to animate the texture of but if i use the normal 16 x how many frames and use a mcmetta file it just used the whole texture do i need to change what it says in the .mcmetta file? mine is: { "animation": {} }
  4. If anyone can help with this that would be awesome?!
  5. whoever keeps deleting my reply i'm not bumping this for no reason my problem has not been solved i want the block to spread over the top of adjacent blocks and all of the people trying to help reply's don't work
  6. anyone else or is this impossible?
  7. no i want it to spread on top of adjacent blocks not to be abble to grow ontop of itself
  8. anyone else think they might have a solution?
  9. I dont think you understand i want it to spread over the top of blocks next to it if i remove the +1 it will just delete that block and replace it with itself
  10. now this is just spreading up public void updateTick(World world, int x, int y, int z, Random random) { if (!world.isRemote) if (world.getBlockLightValue(x, y + 1, z) >= 9) { for (int l = 0; l < 45000; ++l) { int i1 = x + random.nextInt(3) - 1; int j1=y; int k1 = z + random.nextInt(3) - 1; Block block = world.getBlock(i1, j1 + 1, k1); if (world.getBlock(i1, j1, k1) != Blocks.air){ world.setBlock(i1, j1 + 1, k1, this); } } } }
  11. i dont know if i have done the right thing but this dosen't work. public void updateTick(World world, int x, int y, int z, Random random) { if (!world.isRemote) if (world.getBlockLightValue(x, y + 1, z) >= 9) { for (int l = 0; l < 45000; ++l) { int i1 = x + random.nextInt(3) - 1; int j1 = y + random.nextInt(3) - 1; int k1 = z + random.nextInt(3) - 1; Block block = world.getBlock(i1, j1 + 1, k1); if (world.getBlock(i1, j1, k1) != Blocks.air){ world.setBlock(x, j1 + 1, z, this); } } } }
  12. "if you want that your block spreads only upwards you have to remove the -1 from the new y(j1) coordinate and change the 3 to a 2" No i want it so that it dosen't spread upwards
  13. I wont have it spreading that fast but i want it to spread quickly for testing thats all
  14. wait i dont understand what do i need to change to 0?
  15. ive done this and its fixed the problem but now it is spreading down if (world.getBlock(i1, j1, k1) ==block && (world.getBlock(i1, j1, k1) != Blocks.air)){ world.setBlock(i1, j1 + 1, k1, this); }
  16. no this hasn't worked its still doing the same thing
  17. better? public void updateTick(World world, int x, int y, int z, Random random) { if (!world.isRemote) if (world.getBlockLightValue(x, y + 1, z) >= 9) { for (int l = 0; l < 45000; ++l) { int i1 = x + random.nextInt(3) - 1; int j1 = y + random.nextInt(5) - 3; int k1 = z + random.nextInt(3) - 1; Block block = world.getBlock(i1, j1 + 1, k1); if (world.getBlock(i1, j1, k1) == block && world.getBlockMetadata(i1, j1, k1) == 0 && world.getBlockLightValue(i1, j1 + 1, k1) >= 4 && world.getBlockLightOpacity(i1, j1 + 1, k1) <= 2) world.setBlock(i1, j1 + 1, k1, this); } } }
  18. ok thats not very usefull but il be honest i did take some of it from the mycelium class so yea the names arnt very easy to understand
  19. Hi everyone i have made a block that can spread over the top of grass next to it and i tried to do this with all blocks by using block not Blocks.grass but of course this uses air so it spreads in the air i only want it to spread over the surface is there anyway i can make it spread over every block but air? update tick public void updateTick(World p_149674_1_, int p_149674_2_, int p_149674_3_, int p_149674_4_, Random p_149674_5_) { if (!p_149674_1_.isRemote) if (p_149674_1_.getBlockLightValue(p_149674_2_, p_149674_3_ + 1, p_149674_4_) >= 9) { for (int l = 0; l < 45000; ++l) { int i1 = p_149674_2_ + p_149674_5_.nextInt(3) - 1; int j1 = p_149674_3_ + p_149674_5_.nextInt(5) - 3; int k1 = p_149674_4_ + p_149674_5_.nextInt(3) - 1; Block block = p_149674_1_.getBlock(i1, j1 + 1, k1); if (p_149674_1_.getBlock(i1, j1, k1) == block && p_149674_1_.getBlockMetadata(i1, j1, k1) == 0 && p_149674_1_.getBlockLightValue(i1, j1 + 1, k1) >= 4 && p_149674_1_.getBlockLightOpacity(i1, j1 + 1, k1) <= 2) p_149674_1_.setBlock(i1, j1 + 1, k1, this); } } }
  20. lol it works for me this tutorial:https://www.youtube.com/watch?v=4VzP6AohgXQ
  21. thnx becuse all the item tutorials i have found put all the code for the item in the main mod file.
  22. I applaud for the cool link but seriously i wanted to know how you make a class for an item instead of doing what i was doing (which works)
  23. can you elaborate a bit more on how i would do that or if you could link a tutorial that would be awesome!
×
×
  • Create New...

Important Information

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