Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help with my Tree Control

Comments in 'Plugin Development' started by Jemrada, Nov 24, 2013.

  1. Jemrada
    Offline

    Jemrada New Member

    Joined:
    Sep 15, 2013
    Posts:
    19
    Minecraft User:
    Jemrada
    I have no experience with coding what so ever. Looking for a little guidance.

    I am wanting to create a nice plug-in to eventually take full control of the trees characteristics in your world.

    My first attempt is No Floating trees. Where the wood block of a tree drops similar to sand when you break the lower block. VanishedKevin added this feature to his plug-in for me awhile back. I wanted to create a similar plug-in, but without requiring src file manipulation.

    Here is what I have so far.

    https://github.com/Jemrada/TreeControl/blob/master/TreeControl.php

    I am stuck at the moment.
  2. wies
    Offline

    wies Notable Member

    Joined:
    Aug 23, 2013
    Posts:
    390
  3. Jemrada
    Offline

    Jemrada New Member

    Joined:
    Sep 15, 2013
    Posts:
    19
    Minecraft User:
    Jemrada
    What functions should I ideally use to cause a block above to drop down? Wood id is 17.

    Would I need to use "playerBlockBreak" or "playerBlockAction", then "blockUpdateAround" or "blockUpdate" to locate wood and move it down?

    Is there a function not listed that would work better?
  4. Syriamanal
    Offline

    Syriamanal Ban Evader Banned

    Joined:
    Oct 2, 2013
    Posts:
    221
    Minecraft User:
    Syriamanal
    Wies made a auto tree plugin lol
  5. Jemrada
    Offline

    Jemrada New Member

    Joined:
    Sep 15, 2013
    Posts:
    19
    Minecraft User:
    Jemrada
    It doesn't do what I'm trying to do. Unless I over looked that feature.
  6. Syriamanal
    Offline

    Syriamanal Ban Evader Banned

    Joined:
    Oct 2, 2013
    Posts:
    221
    Minecraft User:
    Syriamanal
    what exactly are u trying to do
  7. Jemrada
    Offline

    Jemrada New Member

    Joined:
    Sep 15, 2013
    Posts:
    19
    Minecraft User:
    Jemrada
    When a lower wood block is destroyed. The wood blocks above will drop one level. Similar to sand blocks when you break a lower level sand.
  8. Syriamanal
    Offline

    Syriamanal Ban Evader Banned

    Joined:
    Oct 2, 2013
    Posts:
    221
    Minecraft User:
    Syriamanal
    You can just change the api you know I did this once lol
  9. wies
    Offline

    wies Notable Member

    Joined:
    Aug 23, 2013
    Posts:
    390
    Essentials did this by checking if the block above is also wood, if so it will replace that block with air and place it back one place down, then it checks if the block above is wood,.. and so on
  10. Jemrada
    Offline

    Jemrada New Member

    Joined:
    Sep 15, 2013
    Posts:
    19
    Minecraft User:
    Jemrada
    What function was used?
    Ok, I will look at his older versions. The latest one don't seem to have it now.

Share This Page

Advertisement