Description
Potion consommée par une sorcière, utilisé dans l'événement "On witch consume potion".
on witch consume potion:
chance of 50%:
set witch's consumed potion to strong potion of instant damage
stop
chance of 20%:
set witch's consumed potion to strong potion of jump
[the] witch['s] (consumed|drank) potion
Description
Position d'origine d'une entité (ne fonctionne pas pour les entitées apparues lors de la chargement d'un chunk).
command /entity-origin:
trigger:
loop all entities in radius 5 around player:
if loop-entity is not player:
teleport loop-entity to origin of loop-entity
[the] origin[al] [location] of %entities%
%entities%'[s] origin[al] [location]
Description
L'attaquant ou la victime lors d'un recul (= knockback) utilisée dans l'événement "On entity knockback".
on entity knockback:
broadcast "Attaquant : %knockback attacker%"
broadcast "Vicitime : %knockback victim%"
[the] knockback (attacker|victim)
Description
Retourne tous les NPC créés.
set {_npc::*} to all created citizens
all [created] (citizen|npc)s
Description
Faire exécuter une action au NPC
Actions disponibles: arm swing, arm swing offhand, crit, eat food, hurt, magic crit, sit, sleep, sneak, start elytra, start use mainhand item, start use offhand item, stop sitting, stop sleeping, stop sneaking et stop use item
make the last citizen start use offhand item
make %citizen% [do] [anim[ation]] %npcanimation%
Description
Faire attaquer ou suivre le NPC vers une entité
make the last citizen follow player
make the last citizen attack player
make %citizen% (0¦attack|1¦follow) %livingentity%
Description
Retourne un NPC par son identifiant (ID) afin de sélectionner un NPC en particulier.
set {_npc} to the citizen from id 1
[the] (citizen|npc) (with|from) id[entifier] %number%
Description
Retourne l'identifiant (ID) d'un NPC.
Il ne peut donc pas être modifié.
send "%id of the event-citizen%"
if id of the event-citizen is 1:
[the] [npc] id[entifier] of %citizen% %citizen%'[s] [npc] id[entifier]