#(hef_sus) help me
19 messages · Page 1 of 1 (latest)
(hef_sus) help me
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
- you should save that as an entity script
- what do you mean, fly to the player's cursor and fly through blocks? do you mean like mineplex's anticheat, where you had a mob consistently in front and behind of you, so if you attack them it'd detect it?
And what part of that are you trying to make? the freelook part? or just the shooting part?
just shooting
And do you want it to specifically be an armor stand? a lot of people use particles, but even something like projectiles (I.e. using a snowball/arrow or something) would probably be easier
An armor stand is also possible if you specifically want that, just making sure you're not using it for no reason - could probably even use display entities now that they have a teleportation delay
Either way though, unless you use projectile entities (I.e. arrows/snowballs), you'll need your own logic to determine what entity is hit (if any), which means
!t ray_trace_target
Traces a line from this location towards the direction it's facing, returning the first hit entity (if any).
This is similar to !tag LocationTag.precise_target and !tag PlayerTag.target, except offering more options for how the ray trace is performed.
For ray tracing locations, see !tag LocationTag.ray_trace.
Optionally specify:
range: (defaults to 200) a maximum distance (in blocks) to trace before giving up.
blocks: (defaults to true) specify "false" to ignore all blocks, ...
world
EntityTag
# Removes the entity a player is looking at.
- define target <player.eye_location.ray_trace_target[ignore=<player>]||null>
- if <[target]> != null:
- remove <[target]>
# Returns any player within the view of an NPC.
- define target <npc.eye_location.ray_trace_target[entities=player;raysize=2]||null>
# Highlights an entity through any number or types of blocks.
- define target <player.eye_location.ray_trace_target[ignore=<player>;blocks=false]||null>
- if <[target]> != null:
- adjust <[target]> glowing:true
im using resource pack to put model into armorstand's head
this is my first time making server in 1.20.4
idk much about it
should i use when the armor is near the player within a radius of 1 block, it will deal damage to the player?