Ir para conteúdo

Posts Recomendados

Postado

Olá, como faço para givar de 1 a varios itens no skript? por exemplo:

on break packed diamond:
    if player is holding a pickaxe:
        cancel event
        set event-block to air
        give player 1 diamond
    if player's tool is enchanted with fortune 5:
        cancel event
        set event-block to air
        give "1 até 5" diamond to player

Oque coloco em vez de "1 até 5" ? já tentei 1-5 mas não funcionou!

Postado
11 minutos atrás, St4rz1N disse:

Olá, como faço para givar de 1 a varios itens no skript? por exemplo:

on break packed diamond:
    if player is holding a pickaxe:
        cancel event
        set event-block to air
        give player 1 diamond
    if player's tool is enchanted with fortune 5:
        cancel event
        set event-block to air
        give "1 até 5" diamond to player

Oque coloco em vez de "1 até 5" ? já tentei 1-5 mas não funcionou!

Assim:

on break packed diamond:
    if player is holding a pickaxe:
        cancel event
        set event-block to air
        give player 1 diamond
    if player's tool is enchanted with fortune 5:
        cancel event
        set event-block to air
        chance of 50%
            give 1 diamond to player
        chance of 50%
            give 2 diamond to player
        chance of 50%
            give 3 diamond to player
        chance of 50%
            give 4 diamond to player
        chance of 50%
            give 5 diamond to player

Postado

gb-white.png?width=400&height=225


Seu tópico foi marcado como Inativo. Para reverter esta ação, entre em contato com a equipe de Moderação.

OBS: Essa mensagem é automática.

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...