PandaDap2006 / Pandas-Falling-Trees

Makes trees fall
https://modrinth.com/mod/pandas-falling-trees
MIT License
14 stars 0 forks source link

[BUG] Compatability with HT's TreeChop #37

Closed Camawama closed 4 months ago

Camawama commented 8 months ago

HT's TreeChop makes it so the player can slowly chop a tree until it breaks. Your mod makes the tree fall after breaking.

Having the two work together would be one step closer to a realistic tree chopping mechanic and I would love to see it work!

I want to slowly chop the bottom of a tree and then (at a certain point) have the tree fall over. 😄

Currently, with both installed, it only has your mechanics and ignores HT's TreeChop.

hammertater commented 8 months ago

If interested @PandaDap2006, I think compatibility should be pretty simple by adding a listener to TreeChop's AFTER_CHOP event, checking for felled == true. Then check chopData for the tree's blocks. See https://github.com/hammertater/treechop/blob/main/fabric/src/main/java/ht/treechop/api/TreeChopEvents.java

It's possible TreeChop's chopped_log blocks would have some rendering issues. I'm happy to help, either by extending the API as needed or by sending a pull request.

PandaDap2006 commented 8 months ago

Thanks @hammertater for letting me know and for offering your assistance with this, i will reach out if there seems to be any issues.

PandaDap2006 commented 8 months ago

Accidentally closed the issue, sorry.

PandaDap2006 commented 8 months ago

Hey @hammertater im currently trying to make compatibility with the mod but chopData doesn't have a method or variable for getting the blocks of the tree, it would be great if you could extend the API so it would be possible, you can contact me on discord if you find it necessary, my tag is @thepandaoliver.

hammertater commented 8 months ago

Ahh sorry, I made some extensions to the API but forgot that I haven't released them yet. I'll let ya know when it's ready

PandaDap2006 commented 8 months ago

Sounds great, thanks.

Camawama commented 8 months ago

This is very exciting, can't wait!

GulliUlli commented 7 months ago

anything new? :D i found the mod few minues ago and im allready using treechop^^ i would be really cool, to use both together

PandaDap2006 commented 7 months ago

@GulliUlli Sadly treechop have not been updated yet.

Camawama commented 7 months ago

It looks like something happened 5 days ago https://github.com/hammertater/treechop/issues/233

hammertater commented 7 months ago

Hey folks, sorry for how long it’s taking. I have made the changes but haven’t posted an updated version yet. I’ll try to get it up tomorrow-ish

hammertater commented 7 months ago

Sorry for the wait! As of 0.18.5 (only for Minecraft 1.19.2 right now) there's a new a getTree method in the ChopData class. That'll return a TreeData object that has all of the positions for logs. If you need the leaves as well, TreeData's forEachLeaves is faster than streamLeaves, but make sure you read all of the logs first or it might not find all of the leaves. Sorry for the jankiness.

PandaDap2006 commented 7 months ago

Thanks so much i might take a look at later today.

GulliUlli commented 7 months ago

uuh sounds like progress in that case? :P

Camawama commented 5 months ago

I see progress 👀

PandaDap2006 commented 5 months ago

Yep working on it.

PandaDap2006 commented 4 months ago

Support for HT's TreeChop has officially been added, the released can only be downloaded on CurseForge and Github, Modrinth will be released at a later time.

Camawama commented 4 months ago

WooHoo!!!

Camawama commented 4 months ago

Now we just need compatibility with MultiMine mod

PandaDap2006 commented 4 months ago

I will work on it at some point.

DaeTheDerg commented 3 months ago

Heya! When chopping down a tree with HT's Tree Chop, the tree doesn't fall at the point the cut was made, instead it destroys the block above. this isn't mechanically problematic, it's just visually unappealing - still, is there any way this could be fixed?

https://github.com/PandaDap2006/Pandas-Falling-Trees/assets/80906771/8ad130a3-b2c4-43b9-ab89-2f04a3a43271

I'm using the latest versions of both mods on Neoforge 1.20.1