Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

funsize888

Members
  • Content Count

    85
  • Joined

  • Last visited

Community Reputation

0 Neutral

About funsize888

  • Rank
    Stone Miner
  1. Hey, I have a custom tnt explosion and I was able to make it destroy a sphere, but I wanted to to only destroy the bottom half of the sphere and then expand from there on up. Here is my code, @Override public void doExplosionA() { Set<BlockPos> set = Sets.<BlockPos>newHashSet(); Set<IBlockState> states = Sets.<IBlockState>newHashSet(); int blocksDestroyed = 0; int radius = this.size; for (int j = -radius; j < radius; j ++) { for (i
  2. That’s the part struggling with, I’m not sure how I would delay the for loop for a certain amount of ticks. Maybe I could save all the blocks from the loop and place them one by one with a delay?
  3. ok so now I have this: static int tick = 0; static int timer = 0; @SubscribeEvent public static void onServerTick(TickEvent.ServerTickEvent event) { if(tick == 40) { tick = 0; timer++; System.out.print(timer); if(timer >= 20) { timer = 0; } }tick++; } /** * Does the first part of the explosion (destroy blocks) */ @Override public void doExplosionA() { Set<BlockPos> set = Sets.<BlockPos>newHashSet(); Set<IB
  4. What do you mean by keep track of the position im at? or which explosion, its only one explosion.
  5. Hello, I have made a custom TNT with a custom explosion, but I wanted the explosion to be huge, like 1,000,000+ blocks. It works fine but obviously there is a huge lag when detonating, I was wondering how I could add a very slight delay between each time a block is removed. Here is my code: static int tick = 0; @SubscribeEvent public static void onClientTick(TickEvent.ClientTickEvent event) { if(tick == 80) { System.out.print("DELAY"); tick = 0; } tick++; } /** * Does the first part of the explosion (destroy blocks) */ @Override
  6. Hello, I have made a mod in eclipse and it works just fine with no errors. But when I export it as a java file and try to run it in regular minecraft, I get a crash. I have no clue why this would happen. My crash log: Looks like this is the main problem class:
  7. Put, @SideOnly(Side.CLIENT) above, public class ClientProxy extends CommonProxy {
  8. Caused by: net.minecraftforge.fml.common.LoaderException: java.lang.ClassNotFoundException: co/coolbeyblades7/minecraft_mod/proxy/ClientProxy; at net.minecraftforge.fml.common.ProxyInjector.inject(ProxyInjector.java:88) at net.minecraftforge.fml.common.FMLModContainer.constructMod(FMLModContainer.java:595) It says what it was caused by. Try taking a look at your ProxyInjector, that seems to be the problem
  9. hmmm, I put that in my Main class under pre init event, it didn't work, should it go in either of the proxys?
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.