제가 이해를 잘 못해서 사진이나 영상 아니면 맵으로 보내주시면 감사할거같습니다
0 0 0 좌표를 기준으로 보는 방향으로x칸(x는 변수 님이 원하는 수 쓰면 됨) 아무entity를소환하고 님이 소환한 투사체 Motion 에다가 소환한 entity의 Pos값을넣면 끝
밑에 hanhy님이 쓴 건 좌표 0에선 작동 안해서 항상 작동되는걸 써드리자면
일단 보는 방향 기준으로 1블럭 앞에 몹을 소환,그 몹과 발사자의 좌표값을 500배하여 스코어보드에 넣고 몹값-플레이어값을하고 서로 빼고 그 값을 0.05배해서 몹에게 Motion으로 넣으면 됩니다
그... 커맨드를 좀
execute as @a[scores={ironman=1..}] at @s run summon arrow ^ ^ ^1 {Tags: [gun2,skelearrow,skelearrow1], NoGravity: 0b, damage: 3d,life:100s}
execute as @e[tag=gun2,tag=!gun3] store result score @s ironx run data get entity @s Pos[0] 1200
execute as @e[tag=gun2,tag=!gun3] store result score @s irony run data get entity @s Pos[1] 1200
execute as @e[tag=gun2,tag=!gun3] store result score @s ironz run data get entity @s Pos[2] 1200
execute as @a[scores={ironman=1..}] store result score @s ironx run data get entity @s Pos[0] 1200
execute as @a[,scores={ironman=1..}] store result score @s irony run data get entity @s Pos[1] 1200
execute as @a[scores={ironman=1..}] store result score @s ironz run data get entity @s Pos[2] 1200
scoreboard players operation @e[tag=gun2,tag=!gun3] ironx -= @a[scores={ironman=1..}] ironx
scoreboard players operation @e[tag=gun2,tag=!gun3] irony -= @a[scores={ironman=1..}] irony
scoreboard players operation @e[tag=gun2,tag=!gun3] ironz -= @a[scores={ironman=1..}] ironz
execute as @e[tag=gun2,tag=!gun3] at @s run tp @s ~ ~1.7 ~
execute as @e[tag=gun2,tag=!gun3] store result entity @s Motion[0] double 0.005 run scoreboard players get @s ironx
execute as @e[tag=gun2,tag=!gun3] store result entity @s Motion[1] double 0.005 run scoreboard players get @s irony
execute as @e[tag=gun2,tag=!gun3] store result entity @s Motion[2] double 0.005 run scoreboard players get @s ironz
execute as @e[tag=gun2,tag=!gun3] run tag @s remove gun2
건축
KHC
2024-10-25
2
2024-10-10
dbasd12
2024-10-09
레드스톤
노트블럭전문가
2024-10-08
1
팁
물귀신
2024-10-06
3
hanhy
2021.09.210 0 0 좌표를 기준으로 보는 방향으로x칸(x는 변수 님이 원하는 수 쓰면 됨) 아무entity를소환하고 님이 소환한 투사체 Motion 에다가 소환한 entity의 Pos값을넣면 끝
아스드프
2021.09.24밑에 hanhy님이 쓴 건 좌표 0에선 작동 안해서 항상 작동되는걸 써드리자면
일단 보는 방향 기준으로 1블럭 앞에 몹을 소환,그 몹과 발사자의 좌표값을 500배하여 스코어보드에 넣고 몹값-플레이어값을하고 서로 빼고 그 값을 0.05배해서 몹에게 Motion으로 넣으면 됩니다
선우희도
2021.09.24그... 커맨드를 좀
아스드프
2021.09.25execute as @a[scores={ironman=1..}] at @s run summon arrow ^ ^ ^1 {Tags: [gun2,skelearrow,skelearrow1], NoGravity: 0b, damage: 3d,life:100s}
execute as @e[tag=gun2,tag=!gun3] store result score @s ironx run data get entity @s Pos[0] 1200
execute as @e[tag=gun2,tag=!gun3] store result score @s irony run data get entity @s Pos[1] 1200
execute as @e[tag=gun2,tag=!gun3] store result score @s ironz run data get entity @s Pos[2] 1200
execute as @a[scores={ironman=1..}] store result score @s ironx run data get entity @s Pos[0] 1200
execute as @a[,scores={ironman=1..}] store result score @s irony run data get entity @s Pos[1] 1200
execute as @a[scores={ironman=1..}] store result score @s ironz run data get entity @s Pos[2] 1200
scoreboard players operation @e[tag=gun2,tag=!gun3] ironx -= @a[scores={ironman=1..}] ironx
scoreboard players operation @e[tag=gun2,tag=!gun3] irony -= @a[scores={ironman=1..}] irony
scoreboard players operation @e[tag=gun2,tag=!gun3] ironz -= @a[scores={ironman=1..}] ironz
execute as @e[tag=gun2,tag=!gun3] at @s run tp @s ~ ~1.7 ~
execute as @e[tag=gun2,tag=!gun3] store result entity @s Motion[0] double 0.005 run scoreboard players get @s ironx
execute as @e[tag=gun2,tag=!gun3] store result entity @s Motion[1] double 0.005 run scoreboard players get @s irony
execute as @e[tag=gun2,tag=!gun3] store result entity @s Motion[2] double 0.005 run scoreboard players get @s ironz
execute as @e[tag=gun2,tag=!gun3] run tag @s remove gun2