gnembon / scarpet

Public Repository of scarpet programs for Minecraft
Creative Commons Zero v1.0 Universal
359 stars 162 forks source link

added cart_breaker app #323

Closed nsluhrs closed 2 years ago

nsluhrs commented 2 years ago

Adding cart_breaker app which adds the ability when holding an axe and sneak left clicking a combined minecart (Minecart with chest, TNT etc) or boat with chest will drop inventory and the component parts of the combined entity as items.

altrisi commented 2 years ago

It's always dropping a chest for me for any composed minecart type, And boats with chest aren't being affected at all.

nsluhrs commented 2 years ago

@SurfingDude-1182 added small random velocity in range -.1 to .1 in x and z direction, 0.2 in y direction as seems to be the normal for a dropped item based on checking from a /tick freeze state @altrisi should be fixed now, there was a minor typo in @Ghoulboy78 's fix since the boat with chest is always of type chestboat regardless of what wood the boat is made of. Dropping the leading from the match fixed it.

altrisi commented 2 years ago

Thanks for contributing!