Hi,
I want to recreate the dragon hearth dropped effect of draconic evolution mod for a minecraft item ritual: I wrote this code but I don't know how to add rotation.
Thanks in advance.
BlockEvents.rightClicked('netherite_block', event => {
const { level, block, server } = event
let itemEntity = level.createEntity("item")
itemEntity.y = block.pos.y + 1
itemEntity.x = block.pos.x + 0.5
itemEntity.z = block.pos.z + 0.5
itemEntity.item = Item.of('netherite_ingot')
itemEntity.item.count = 1
itemEntity.noGravity = true
itemEntity.motionY = 0.04
// itemEntity.rotate($Rotation.NONE) // I don't see any difference...
itemEntity.customName = 'Cosmos'
itemEntity.customNameVisible = true
server.tell(`Spawned! at ${itemEntity.x} ${itemEntity.y} ${itemEntity.z}`)
itemEntity.spawn()
})