Aller au contenu
  • 0

can't understand this event: 'on right click on a bed' et can't understand this event: 'on break a bed'


Question

Posté(e)

Version de Minecraft : 1.14.4
Version de Skript : 2.4.1

Addons utilisés:  SkQuery 4.1.1, SkRayFall 1.9, Skript-yaml

Type du Skript : Rush

Description du script : Skript pour un mode de jeux rush

 

J'ai un problème avec deux erreur dans un Skript pour un mode de jeux Minecraft 1.14.4 qui se nomme Rush. Les deux erreur sont les suivantes:

- can't understand this event: 'on right click on a bed' (rush.sk, line 47: on right click on bed:

- can't understand this event: 'on break a bed' (rush.sk, line 87: on break a bed:


 

#Rush
options:
    max: 4
    min: 2
    block: sandstone
    minerais: Brick
    minerais_fer: iron ingot
    minerais_gold: gold ingot
    minerais_emeraud: emerald
    lit: bed

#on break obsidian:
#    cancel event

command /rush [<text=help>] [<text>] [<text>]:
    trigger:
        if arg 1 is "setspawn":
            if arg 2 is "bleu":
                if arg 3 is "%arg 3%":
                    set {bleu.setspawn} to location of player
            if arg 2 is not set:
                message "&5Rush &7>> command /rush <setspawn> <bleu/rouge> <arene>!"
                if arg 3 is not set:
                    message "&5Rush &7>> command /rush <setspawn> <bleu/rouge> <arene>!"
        if arg 1 is "join":
            if arg 2 is "%arg 2%":
                teleport player to {rush.lobby}
                add 1 to {player.rush}
                set {rush.join.%player%} to true

        if arg 1 is "forcestart":
            if arg 2 is "%arg 2%":
                set {spawn.start} to true

        if arg 1 is "setlobby":
            if arg 2 is "%arg 2%":
                set {rush.lobby} to location of player
        if arg 1 is "leave":
            if arg 2 is "%arg 2%":
                teleport player to {hub}
                remove 1 from {player.rush}
                
on place:
    if event-block isn't {@block}:
        if player doesn't have the permission "admin.sk":
            cancel event

on right click on a bed:
  set {bed.spawn.%player%} to location of event-block
  message "&5Rush >>&7Spawn set!"


on death of player:
    if player is in world "gamerush":
        if {rush.join.%player%} is true:
            message "&5Rush >>&7Tu es mort!"
            teleport player to {bed.spawn.%player%}
        if {rush.join.%player%} is false:
            teleport player to {hub}


command /adminrush <text> <text> <text>:
    trigger:
        if arg 1 is "set":
            if arg 2 is "lingot":
                if arg 3 is "%arg 3%":
                    give a gold block named "&5Pose moi où il faut que les lingots spawn!" to player


on place gold block:
    if player is in world "gamerush":
        set {spawn.lingot} to location of block

on break gold block:
    if player is in world "gamerush":
        set {spawn.lingot} to false


every 2 seconds:
    drop 1 brick at location of {spawn.lingot}
every 1 minutes:
    drop 1 gold ingot at location of {spawn.lingot}
every 30 seconds:
    drop 2 iron ingot at location of {spawn.lingot}
every 2 minutes:
    drop 1 emerald at location of {spawn.lingot}

on break bed:
    if {bed.protect} is true:
        cancel event


command /rushtest:
    trigger:
        set {bed.protect} to true


command /go:
    trigger:
        set {bed.protect} to false

 

6 réponses à cette question

Messages recommandés

  • 0
Posté(e)
Il y a 21 heures, Benjiiben53 a dit :

Version de Minecraft : 1.14.4
Version de Skript : 2.4.1

Addons utilisés:  SkQuery 4.1.1, SkRayFall 1.9, Skript-yaml

Type du Skript : Rush

Description du script : Skript pour un mode de jeux rush

 

J'ai un problème avec deux erreur dans un Skript pour un mode de jeux Minecraft 1.14.4 qui se nomme Rush. Les deux erreur sont les suivantes:

