1

How to make a wither skull go the same direction a players looking

Jeff_Clark's Avatar Jeff_Clark7/12/23 6:11 am
1 emeralds 122
I have a datapack that has a book to summon wither skulls and when it is summoned it needs to go to the direction the player is facing.
The problem is that the way wither skulls get their direction set is by using a list called "power" which is a 3d vector unlike the player's Rotation which is a set of angles.
I thought I could make it if I could get data from player and run it through a sine function but the thing is both of the objects are lists and I do not know how to get specific elements from lists nor how to overwrite them from scoreboards so I need help.

In short; how do I take a player's Rotation and turn it into power for a wither skull?
Posted by Jeff_Clark's Avatar
Jeff_Clark
Level 1 : New Crafter
0

Create an account or sign in to comment.

Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome