Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
1.0 kB
2
Indexable
Never
events:
  on mine of minecraft:cobblestone:
    if {anahtar} is true:
      set {minedCobblestone} to {minedCobblestone} + 1
      if {minedCobblestone} is 1000:
        set {minedCobblestone} to 0
        set {allitems} to all items in the game except for (items with the lore "Gamemode Item")
        give 1 random item from {allitems} to the player
        give 1 minecraft:dead_bush named "&5Anahtar" with lore "&4Rasgele Değerli Itemler Ver" and Unbreakable:true and enchants [minecraft:respiration:1000, minecraft:aqua_affinity:1000]
commands:
  anahtar:
    description: "Rasgele item özelliğini aç/kapat"
    permission: op
    usage: "/anahtar <aç|kapat>"
    execute:
      if arg-1 is "aç":
        set {anahtar} to true
        message "&aRasgele item özelliği açıldı"
      else if arg-1 is "kapat":
        set {anahtar} to false
        message "&cRasgele item özelliği kapatıldı"
      else:
        message "&cGeçersiz argüman. Kullanım: /anahtar <aç|kapat>"