Aller au contenu
  • 0

Question

Posté(e)

Version de Minecraft : 1.16.2
Version de Skript : 2.4

Addons utilisés: Tuske

Type du skript : Mystery box

Description du script :

Hey, donc je me demandai comment faire un skript pour une mystery box, mais étant novice, je ne sais pas du tout comment faire, j'ai cherché sur internet, rien trouvé de concluant, merci.

2 réponses à cette question

Messages recommandés

  • 0
Posté(e)

Pour l'instant j'ai ça mais c'est null, les chances sont bizarres:

 

on rightclick on ender chest with a tripwire hook:
  if name of event-item is "&e&lBox Key":
    cancel event
    open chest with 3 rows named "&e&lBox" to player
    format gui slot 13 of player with beacon named "&eYou received your item"
    chance of 15%:
      give 1 stone pickaxe named "&e&lHarvest Pickaxe 2" to player
    stop
    chance of 15%:
      give 1 stone axe named "&e&lHarvest Axe 2" to player
    stop
    chance of 15%:
      give 1 stone shovel named "&e&lHarvest Shovel 2" to player
    stop
    chance of 10%:
      give 1 iron shovel named "&e&lHarvest Shovel 3" to player
    stop
    chance of 10%:
      give 1 iron pickaxe named "&e&lHarvest Pickaxe 3" to player
    stop
    chance of 10%:
      give 1 iron axe named "&e&lHarvest Axe 3" to player
    chance of 5%:
      give 1 diamond shovel named "&e&lHarvest Shovel 4" to player
    stop
    chance of 5%:
      give 1 diamond pickaxe named "&e&lHarvest Pickaxe 4" to player
    stop
    chance of 5%:
      give 1 diamond axe named "&e&lHarvest Axe 4" to player
    stop

on leftclick on ender chest with a tripwire hook:
  if name of event-item is "&e&lBox Key":
    cancel event
    open chest with 3 rows named "&e&lBox chances" to player
    format gui slot 0 of player with stone pickaxe named "&e&lHarvest Pickaxe 2" with lore "&6&l15%%"
    format gui slot 1 of player with stone axe named "&e&lHarvest Axe 2" with lore "&6&l15%%"
    format gui slot 2 of player with stone shovel named "&e&lHarvest Shovel 2" with lore "&6&l15%%"
    format gui slot 9 of player with iron pickaxe named "&e&lHarvest Pickaxe 3" with lore "&6&l10%%"
    format gui slot 10 of player with iron axe named "&e&lHarvest Axe 3" with lore "&6&l10%%"
    format gui slot 11 of player with iron shovel named "&e&lHarvest Shovel 3" with lore "&6&l10%%"
    format gui slot 18 of player with diamond pickaxe named "&e&lHarvest Pickaxe 4" with lore "&6&l5%%"
    format gui slot 19 of player with diamond axe named "&e&lHarvest Axe 4" with lore "&6&l5%%"
    format gui slot 20 of player with diamond shovel named "&e&lHarvest Shovel 4" with lore "&6&l5%%"


command /boxgive <text>:
  permission: "boxgive.sk"
  trigger:
    if arg-1 is "crate":
      give 1 ender chest named "&e&lBox" to player
      stop
    if arg-1 is "key":
      give 1 tripwire hook named "&e&lBox Key" to player

 

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.