Would it be possible to have mob heads move in a specific direction, for a example is it possible to make a creeper skull fly towards the player and go right by them? Also would it be possible to detect when the creeper skull passed the player?
In 1.14.4 sorry if i didn't I made it hard to understand what i'm trying saying.
Would it be possible to have mob heads move in a specific direction, for a example is it possible to make a creeper skull fly towards the player and go right by them? Also would it be possible to detect when the creeper skull passed the player?
In 1.14.4 sorry if i didn't I made it hard to understand what i'm trying saying.
You can equip an invisible armor stand with the creeper head and move the armor stand past the player.
To move the armor stand towards the player, you need these:
/execute as @e[tag=creeperStand] at @s run tp @s ~ ~ ~ facing entity @p
^ run only once (when activated) and the armor stand will face the player. Then:
/execute as @e[tag=creeperStand] at @s run tp @s ^ ^ ^0.5
to teleport the armor stand in that direction. To detect when the armor stand past the player, use this:
/execute as @e[tag=creeperStand] at @s if entity @a[distance=..1] run ...
My own two cents--you can also try setting the Motion attribute of an armor stand to make it move:
/data modify entity@e[tag=creeperStand] Motion set value [1d,0d,0d]
Unfortunately, with this solution you have to specify the Cartesian coordinates of the motion vector, and AFAIK you cannot make it move relative to the player's facing direction.
Rollback Post to RevisionRollBack
Please, support the sledgehammer tool!
I ♥ Linux. Thanks Mojang for providing a game that runs natively on that OS!
Would it be possible to have mob heads move in a specific direction, for a example is it possible to make a creeper skull fly towards the player and go right by them? Also would it be possible to detect when the creeper skull passed the player?
In 1.14.4 sorry if i didn't I made it hard to understand what i'm trying saying.
You can equip an invisible armor stand with the creeper head and move the armor stand past the player.
To move the armor stand towards the player, you need these:
^ run only once (when activated) and the armor stand will face the player. Then:
to teleport the armor stand in that direction. To detect when the armor stand past the player, use this:
you might need to tweak the distance
Command block engineer // Developer // #TeamTrees
My own two cents--you can also try setting the Motion attribute of an armor stand to make it move:
Unfortunately, with this solution you have to specify the Cartesian coordinates of the motion vector, and AFAIK you cannot make it move relative to the player's facing direction.
Please, support the sledgehammer tool!
I ♥ Linux. Thanks Mojang for providing a game that runs natively on that OS!
Thank you very much
Thank you very much for the help
quick question would it be possible to allow the player to break the armor stand with a picaxe or something?
The armor stand would have to be visible then
Command block engineer // Developer // #TeamTrees
k thanks