untitled paste

unlisted ⁨1⁩ ⁨file⁩ 2021-08-26 16:32:28 UTC

pastefile1

Raw
name: "mineriumore"
item:
  material: GOLD_BLOCK
  displayName: '&eMinerai de Minerium'

canBeUsedGenerically: false
canBePlaced: true

block:
  generation:
   -
      method: ore
      worlds:
       - world
      continueChance: 0
      generationChance: 0.3
      amountPerChunk: 1
      minY: 0
      maxY: 8
handlers:
  blockBreak: 
    actions: 
      -
        invertIfResult: true
        ifItemInHand: 
          - "minecraft:diamond_pickaxe"
          - "mineriumpickaxe"
        action: cancel
        elseActions:
          -
            action: playerAddLevels
            amount : 1
          -
            action: setDrops
            items:
              - "mineriumfragment"