Aller au contenu

Atteindre 15 seconds avant se deconecter


Messages recommandés

Posté(e)

essaye

 

on quit:
   make player execute command "/setrespawn"

command /setrespawn:
   trigger:
       set {setrespawn} to location of player
       make console execute command "/npc create %player%"
       teleport npc to {setrespawn}
       wait 15 seconds
       make console execute command "/npc delete %player%

Posté(e)

Reste plus qu'à voir si ca marche

 

on quit:
   spawn a villager named "%player%"
   set {_v} to last spawned entity
   set {_n} to 0
   loop 36 times:
       set {d.%player%.%{_n}%} to slot {_n} of player's inventory
       add 1 to {_n}
    loop 15 times:
        if player is online:
            kill {_v}
            loop 36 times:
                delete {d.%player%.%{_n}%}
                add 1 to {_n}
             stop
          else:
             wait 1 second
      kill {_v}

on death of a villager:
   if name of victim is not "villager":
       set {_n} to 0
       loop 36 times:
           drop {d.%name of player%.%{_n}%} at event-location
           delete {d.%name of victim%.%{_n}%}
           add 1 to {_n}

Posté(e)
Reste plus qu'à voir si ca marche

 

on quit:
   spawn a villager named "%player%"
   set {_v} to last spawned entity
   set {_n} to 0
   loop 36 times:
       set {d.%player%.%{_n}%} to slot {_n} of player's inventory
       add 1 to {_n}
    loop 15 times:
        if player is online:
            kill {_v}
            loop 36 times:
                delete {d.%player%.%{_n}%}
                add 1 to {_n}
             stop
          else:
             wait 1 second
      kill {_v}

on death of a villager:
   if name of victim is not "villager":
       set {_n} to 0
       loop 36 times:
           drop {d.%name of player%.%{_n}%} at event-location
           delete {d.%name of victim%.%{_n}%}
           add 1 to {_n}

J'avais pas pensé ;)

  • J'aime 1
×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.