Jump to content

loordgek

Members
  • Posts

    1910
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by loordgek

  1. you are most likely not going to get help here this is outside the scope of this forum. and you are making a auto clicker witch is in my book a cheat
  2. why, we have sponge
  3. do you have optifine ??
  4. https://stackoverflow.com/questions/7520432/what-is-the-difference-between-and-equals-in-java
  5. is the item your own ??
  6. DavidM IS the author edit - oops i was thinking cadiboo was talking about davidM code my bad
  7. world.setblockstate(Blockpos)
  8. got it working. the problem was you set the recipe to early and your grass_ball was null move https://github.com/nov4e/Exa/blob/master/src/main/java/exa_resources/forge/ExaResources.java#L38 to init. the way you register your items and blocks is wrong https://github.com/nov4e/Exa/blob/master/src/main/java/exa_resources/forge/features/ModItems.java#L81 dont do that let forge do that for you, that is why @ObjectHolder exist https://github.com/nov4e/Exa/blob/master/src/main/java/exa_resources/forge/base/ItemMiniShovel.java#L70 dont compare strings like that, read this https://stackoverflow.com/questions/513832/how-do-i-compare-strings-in-java
  9. can you put your mod on github so i can look
  10. do use idea ?? https://www.jetbrains.com/help/idea/using-breakpoints.html or eclipse https://www.eclipse.org/community/eclipse_newsletter/2017/june/article1.php
  11. for(DiggingRecipe r : RECIPES) { if(e.getEntityPlayer() != null) { if(!(e.getWorld().isRemote)) { if(b == r.getMainBlock() && i.getItem() instanceof ItemMiniShovel) { if(e.getEntityPlayer().isSneaking()) { e.getEntityPlayer().dropItem(new ItemStack(r.getBallOutput(), 1), false); e.getEntityLiving().getHeldItemMainhand().damageItem(1, e.getEntityPlayer()); e.getWorld().playSound(null, e.getPos(), b.getSoundType().getBreakSound(), SoundCategory.BLOCKS,b.getSoundType().getVolume() * 0.4F, b.getSoundType().getPitch() + (float) (Math.random() * 0.2 - 0.1)); } } } } } nooooo dont do it like this first check if the player is null and if the world if remote and then loop over your recipes and now on topic: have you placed a breakpoint on it ??
  12. https://minecraft.curseforge.com/projects/worldedit
  13. code-style 2
  14. yes
  15. 1.13.2 will never be done, lex needs to rework a tool that they use
  16. when your class has @Mod.EventBusSubscriber your event methods must be static
  17. https://mcforge.readthedocs.io/en/latest/datastorage/capabilities/
  18. https://mcforge.readthedocs.io/en/latest/datastorage/capabilities/
×
×
  • Create New...

Important Information

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