• Recently Browsing

    No registered users viewing this page.

  • Posts

    • Hey all, I'm trying to find a way to decrease the interval in which onItemUse() is fired on an item. For my application, I'm trying to increase the use time of my overwritten vanilla shears on a certain block that yields drops after you shear it. I want it to shear as fast as someone would punch out a bunch of tall grass.   Here's my code in attempt to set the swinging time to zero when detecting the block being right clicked in the RightClickBlock event, sadly it doesn't work: @SubscribeEvent public void farmBlock(PlayerInteractEvent.RightClickBlock event) { if(event.getPlayer().getHeldItem(event.getHand()).getItem().equals(Items.SHEARS) && event.getWorld().getBlockState(event.getPos()).equals(RegistryHandler.MY_BLOCK.get().getDefaultState())){ System.out.println("My block was right clicked!"); //Testing purposes. event.getPlayer().swingProgressInt = 1; } }   I also have code in the onItemUse() function in my new vanilla shears class that allows the player to shear my block (turns it into another block) much like using an axe to right click will shave wood. Everything works the way that it should, I just want to decrease the time in which the item is used.   Like said before, I can change the shears however I want, as long as this works. Any pointers?   Thanks a ton!
    • How to add custom structure (I have nbt file in data/mymod/structures)? Can you give answer for 1.16.1, please?
    • Hello there, I have been trying to install forge 1.12.2 to get pixelmon, but when i double click or try the cmd command to open the installer, i get nothing but a black screen for the former, and an error (Error: Unable to access jarfile forge1.12.2installer.jar) for the latter. I have checked some other posts to see if something could fix my issue but nothing has worked so far. I have downloaded Java Version 8 Update 251 as recommened by the website. Could anyone please help me out with this? Thanks for your time :)
    • Sorry, but 1.7.10 is not supportet on this forum. This forum is only for newer versions.
    • ### Description of the Issue Gradlew fail running "runData" task.   ### Steps to Reproduce the Issue Download forge Mdk (see below for Forge versions) Extract the zip open widows Command Prompt (cmd.exe) change current dir to the extracted folder run command "gradlew runData"   ### Expected Behavior Gradlew should end with the "BUILD SUCCESSFUL" message like "jar" task. ### Actual Behavior Task fail   ### Tested forge versions forge-1.14.4-28.1.0-mdk (I saw it when trying to update a mod that uses this version) forge-1.14.4-28.2.0-mdk (Forge LTS? , recommended) forge-1.14.4-28.2.23-mdk (Forge LTS?, latest) forge-1.15.2-31.2.0-mdk (Community LTS? | Forge Current?, recommended) forge-1.15.2-31.2.30-mdk (Community LTS? | Forge Current?, latest) forge-1.16.1-32.0.47-mdk (Forge Current?, latest) ### Debug Information OS: Windows 8.1 x64 Mdk java version : java version "1.8.0_151" Java(TM) SE Runtime Environment (build 1.8.0_151-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.151-b12, mixed mode)      
  • Topics

  • Who's Online (See full list)