your current location:首页 > news>[Weaila] What entity am I watching? (What Entity am I looking at?)

[Weaila] What entity am I watching? (What Entity am I looking at?)

2024-12-15 02:51:20|Myriagame |source:minecraft skins

Foreword

In the packet, the entity that needs to be detected in the line of sight is often encountered.However, using the predicate lookings to determine that you can only determine what entity the player sees, but it is impossible to mark the entity that the player sees.

So how can we become stronger?That's only poor!

Packet description

The UUID of the entity that the player is watching will be recorded on the four score boards of the player's scoring board, Weaila0 ~ Weaila3, and the real UUID will be recorded to its own Weaila_uuid0 ~ Weaila_uuid3.On the score board.This can easily judge the entity of the player when it is.

The data packet comes with the entity referred to by the highlight player, and the UUID of the entity is displayed in the fast bar.Therefore, the author of the data packet, please modify the label #Weaila: Action and cover the original content.

Code example

/scoreboard players operation #t Weila_uuid0 = @S Weaila0/Scoreboard Players #t Weaila_uuid1 = @S Weaila1/ Scoreboard Players Operation #t Weaila_uuid2 = @S Weaila2/Scoreboard Players Operation #TWeaila_uuid3 = @S Weaila3/Execute as @E If SCORE @S Weaila_uuid0 = #T Weaila_uuid0 if score @S Weaila_uuid1 = #T Weila_uid1 if score@ sweaila_uuid2 = #t Weila_uuid2 if score @S Weaila_uuid3 = #T Weila_uuid3 Run Effect Give@s Glowing 1 0 TRUE 

principle

Each Bit of each entity corresponds to a label, and then judge whether the entity that the player watches is watching through the progress. If you have these labels, add the corresponding score to the player.Reset score at the end of each moment.

How to use

After downloading, put the file in the archive DataPacks folder.

Minecraft images

The goal of MC Encyclopedia (MCMOD.CN) is to provide players with a better environment for MOD learning and research, and accept and cultivate more hardcore players.Provide Minecraft (Minecraft) MOD (module) item data introduction, tutorial strategy and MOD download, and is committed to improving the player's game experience.About the encyclopedia Encyclopedia help development log Donate Encyclopedia to follow the encyclopedia B station = "Fa Fa-Anagle-Right"> Opinions feedback Email © CopyRight Mc Encyclopedia 2013-2024 mcmod.cn |

Minecraft images

Minecraft images

In addition to other statements, MCMOD.CN, all open public editing content uses the BY-NC-SA 3.0 protocol.