Solved Need help with my Plugin

Discussion in 'Plugin Development' started by DarkXPhyton, Apr 22, 2020.

Thread Status:
Not open for further replies.
  1. Offline

    DarkXPhyton

    so i tried to code a plugin that let all Ageable blocks in a radius of 8 grow to their maximum age but it just does nothing, here is the code:

    upload_2020-4-22_14-44-23.png
     
  2. Online

    timtower Administrator Administrator Moderator

    @DarkXPhyton Did you import the correct agable?
    Try updating the block as well.
     
  3. Offline

    DarkXPhyton

    @timtower Thank you for the quick response, yes i did imported the right ageable and i tried it like this:
    upload_2020-4-22_14-59-24.png
    but it wont work aswell :/
     
  4. Online

    timtower Administrator Administrator Moderator

  5. Offline

    DarkXPhyton

    @timtower so i found out its the "Block instanceof Ageable" line, the plugin dont pass this if-statement so i have to find another way to find out if the block is ageable
     
  6. Online

    timtower Administrator Administrator Moderator

    relative.getBlockData() instanceof
    That will probably fix it.
     
    DarkXPhyton likes this.
  7. Offline

    DarkXPhyton

    Thank you so much, it worked for me :)
    Have a nice day
     
    timtower likes this.
Thread Status:
Not open for further replies.

Share This Page