TwerkTree icon

TwerkTree -----

Grow trees(or whatever) by twerking. Supports 1.5->1.16+



Updated to use new Reflection system to bonemeal items.
Example:
Code (Text):
    public static void boneMeal(Location location) {
        ReflectionUtil.newCall().getMethod(CRAFT_WORLD, "getHandle")
                .get()
                .passIfValid(reflectionMethod -> {
                    Object world = reflectionMethod.invokeIfValid(location.getWorld());
                    ReflectionUtil.newCall().getMethod(ITEM_DYE, "a", NMS_ITEM_STACK, NMS_WORLD, NMS_BLOCK_POSITION)
                            .get()
                            .passIfValid(reflectionMethod1 -> {
                                ReflectionUtil.newCall().getConstructor(NMS_BLOCK_POSITION, int.class, int.class, int.class)
                                        .get()
                                        .passIfValid(reflectionConstructor -> {
                                            Object blockPosition = reflectionConstructor.newInstance((int) location.getX(), (int) location.getY(), (int) location.getZ());
                                            reflectionMethod1.invokeIfValid(null, NMSItemStack, world, blockPosition);
                                        });
                            });
                });
    }
----------, Feb 18, 2017
Resource Information
Author:
----------
Total Downloads: 10,320
First Release: Jan 28, 2017
Last Update: Aug 1, 2021
Category: ---------------
All-Time Rating:
3 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings