Jump to content

FredM

Members
  • Posts

    9
  • Joined

  • Last visited

FredM's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. do you think this is a bug @DaemonUmbra?
  2. lol, sowwy, I thought it was the one who created the post that was answering to my reply 😛
  3. not sure how to do that, there's a lot of redundant parameter in there, but this @Mod("examplemod") public class ExampleMod { private static final Logger LOGGER = LogManager.getLogger(); public ExampleMod() { MinecraftForge.EVENT_BUS.register(this); } @SubscribeEvent public void onLeftClickBlock(final LeftClickBlock event) { BlockPos position = event.getPos(); Level world = event.getWorld(); LOGGER.error("Time: {}, Thread: {}, hand: {}, side: {}, destroy progress: {}", new Date().getTime(), Thread.currentThread(), event.getHand(), event.getSide(), world.getBlockState(event.getPos()).getDestroyProgress(event.getPlayer(), new PathNavigationRegion(world, position, position), position)); } } gives this [20:03:08] [Server thread/ERROR]: Time: 1632441788687, Thread: Thread[Server thread,5,SERVER], hand: MAIN_HAND, side: SERVER, destroy progress: 0.055555556 [20:03:08] [Server thread/ERROR]: Time: 1632441788787, Thread: Thread[Server thread,5,SERVER], hand: MAIN_HAND, side: SERVER, destroy progress: 0.055555556
  4. well, mainly running 'gradle build'... that's the task that should pull down all the lib dependencies ... more details https://mcforge.readthedocs.io/en/latest/gettingstarted/
  5. did you run the initial setup? that class is in guava lib, which comes by default in MDK, so it should be there... do you see it in your IDE?
  6. the code was actually working fine in 1.16... migrating to 1.17 had this side-effect
  7. I haven't @SolarisFalls
  8. Hi, forge 1.17.1-37.0.70 is firing LeftClickBlock twice, same hand, same side. @SubscribeEvent public void onLeftClickBlock(final LeftClickBlock event) { LOGGER.error("Time: {}, Thread: {}, hand: {}, side: {}", new Date().getTime(), Thread.currentThread(), event.getHand(), event.getSide()); } result: [20:19:48] [Server thread/ERROR]: Time: 1632269988298, Thread: Thread[Server thread,5,SERVER], hand: MAIN_HAND, side: SERVER [20:19:48] [Server thread/ERROR]: Time: 1632269988398, Thread: Thread[Server thread,5,SERVER], hand: MAIN_HAND, side: SERVER Bye, F.
×
×
  • Create New...

Important Information

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