your current location:首页 > news>[WHM] Who hurts me and who I hurt again (who hart me and who I hurt) Minecraft

[WHM] Who hurts me and who I hurt again (who hart me and who I hurt) Minecraft

2024-12-15 02:37:57|Myriagame |source:minecraft skins

Brief introduction

This packet can be used to determine the entity of the player and the entity that is harmed by the player.

Physical harm player

Minecraft images

The entity of the physical entity that hurts the player for 1 second;

The results were shown in the chat bar in the chat bar in the format of .

Move the mouse pointer to or , and you can also view their UUID.

Can be modified in the function WHM: is_hot/find to achieve other effects.

Among them, @S refers to the physical entity that hurts the player,@a [tag = whm.Self] refers to the player who is hurt by the entity.

Player harm the entity

The entity of the entity that is given to players for 1 second of the lighting effect;

The results are displayed in the chat bar with the format of in the "entity> format.

Move the mouse pointer to or , and you can also view their UUID.

Can be modified in the function WHM: HURT/Find to achieve other effects.

Among them, @S refers to the entity that players hurt,@a [tag = whm.seelf] refers to the player who hurt the entity.

principle

Allocate a UID (scoring score) to each entity;

Convert the UID of the entity to binary and store it on the entity with labels;

Use the progress Player_Hurt_entity and Entity_HURT_PLAYER trigger to detect player damage entities with specific tags and physical harm with specific tags;

Convert the results of the progress detection to the decimal, compare with the UID of the entity to determine the target entity.

defect

Unable to detect the player hurt the player;

Unable to detect the player to kill the entity;

When players hurt multiple entities at the same time.

Minecraft images

Minecraft images

Minecraft images

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