Aller au contenu

Question

Posté(e)

Version de Minecraft : 1.9.4
Version de Skript : 2.2

Bonjour j'ai trouver un skript qui permet de s'asseoir sur des escalier:

on rightclick on any stairs:
    spawn armor stand at location below event-block
    set {_entity} to last spawned entity
    wait 2 ticks
    apply invisibility to {_entity}
    make player ride {_entity}
    while {_entity} exists:
        if player is sneaking:
            eject any passenger of {_entity}
            wait 2 ticks
            kill {_entity}
            delete {_entity}
        wait 5 ticks

Le probleme c'est que quand l'armor stand spawn il n'est pas invisible j'ai essayé également le set visible to false (un truc comme ca) mais j'ai une erreur

Help me!!!!

  • J'aime 1

4 réponses à cette question

Messages recommandés

  • 0
Posté(e)
Il y a 1 heure, DarKEvuN a dit :

Version de Minecraft : 1.9.4
Version de Skript : 2.2

Bonjour j'ai trouver un skript qui permet de s'asseoir sur des escalier:


on rightclick on any stairs:
    spawn armor stand at location below event-block
    set {_entity} to last spawned entity
    wait 2 ticks
    apply invisibility to {_entity}
    make player ride {_entity}
    while {_entity} exists:
        if player is sneaking:
            eject any passenger of {_entity}
            wait 2 ticks
            kill {_entity}
            delete {_entity}
        wait 5 ticks

Le probleme c'est que quand l'armor stand spawn il n'est pas invisible j'ai essayé également le set visible to false (un truc comme ca) mais j'ai une erreur

Help me!!!!

Salut, si tu as Sk-NBeeT (ou autre), il te suffit de faire :

 

on rightclick on any stairs:
    spawn armor stand at location below event-block
    set {_entity} to last spawned entity
    wait 2 ticks
    add "{Invisible:1}" to {_entity}
    make player ride {_entity}
    while {_entity} exists:
        if player is sneaking:
            eject any passenger of {_entity}
            wait 2 ticks
            kill {_entity}
            delete {_entity}
        wait 5 ticks

 

  • 0
Posté(e) (modifié)
Il y a 10 heures, Romitou a dit :

Salut, si tu as Sk-NBeeT (ou autre), il te suffit de faire :

 


on rightclick on any stairs:
    spawn armor stand at location below event-block
    set {_entity} to last spawned entity
    wait 2 ticks
    add "{Invisible:1}" to {_entity}
    make player ride {_entity}
    while {_entity} exists:
        if player is sneaking:
            eject any passenger of {_entity}
            wait 2 ticks
            kill {_entity}
            delete {_entity}
        wait 5 ticks

 

Désoler mais ne marche pas l'armor stand est toujours visible

hhhh.PNG

Modifié par DarKEvuN
  • 0
Posté(e) (modifié)
il y a 2 minutes, Kilterra a dit :

Salut,
Remplace la ligne


    add "{Invisible:1}" to {_entity}

  par


    add "{Invisible:1b}" to entity-nbt of {_entity}

Ca devrai fonctionner, chez moi c'est le cas.

Cordialement
Kilterra

 

Oui, c'est la bonne syntaxe. Je me suis trompé dans mon code. x)

Modifié par Romitou
  • 0
Posté(e)
il y a 2 minutes, Kilterra a dit :

Salut,
Remplace la ligne


    add "{Invisible:1}" to {_entity}

  par


    add "{Invisible:1b}" to entity-nbt of {_entity}

Ca devrai fonctionner, chez moi c'est le cas.

Cordialement
Kilterra

 

OUIIII ca marche merci beacoup 😃 tu peut déplacer "RESOLU"

Invité
Ce sujet ne peut plus recevoir de nouvelles réponses.
×
×
  • 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.