True Timber

Discussion in 'Archived: Plugin Requests' started by megasaad44, Nov 26, 2013.

  1. Offline

    megasaad44

    Plugin category: fun- RPG

    Suggested name: True Timber

    What I want: So you guys probably know about those timber mods right? The ones where you break the bottom tree log and it all falls down. Well... I wasn't completely satisfied with that.
    What i want is where if you break any block on the tree *lets say before the bottom one* the tree TUMBLES on it's side. So basically it the logs move slowly leaning over until they reach the ground. then they are choppable. Now... The bottom log is still where it should be, and if the tree falls in a gap like those cartoons where they chop a tree to make a bridge, that can be done but simply having the logs connected to each other if a block is detected on tumbling. The leaves would also tumble with the logs. Just like a real tree!

    Whatever block you break will instatly drop like normal minecraft, but once the upper logs fall down. only THEN, they become droppable and choppable and just like normal blocks. *orientation of logs would be nice as well*

    Important feature it MUST have is that it would detect a tree. But in an advanced way so that connected trees DO NOT tumble together which will cause a massive amount of lag on a server and it would cause mayhem in forests. Also it would detect if a log is placed by a player in which case it wouldn't react. *core protect hook?*

    Ideas for commands: No commands needed for this plugin.

    Ideas for permissions: No permissions needed for this plugin.

    When I'd like it by: Next week? It can take more time if needed though.

    bump

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 5, 2016
  2. Offline

    Alshain01

    You have played Minecraft right? Have you ever seen any kind of block move like that in Minecraft? It can't be done. At most you could transition vertical blocks of wood to horizontal ones along the ground. But it would be an instant movement, there would be no slow angled fall.
     
  3. Offline

    hubeb

    megasaad44 This would not really work, but you can detect the amount of blocks above the bottom blocks then delete those + the leaves and spawn a "fallen" tree on the ground next to it. Alshain01
     
  4. Offline

    Alshain01

    Yep, that's basically what I was trying to say in that last sentence. You said it better than I.
     
  5. Offline

    megasaad44

    Alshain01 hubeb Well this case, you gotta use your imagination.
    It's simple in theory. All you have to really do is use some advanced generation. every tick, the tree takes a lean. How does this lean happen? Well what i would do is in a case:
    1 tick: the original tree gets deleted. Then another tree is generated in it's position however it is in another form. a leaned form. So basically making a small block animation.
    2 tick: same happens but leaning more.
    etc...
    Does THAT sound more plausable? The leaning form would most likely be some premade schematics or such
     
  6. Offline

    AndyMcB1

    We cannot set the log to be halfway between two blocks.
     
  7. Offline

    megasaad44

    AndyMcB1 Why not? It's just a place and destroy place and destroy place and destroy until land is detected. I really don't understand why this might be impossible.
     
  8. Offline

    AndyMcB1

    Unless you want each block to move a block at a time (if so, please say!) this cannot be done.

    An alternative method would be to make falling sand entities.
     
  9. Offline

    hubeb

    instead of being 4 blocks high, if you were to do a diagonal it would look like this:
    Code:
    []            []
    []          []
    []        []
    []      []              [][][][]
     
    Tree    falling        on ground
    the falling "animation" would look weird and take up too much space in teh world
     
  10. Offline

    desht

    Nah, it's definitely doable. http://jd.bukkit.org/dev/apidocs/org/bukkit/entity/FallingBlock.html

    Not saying it's easy (I can see quite a few pitfalls), but certainly possible. It would be simpler just to turn each block of the tree (from the bottom upwards) into a FallingBlock and let it all collapse. Making sure that all falling blocks actually form a block on landing and not drop an item will take some work, but it's possible. Simulating proper toppling physics would be harder, but still possible...

    I might have a go at this, if I get some time (which probably won't be in the next few days at least, sorry).
     
  11. Offline

    megasaad44

    ^_____^

    bump since it's possible
     
  12. Offline

    megasaad44

    bump

    bump
    *it says my previous bump was yesterday necrodoom. just an fyi*
     
  13. Offline

    megasaad44

  14. Offline

    megasaad44

  15. Offline

    CrispyLipz

    AndyMcB1
    Hey, I can try something! I was actually tinkering with this. On tree break it places a minecart with logs on a rail and it looks like its slanted! And then I can just make it so the logs end on its side with the leaves. I'll get back to you on it soon (I hope) :3 I was doing something like this for my server! The first version might be kinda laggy xD

    megasaad44 Also, you request ALOT of plugins. Try learning some Java! Took me a few weeks to grasp the concept and I never let go! Super satisfying to see your hard work in action :)
     
  16. Offline

    megasaad44

    CrispyLipz Thanks for trying
    and i really wanna learn java and i tried, and i failed ;-;
    Any links to learn this stuff? I REALLY wanna, i even read a book about it...
     
  17. Offline

    thomas15v

    timtower likes this.
  18. Offline

    CrispyLipz

    megasaad44 Hey, I did the online tutorials and in my free time and when my IPad had charge at night I read and watched from an app called udemy :) I also got a little Java what not to do handbook and it helps :) Also, just be persistent! I learned the basics and tried to make an Enchanting plugin off the bat, which was not a good idea start small and expand! Make lots of little plugins try permissions commands and adding some things with EventHandlers :) Get learnin' brah! Happeh coding :3
     
  19. Offline

    megasaad44

  20. Offline

    thomas15v

    megasaad44 5 months what ? If you really want to program you could learn the basics in a Week. But after that you need to keep practice it. What probably takes a life time. Their is no programmer in the world that can program faultless. What also is the reason a windows PC Crashes after updates. And a linux PC won't boot at all if his driver is updated without updating the initrd.

    And loool http://www.squidoo.com/10000-hour-rule
     
  21. Offline

    megasaad44

    thomas15v Well derp... Actually, 5 months searching for a good tut, found now. But no i think this udemy thing is neat. :3
     

Share This Page