I'm trying to make a replica of Hypixel's Giant Sword ability using display entity, how do I change properties such as rotation and scale of a display entity? Here is my script so far, but the display entity of the sword is like an item frame on the floor.
GIANT_SWORD_ABILITY:
type: world
debug: false
events:
after player right clicks block with:giants_sword:
- define item <player.item_in_hand>
- if <[item]> matches *air:
- stop
- if <player.gamemode> != creative:
- take slot:hand
- define location <player.eye_location.ray_trace[range=5].if_null[null]>
- if <[location]> == null:
- narrate "<&[error]>You can't place this block here."
- stop
- spawn item_display_editor_entity[item=<[item].with[quantity=1]>] <[location]> save:entity
item_display_editor_entity:
type: entity
debug: true
entity_type: item_display
mechanisms:
item: stone