- can't understand this event: 'on right click on a bed' (rush.sk, line 47: on right click on bed:

- can't understand this event: 'on break a bed' (rush.sk, line 87: on break a bed:


 


#Rush
options:
    max: 4
    min: 2
    block: sandstone
    minerais: Brick
    minerais_fer: iron ingot
    minerais_gold: gold ingot
    minerais_emeraud: emerald
    lit: bed

#on break obsidian:
#    cancel event

command /rush [<text=help>] [<text>] [<text>]:
    trigger:
        if arg 1 is "setspawn":
            if arg 2 is "bleu":
                if arg 3 is "%arg 3%":
                    set {bleu.setspawn} to location of player
            if arg 2 is not set:
                message "&5Rush &7>> command /rush <setspawn> <bleu/rouge> <arene>!"
                if arg 3 is not set:
                    message "&5Rush &7>> command /rush <setspawn> <bleu/rouge> <arene>!"
        if arg 1 is "join":
            if arg 2 is "%arg 2%":
                teleport player to {rush.lobby}
                add 1 to {player.rush}
                set {rush.join.%player%} to true

        if arg 1 is "forcestart":
            if arg 2 is "%arg 2%":
                set {spawn.start} to true

        if arg 1 is "setlobby":
            if arg 2 is "%arg 2%":
                set {rush.lobby} to location of player
        if arg 1 is "leave":
            if arg 2 is "%arg 2%":
                teleport player to {hub}
                remove 1 from {player.rush}
                
on place:
    if event-block isn't {@block}:
        if player doesn't have the permission "admin.sk":
            cancel event

on right click on a bed:
  set {bed.spawn.%player%} to location of event-block
  message "&5Rush >>&7Spawn set!"


on death of player:
    if player is in world "gamerush":
        if {rush.join.%player%} is true:
            message "&5Rush >>&7Tu es mort!"
            teleport player to {bed.spawn.%player%}
        if {rush.join.%player%} is false:
            teleport player to {hub}


command /adminrush <text> <text> <text>:
    trigger:
        if arg 1 is "set":
            if arg 2 is "lingot":
                if arg 3 is "%arg 3%":
                    give a gold block named "&5Pose moi où il faut que les lingots spawn!" to player


on place gold block:
    if player is in world "gamerush":
        set {spawn.lingot} to location of block

on break gold block:
    if player is in world "gamerush":
        set {spawn.lingot} to false


every 2 seconds:
    drop 1 brick at location of {spawn.lingot}
every 1 minutes:
    drop 1 gold ingot at location of {spawn.lingot}
every 30 seconds:
    drop 2 iron ingot at location of {spawn.lingot}
every 2 minutes:
    drop 1 emerald at location of {spawn.lingot}

on break bed:
    if {bed.protect} is true:
        cancel event


command /rushtest:
    trigger:
        set {bed.protect} to true


command /go:
    trigger:
        set {bed.protect} to false

 

Essaye de remplacer "bed" par "bed block"

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

Essaye de remplacer "bed" par "bed block"

Sans succès malheureusement:

can't understand this event: 'on right click on bed block' (rush.sk, line 48: on right click on bed block:')

can't understand this event: 'on break a bed block' (rush.sk, line 91: on break a bed block:')

  • 0
Posté(e)
Le 05/01/2020 à 21:34, Romitou a dit :

Salut,

Pour corriger cette erreur, il faut spécifier la couleur du lit. --> red bed.

Bonne soirée.

Salut,

 

Effectivement ceci marche merci a toi pour l'aide 🙂 sur ce encore merci et bonne soirée a vous !

 

 

  • 0
Posté(e)
il y a 46 minutes, Benjiiben53 a dit :

Salut,

 

Effectivement ceci marche merci a toi pour l'aide 🙂 sur ce encore merci et bonne soirée a vous !

 

 

Pas de problème ! 😄

N'hésite pas à revenir si tu as encore besoin d'aide. 👋

  • J'aime 1
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.