ITADN

Allows adding bones

#1Pull Requestanjoismysign 创建于 2024-03-22
A
anjoismysigncommented
Example: ```java // Context World world; // some world Location location; // some location Spider spider; // some spider // Create an ItemDisplay (spider.itemBones) or BlockDisplay (spider.blockBones) ItemDisplay display = world.createEntity(location, ItemDisplay.class); display.setTeleportDuration(1); display.setTransformation(new Transformation( new Vector3f(0, 0.5f, 0.5f), //x > 0 is left, y > 0 is up, z > 0 is front new AxisAngle4f(0, 0, 0, 0), // if you would like to rotate to the left new Vector3f(1.25f, 1.25f, 1.25f), // the size new AxisAngle4f(0, 0, 0, 0))); // if you would like to rotate to the right ItemStack skull = new ItemStack(Material.WITHER_SKELETON_SKULL); display.setItemStack(skull); display.setItemDisplayTransform(ItemDisplay.ItemDisplayTransform.FIXED); // Let the spider "connect the dots" spider.getItemBones().add(head); ``` Example in-game: ![image](https://github.com/TheCymaera/minecraft-spider/assets/25514360/5bf646bd-4e50-4cdf-80d0-d7d9c2fc9486)
合并状态:未合并 0 条评论