The new entity "ShulkerBullet" (normally shot by the new mob "Shulker") allows us to control its potential target location, albeit with specific UUIDs.
Steps - How many "steps" it takes to attack to the target. The higher it is, the further out of the way the bullet travels to get to the target. If set to 0, it makes no attempt to attack the target and will instead use TXD/TYD/TZD in a straight line (similar to fireballs).
TXD/TYD/TZD - The offset direction to travel in accordance with its target.
Dir - Current directional facing.
Owner - The owner of the bullet, which is used to determine who had attacked the target. X, Y, and Z are the owner's location while L and M and the UUID pair of the owner. All of which must be defined and must match the initial owner's location. Does not need to be defined to control movement, nor does it need to be a Shulker.
Target - Essentially the same as Owner, except this is the target for the bullet. It will attempt to travel to this target if Steps is higher than 0. This must be set in order to use Steps with a value of 0 to target a specific block location, meaning the target must also exist.
So for example, the following creeper is summoned with a specific UUID and at a specific location:
Another bullet, which will be forced to travel on the X coordinate and downwards into the ground without attempting to target the creeper, as its "Steps" is set to 0:
Summon an armorstand with a uuid that you can track, and then teleport it to the nearest player, then summon the shulker bullet tracking that armorstand. Or would this not work?
Summon an armorstand with a uuid that you can track, and then teleport it to the nearest player, then summon the shulker bullet tracking that armorstand. Or would this not work?
You would have to summon the bullet before teleporting the armor stand, since the X/Y/Z tags must point to where the armor stand is. But after the target is successfully selected, you can teleport the target anywhere you want and the bullet will go after it.
its somewhat anoying that you can't target entitys just by XYZ but then if you had many entitys in the same spot, then it wouldn't work, however this way someone can't target a player, so maybe a UUID only targeting would be better?
idk I'm just speculating
other:
and can you get a shulker projectile to target with owner? so it would target the entity that last attacked it?
like NWGminecraft saed is it posible to find the nerest entity and track it? or like u throw a snowball and it summon the bullits? or same thing with a arrow?
Now the part I don't understand and need help with.
You must assign this armor stand a UUID number AND somehow detect its location.
Once its location is detected and you have assigned it a UUID, summon a ShulkerBullet with directive to seek out the armour stand.
As stated in the original post, there is a way to do this. However, how would I find the coordinate it is at? Is there a way to detect said armor stand? Or can the coordinates be relative? Will the bullets avoid terrain or does the land have to be flat?
Also, since UUID is unique, only one creeper at a time can be targeted. How do I target the Nearest one?
If you see any flaws with this method or have pointers please respond. I will continue working on it for now.
I'm not sure how to assign a UUID to a entity, but I presume you can just do any simple number you want, and if I remember correctly, the uuid is actually the only thing you need, instead of x y z co-ordinates for the shulker bullet.
The new entity "ShulkerBullet" (normally shot by the new mob "Shulker") allows us to control its potential target location, albeit with specific UUIDs.
NBT structure relevant to ShulkerBullet:
Steps - How many "steps" it takes to attack to the target. The higher it is, the further out of the way the bullet travels to get to the target. If set to 0, it makes no attempt to attack the target and will instead use TXD/TYD/TZD in a straight line (similar to fireballs).
TXD/TYD/TZD - The offset direction to travel in accordance with its target.
Dir - Current directional facing.
Owner - The owner of the bullet, which is used to determine who had attacked the target. X, Y, and Z are the owner's location while L and M and the UUID pair of the owner. All of which must be defined and must match the initial owner's location. Does not need to be defined to control movement, nor does it need to be a Shulker.
Target - Essentially the same as Owner, except this is the target for the bullet. It will attempt to travel to this target if Steps is higher than 0. This must be set in order to use Steps with a value of 0 to target a specific block location, meaning the target must also exist.
So for example, the following creeper is summoned with a specific UUID and at a specific location:
And then this ShulkerBullet is created, which targets that creeper in the shortest path possible:
Another bullet, which will be forced to travel on the X coordinate and downwards into the ground without attempting to target the creeper, as its "Steps" is set to 0:
Keep in mind that this is the first snapshot so things may change.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Epic! Is there a way to summon a bullet that can seek out the nearest entity/player?
Summon an armorstand with a uuid that you can track, and then teleport it to the nearest player, then summon the shulker bullet tracking that armorstand. Or would this not work?
You would have to summon the bullet before teleporting the armor stand, since the X/Y/Z tags must point to where the armor stand is. But after the target is successfully selected, you can teleport the target anywhere you want and the bullet will go after it.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
I can't get the bullet to go anywhere but down... What am I doing wrong?
/summon ShulkerBullet 915 35 -833 {Steps:0,TXD:0.0,TYD:-1.0,TZD:1.0}
Then I tried your's:
/summon ShulkerBullet 915 35 -833 {Steps:0,TXD:1.0,TYD:-1.0,Target:{X:10,Y:4,Z:10,L:1l,M:1l}}
but it still didn't work...
So basically, I'm stupid.
It is probably going down due to gravity. Yes, shulker bullets are affected by gravity. This is a pain to fix, and is really annoying. Sorry.
Click on the dragons to feed them
Well thats stupid. Why on earth would something like that be effected by the fake minecraft gravity!?
So basically, I'm stupid.
the Steps is set to zero try setting it to one or two
try this:
quote abuse lol
So, um, yeah.
So basically, I'm stupid.
its somewhat anoying that you can't target entitys just by XYZ but then if you had many entitys in the same spot, then it wouldn't work, however this way someone can't target a player, so maybe a UUID only targeting would be better?
idk I'm just speculating
other:
and can you get a shulker projectile to target with owner? so it would target the entity that last attacked it?
let the testing begin!
doesn't seem like it
code used:
XYZ and UUID least/most are correct
quote abuse lol
like NWGminecraft saed is it posible to find the nerest entity and track it? or like u throw a snowball and it summon the bullits? or same thing with a arrow?
Thought of a rough idea for how you would go about making a "homing missile system" there are probably some bugs, help would be appreciated
To target a creeper, start with
/execute @e[type=Creeper] ~ ~2 ~ /summon Arrow ~ ~1 ~ {Motion:[0.0,-3.0,0.0],pickup:0,CustomPotionEffects:[{Id:2,Amplifier:10,Duration:12000}]}
Any slowness level *ID 2* higher than 2 makes affected entities unable to move. Thus, the creeper can not move for 10 minutes.
Next, summon an armor stand at the creeper. It will be invisible.
/execute @e[type=Creeper] ~ ~ ~ /summon ArmorStand ~ ~1 ~ {Invisible:1}
Now the part I don't understand and need help with.
You must assign this armor stand a UUID number AND somehow detect its location.
Once its location is detected and you have assigned it a UUID, summon a ShulkerBullet with directive to seek out the armour stand.
As stated in the original post, there is a way to do this. However, how would I find the coordinate it is at? Is there a way to detect said armor stand? Or can the coordinates be relative? Will the bullets avoid terrain or does the land have to be flat?
Also, since UUID is unique, only one creeper at a time can be targeted. How do I target the Nearest one?
If you see any flaws with this method or have pointers please respond. I will continue working on it for now.
I'm not sure how to assign a UUID to a entity, but I presume you can just do any simple number you want, and if I remember correctly, the uuid is actually the only thing you need, instead of x y z co-ordinates for the shulker bullet.
is there no other way to make this thing easier? its too complicated to me...
and cant i assign it to land to the nearest mob?