PluginBugs / Issues-ItemsAdder

Repository used to keep track of issues of my plugin ItemsAdder
https://itemsadder.devs.beer
52 stars 21 forks source link

Loot bug null. #2171

Closed dinobossytnew closed 1 year ago

dinobossytnew commented 1 year ago

Terms

Discord tag (optional)

DinoBoss#6985

What happened?

Hello when placing obsidian for a custom pick to break it but not to break with other picks according to the wiki https://itemsadder.devs.beer/plugin-usage/adding-content/item-properties/blocks

but it gives error.

Steps to reproduce the issue

loots:
  blocks:
    obsidiana:
      type: OBSIDIAN
      items:
        rubyroja_ore:
          item: OBSIDIAN
          min_amount: 1
          max_amount: 2
          chance: 100
     break_tools_blacklist:
     - WOODEN_PICKAXE
     - STONE_PICKAXE
     - IRON_PICKAXE

try to create a file and paste this line and according to the wiki it would be correct...

Server version

[20:40:38 INFO]: Current: git-Purpur-1857 (MC: 1.19.2)* Previous: git-petal-"d448170" (MC: 1.19.2)

ItemsAdder Version

[20:40:52 INFO]: ItemsAdder version 3.3.0-beta-r10 [20:40:52 INFO]: Customized Minecraft without client mods! [20:40:52 INFO]: Website: devs.beer [20:40:52 INFO]: Author: LoneDev

ProtocolLib Version

[20:41:14 INFO]: ProtocolLib version 5.0.0-SNAPSHOT-b602 [20:41:14 INFO]: Provides read/write access to the Minecraft protocol. [20:41:14 INFO]: Authors: dmulloy2 and comphenix

LoneLibs Version

[20:41:29 INFO]: LoneLibs version 1.0.21 [20:41:29 INFO]: Collection of libs used by my plugins [20:41:29 INFO]: Authors: LoneDev and others

LightAPI Version (optional)

null

LibsDisguises Version (optional)

null

FULL server log

https://hastebin.com/ejufuvasog.makefile

Error (optional)

[20:33:42 WARN]: [ItemsAdder] Plugin ItemsAdder v3.3.0-beta-r10 generated an exception while executing task 22286
java.lang.IllegalArgumentException: Name cannot be null
        at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145) ~[guava-31.0.1-jre.jar:?]
        at org.bukkit.Material.matchMaterial(Material.java:5423) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at org.bukkit.Material.matchMaterial(Material.java:5406) ~[purpur-api-1.19.2-R0.1-SNAPSHOT.jar:?]
        at dev.lone.itemsadder.main.eU.c(SourceFile:135) ~[ItemsAdder_3.3.0-beta-r10.jar:?]
        at dev.lone.itemsadder.main.eU.a(SourceFile:57) ~[ItemsAdder_3.3.0-beta-r10.jar:?]
        at dev.lone.itemsadder.main.P.a(SourceFile:2356) ~[ItemsAdder_3.3.0-beta-r10.jar:?]
        at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftTask.run(CraftTask.java:101) ~[purpur-1.19.2.jar:git-Purpur-1857]
        at org.bukkit.craftbukkit.v1_19_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[purpur-1.19.2.jar:git-Purpur-1857]
        at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[purpur-1.19.2.jar:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[?:?]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[?:?]
        at java.lang.Thread.run(Thread.java:833) ~[?:?]

ItemsAdder config.yml

metrics: true
update-checker: true
disable-plugin-loading-messages_DONT_ASK_ME_FOR_SUPPORT_IF_YOU_SET_TRUE__THANKS: false
ignore-server-compatibility-check: false
resource-pack:
  hosting:
    no-host:
      enabled: false
    auto-external-host:
      enabled: false
    self-host:
      enabled: true
      server-ip: *********
      pack-port: ******
    external-host:
      enabled: false
      url: ''
      skip-url-file-type-check___DONT_ASK_HELP_IF_SET_TRUE: false
  apply-on-join: true
  kick-player-on-decline: false
  kick-player-on-fail: false
  delay-ticks: 1
  notify-other-plugins-interfering: true
  title:
    enabled: true
  protect-player:
    black-screen: true
    hide-hud: true
    cancel-movement: true
    lock-player: true
  command:
    usage-cooldown-seconds: 60
  custom-font:
    enabled: false
    name: ipaexg.ttf
    shift: '[0,0]'
    size: 11.0
    oversample: 2.0
  thin-font:
    enabled: false
  zip:
    protect-file-from-unzip:
      protection_1: true
      protection_2: true
    compress-png-files: true
    compress-json-files: true
    generate-custom-armors-textures:
      vanilla_1_17: true
      optifine: true
    disable-overwrite-leather-armor-layers-textures: false
    fix_transparent_noteblocks: false
    ignore-files-ext:
    - db
    - yml
    - xcf
    - psd
    - html
    - gz
    - rar
    - zip
    - 7z
    contents-folders-priority:
    - vanilla
    - cood
    - supreme_icons
    - _iainternal
    extract_internal_utility_assets: true
  items:
    CustomModelData-starting-value:
      ALL: 10000
      DIAMOND: 11000
config_files:
  lang: en
  dictionaries-lang: en
  force-sync-loading: false
blocks:
  light-api: true
  fix-liquids-flow: true
  fix-floating-blocks: true
  fix-glitched-blocks:
    enabled: true
    only-new-chunks: false
  cancel-break-wrong-tool:
    enabled: true
    send-actionbar: true
  campfire:
    unlit-on-place: true
    allow-any-item: true
  disable-REAL: false
  disable-REAL_NOTE: false
  disable-REAL_TRANSPARENT: false
  disable-REAL_WIRE: true
  disable-FIRE: false
  convert-vanilla-blocks:
    enabled: false
    only-new-chunks: true
items:
  fix-show-attack-and-damage-as-lore: true
  give_death_location_maps: true
  hide-custom-durability-lore: false
liquids:
  enabled: true
huds:
  enabled: true
loots:
  allow-loots-drop-from-spawners-using-silk-touch: false
mobs:
  disable-MOB-behaviour__DISABLE_AT_YOUR_OWN_RISK: false
chat-preview: false
font_images:
  replace-in-customitems-name-and-lore: true
  chat:
    enabled: true
    doublecheck-permission__disable-for-more-performance: false
    add-hover-suggestion: true
  command:
    enabled: true
    commandblocks: true
    excluded:
    - home
    - sethome
    - tpa
  sign:
    enabled: true
  book:
    enabled: true
  anvil:
    enabled: true
  inventory-title:
    enabled: true
  vault-prefix-suffix:
    enabled: true
    update-every-ticks: 1200
  scoreboard-teams:
    enabled: false
    update-every-ticks: 3600
  player-display-name:
    enabled: true
    update-every-ticks: 1200
effects:
  hide-scoreboard-numbers: false
  text-effects:
    enabled: true
    replace-in-customitems-name-and-lore: true
    chat:
      enabled: true
    sign:
      enabled: true
    book:
      enabled: true
    anvil:
      enabled: true
entities:
  max-furniture-vehicles-per-chunk: 30
  allow-removing-old-furnitures_2_3_11: false
  custom-entitites:
    enabled: true
    emotes: true
    interval-rendering-packets-ticks: 1
    optimized-packets: true
recipes:
  hide-vanilla-unrecognized-recipe-errors: true
  fix-packet-too-large-kick: false
  custom-recipes:
    unlock:
      all-on-join: false
      on-pickup:
        any: false
        ingredients: true
  remove-vanilla-recipes:
    enabled: true
    list:
      DIAMOND_SWORD: false
      IRON_INGOT: false
  show-no-permission-popup-in-recipebook: true
  show-no-permission-chat-message: false
debug:
  items:
    log-files-loading: false
    log-items-loading: false
    log-items-loading-disabled: false
    log-font-images-loading: false
    log-huds-loading: false
    log-attribute-modifiers-loading: false
    log-warnings: false
    log-loots-loading: false
    log-loots-loading-disabled: false
    log-armors-loading: false
  recipes:
    log-recipes-loading: false
    log-recipes-loading-disabled: false
    log-recipes-removed-vanilla: false
    log-recipes-unknown-item: false
    log-fix-packet-too-large: false
  resource-pack:
    log-extract-default-resources: false
    log-not-extract-default-resources-already-exist: false
  blocks:
    log-save: false
    log-save-on-unload: false
    log-mined-unknown-blocks: true
    log-convert-vanilla-blocks: false
  worlds-populators:
    log-loading: false
    log-loading-disabled: false
    log-loading-no-populators: false
    log-loading-no-world: true
    log-generation: false
  trees-populators:
    log-loading: false
    log-loading-disabled: false
    log-loading-no-populators: false
    log-loading-no-world: true
    log-generation: false
  surface-decorators:
    log-loading: false
    log-loading-disabled: false
    log-loading-no-decorators: false
    log-loading-no-world: true
    log-generation: false
  cave-decorators:
    log-loading: false
    log-loading-disabled: false
    log-loading-no-decorators: false
    log-loading-no-world: true
    log-generation: false
  player-stats:
    log-save: false
  performance:
    loading-ms: true
  huds:
    log-triggers: false
  other:
    log-dictionaries-loading: false
    log-liquids-loading: false
    log-minecraft_lang_overwrite-loading: false
  categories:
    log-total-loaded: true
    log-single-loaded: false
    log-single-loaded-overwrite: false
    log-single-skip: false
    log-icon-failed-load: false
  entities:
    log-files-loading: false
    log-entities-loading: false
    log-entities-loading-disabled: false

Problematic items yml configuration file (optional)

info:
  namespace: terraria
items:
#SPONGE VERSIONS
  #copper_ore:
  tin_ore:
    display_name: display-name-tin_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/tin_ore"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  lead_ore:
    display_name: display-name-lead_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/lead_ore"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  #iron_ore
  silver_ore:
    display_name: display-name-silver_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/silver_ore"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  tungsten_ore:
    display_name: display-name-tungsten_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/tungsten_ore"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  #gold_ore
  platinum_ore:
    display_name: display-name-platinum_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/platinum_ore"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  #---FACE 2
  demonite_ore:
    display_name: display-name-demonite_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/demonite_ore"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  meteorite_ore:
    display_name: display-name-meteorite_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/meteorite_ore"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  hellstone_ore:
    display_name: display-name-hellstone_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/hellstone_ore"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  #---FACE 3
  cobalt_ore:
    display_name: display-name-cobalt_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/cobalt_ore"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  palladium_ore:
    display_name: display-name-palladium_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/palladium_ore"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  orichalcum_ore:
    display_name: display-name-orichalcum_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/orichalcum_ore"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  mythril_ore:
    display_name: display-name-mythril_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/mythril_ore"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  adamantite_ore:
    display_name: display-name-adamantite_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/adamantite_ore"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  titanium_ore:
    display_name: display-name-titanium_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/titanium_ore"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  #---FACE 4
  chlorophyte_ore:
    display_name: display-name-chlorophyte_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/chlorophyte_ore"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  #shroomite_ore
  luminite_ore:
    display_name: display-name-luminite_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/luminite_ore"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
#DEEPSLATE VERSIONS
  cobalt_ore_deepslate:
    display_name: display-name-cobalt_ore_deepslate
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/cobalt_ore_deepslate"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  palladium_ore_deepslate:
    display_name: display-name-palladium_ore_deepslate
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/palladium_ore_deepslate"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  orichalcum_ore_deepslate:
    display_name: display-name-orichalcum_ore_deepslate
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/orichalcum_ore_deepslate"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  mythril_ore_deepslate:
    display_name: display-name-mythril_ore_deepslate
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/mythril_ore_deepslate"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  adamantite_ore_deepslate:
    display_name: display-name-adamantite_ore_deepslate
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/adamantite_ore_deepslate"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  titanium_ore_deepslate:
    display_name: display-name-titanium_ore_deepslate
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/titanium_ore_deepslate"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  #---FACE 5
  chlorophyte_ore_deepslate:
    display_name: display-name-chlorophyte_ore_deepslate
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/chlorophyte_ore_deepslate"
    specific_properties:
      block:
        hardness: 3
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  mercurio_ore:
    display_name: display-name-mercurio_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/block001"
    specific_properties:
      block:
        hardness: 4
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  maganesio_ore:
    display_name: display-name-maganesio_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/block002"
    specific_properties:
      block:
        hardness: 4
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  azulgema_ore:
    display_name: display-name-azulgema_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/block003"
    specific_properties:
      block:
        hardness: 4
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  rubyroja_ore:
    display_name: display-name-rubyroja_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/block004"
    specific_properties:
      block:
        hardness: 4
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer       
  gemarosa_ore:
    display_name: display-name-gemarosa_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/block030"
    specific_properties:
      block:
        hardness: 4
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer
  plutoneo_ore:
    display_name: display-name-plutoneo_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/block031"
    specific_properties:
      block:
        hardness: 4
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer 
  lechore_ore:
    display_name: display-name-lechore_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/block032"
    specific_properties:
      block:
        hardness: 4
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer           
  granate_ore:
    display_name: display-name-granate_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/block033"
    specific_properties:
      block:
        hardness: 4
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer  
  valkyrite_ore:
    display_name: display-name-valkyrite_ore
    resource:
      generate: true
      material: PAPER
      textures: 
      - "block/valkyriteore"
    specific_properties:
      block:
        hardness: 5
        placed_model:
          type: REAL_NOTE
          break_particles: ITEM
        cancel_drop: true
        break_tools_blacklist:
          - HAND
          - WOODEN_PICKAXE
          - SPONGE_PICKAXE
        break_tools_whitelist:
          - PICKAXE
          - pickaxe
          - _hammer          
loots:
  blocks:
    obsidiana:
      type: OBSIDIAN
      items:
        rubyroja_ore:
          item: OBSIDIAN
          min_amount: 1
          max_amount: 2
          chance: 100
    break_tools_blacklist:
    - WOODEN_PICKAXE
    - STONE_PICKAXE
    - IRON_PICKAXE
    mercurio_ore:
      type: mercurio_ore
      items:
        mercurio_ore:
          item: mercurio_ore
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100    
    maganesio_ore:
      type: maganesio_ore
      items:
        maganesio_ore:
          item: maganesio_ore
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100  
    azulgema_ore:
      type: azulgema_ore
      items:
        azulgema_ore:
          item: azulgema_ore
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100  
    rubyroja_ore:
      type: rubyroja_ore
      items:
        rubyroja_ore:
          item: rubyroja_ore
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100 
    gemarosa_ore:
      type: gemarosa_ore
      items:
        gemarosa_ore:
          item: gemarosa_ore
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100  
    plutoneo_ore:
      type: plutoneo_ore
      items:
        plutoneo_ore:
          item: plutoneo_ore
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    lechore_ore:
      type: lechore_ore
      items:
        lechore_ore:
          item: lechore_ore
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100  
    granate_ore:
      type: granate_ore
      items:
        granate_ore:
          item: granate_ore
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    valkyrite_ore:
      type: valkyrite_ore
      items:
        valkyrite:
          item: valkyrite
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    tin_ore:
      type: tin_ore
      items:
        raw_tin:
          item: raw_tin
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    lead_ore:
      type: lead_ore
      items:
        raw_lead:
          item: raw_lead
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    silver_ore:
      type: silver_ore
      items:
        raw_silver:
          item: raw_silver
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    tungsten_ore:
      type: tungsten_ore
      items:
        raw_tungsten:
          item: raw_tungsten
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    platinum_ore:
      type: platinum_ore
      items:
        raw_platinum:
          item: raw_platinum
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    #---FACE 2
    demonite_ore:
      type: demonite_ore
      items:
        raw_demonite:
          item: raw_demonite
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    meteorite_ore:
      type: meteorite_ore
      items:
        raw_meteorite:
          item: raw_meteorite
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    hellstone_ore:
      type: hellstone_ore
      items:
        raw_hellstone:
          item: raw_hellstone
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    #---FACE 3
    cobalt_ore:
      type: cobalt_ore
      items:
        raw_cobalt:
          item: raw_cobalt
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    palladium_ore:
      type: palladium_ore
      items:
        raw_palladium:
          item: raw_palladium
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    orichalcum_ore:
      type: orichalcum_ore
      items:
        raw_orichalcum:
          item: raw_orichalcum
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    mythril_ore:
      type: mythril_ore
      items:
        raw_mythril:
          item: raw_mythril
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    adamantite_ore:
      type: adamantite_ore
      items:
        raw_adamantite:
          item: raw_adamantite
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    titanium_ore:
      type: titanium_ore
      items:
        raw_titanium:
          item: raw_titanium
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    #---FACE 4
    chlorophyte_ore:
      type: chlorophyte_ore
      items:
        raw_chlorophyte:
          item: raw_chlorophyte
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    #shroomite_ore
    luminite_ore:
      type: luminite_ore
      items:
        raw_luminite:
          item: raw_luminite
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    cobalt_ore_deepslate:
      type: cobalt_ore_deepslate
      items:
        raw_cobalt:
          item: raw_cobalt
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    palladium_ore_deepslate:
      type: palladium_ore_deepslate
      items:
        raw_palladium:
          item: raw_palladium
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    orichalcum_ore_deepslate:
      type: orichalcum_ore_deepslate
      items:
        raw_orichalcum:
          item: raw_orichalcum
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    mythril_ore_deepslate:
      type: mythril_ore_deepslate
      items:
        raw_mythril:
          item: raw_mythril
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    adamantite_ore_deepslate:
      type: adamantite_ore_deepslate
      items:
        raw_adamantite:
          item: raw_adamantite
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    titanium_ore_deepslate:
      type: titanium_ore_deepslate
      items:
        raw_titanium:
          item: raw_titanium
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
    chlorophyte_ore_deepslate:
      type: chlorophyte_ore_deepslate
      items:
        raw_chlorophyte:
          item: raw_chlorophyte
          min_amount: 1
          max_amount: 2
          chance: 100
      exp:
        exp_1:
          min_amount: 0
          max_amount: 3
          chance: 100
worlds_populators:
  tin_ore:
    block: tin_ore
    worlds:
    - mazmorras
    replaceable_blocks:
    - SPONGE
    chunk_chance: 80.0
    max_height: 243
    min_height: 217
    vein_blocks: 4
    chunk_veins: 2
  lead_ore:
    block: lead_ore
    worlds:
    - mazmorras
    replaceable_blocks:
    - SPONGE
    chunk_chance: 80.0
    max_height: 243
    min_height: 217
    vein_blocks: 4
    chunk_veins: 2
  silver_ore:
    block: silver_ore
    worlds:
    - mazmorras
    replaceable_blocks:
    - SPONGE
    chunk_chance: 75.0
    max_height: 243
    min_height: 217
    vein_blocks: 4
    chunk_veins: 2
  tungsten_ore:
    block: tungsten_ore
    worlds:
    - mazmorras
    replaceable_blocks:
    - SPONGE
    chunk_chance: 75.0
    max_height: 217
    min_height: 174
    vein_blocks: 4
    chunk_veins: 2
  platinum_ore:
    block: platinum_ore
    worlds:
    - mazmorras
    replaceable_blocks:
    - SPONGE
    chunk_chance: 60.0
    max_height: 217
    min_height: 174
    vein_blocks: 3
    chunk_veins: 2
  demonite_ore:
    block: demonite_ore
    worlds:
    - mazmorras
    replaceable_blocks:
    - SPONGE
#    biomes:
#    - MUSHROOM_FIELDS
    chunk_chance: 50.0
    max_height: 217
    min_height: 174
    vein_blocks: 3
    chunk_veins: 1
  meteorite_ore:
    block: meteorite_ore
    worlds:
    - mazmorras
    replaceable_blocks:
    - SPONGE
#    biomes:
#    - STONY_PEAKS
#    - JAGGED_PEALS
#    - FROZEN_PEAKS
    chunk_chance: 80.0
    max_height: 172
    min_height: 148
    vein_blocks: 1
    chunk_veins: 1
  hellstone_ore:
    block: hellstone_ore
    worlds:
    - mazmorras
    replaceable_blocks:
    - SPONGE
    chunk_chance: 50.0
    max_height: 172
    min_height: 148
    vein_blocks: 1
    chunk_veins: 1
  cobalt_ore:
    block: cobalt_ore
    worlds:
    - mazmorras
    replaceable_blocks:
    - SPONGE
#    biomes:
#    - DRIPSPONGE_CAVES
    chunk_chance: 50.0
    max_height: 148
    min_height: 113
    vein_blocks: 3
    chunk_veins: 1
  cobalt_ore_deepslate:
    block: cobalt_ore_deepslate
    worlds:
    - mazmorras
    replaceable_blocks:
    - SPONGE
#    biomes:
#    - DRIPSPONGE_CAVES
    chunk_chance: 50.0
    max_height: 148
    min_height: 113
    vein_blocks: 3
    chunk_veins: 1
  palladium_ore:
    block: palladium_ore
    worlds:
    - mazmorras
    replaceable_blocks:
    - SPONGE
#    biomes:
#    - DRIPSPONGE_CAVES
    chunk_chance: 50.0
    max_height: 148
    min_height: 113
    vein_blocks: 3
    chunk_veins: 1
  palladium_ore_deepslate:
    block: palladium_ore_deepslate
    worlds:
    - mazmorras
    replaceable_blocks:
    - SPONGE
#    biomes:
#    - DRIPSPONGE_CAVES
    chunk_chance: 50.0
    max_height: 148
    min_height: 113
    vein_blocks: 3
    chunk_veins: 1
  orichalcum_ore:
    block: orichalcum_ore
    worlds:
    - mazmorras
    replaceable_blocks:
    - SPONGE
#    biomes:
#    - LUSH_CAVES
    chunk_chance: 50.0
    max_height: 109
    min_height: 89
    vein_blocks: 3
    chunk_veins: 1
  orichalcum_ore_deepslate:
    block: orichalcum_ore_deepslate
    worlds:
    - mazmorras
    replaceable_blocks:
    - DEEPSLATE
    - TUFF
#    biomes:
#    - LUSH_CAVES
    chunk_chance: 50.0
    max_height: 0
    min_height: -64
    vein_blocks: 3
    chunk_veins: 1
  mythril_ore:
    block: mythril_ore
    worlds:
    - mazmorras
    replaceable_blocks:
    - SPONGE
#    biomes:
#    - LUSH_CAVES
    chunk_chance: 50.0
    max_height: 109
    min_height: 89
    vein_blocks: 3
    chunk_veins: 1
  mythril_ore_deepslate:
    block: mythril_ore_deepslate
    worlds:
    - mazmorras
    replaceable_blocks:
    - SPONGE
#    biomes:
#    - LUSH_CAVES
    chunk_chance: 50.0
    max_height: 109
    min_height: 89
    vein_blocks: 3
    chunk_veins: 1
  adamantite_ore:
    block: adamantite_ore
    worlds:
    - mazmorras
    replaceable_blocks:
    - SPONGE
    chunk_chance: 50.0
    max_height: 109
    min_height: 89
    vein_blocks: 1
    chunk_veins: 1
  adamantite_ore_deepslate:
    block: adamantite_ore_deepslate
    worlds:
    - mazmorras
    replaceable_blocks:
    - SPONGE
    chunk_chance: 50.0
    max_height: 109
    min_height: 89
    vein_blocks: 1
    chunk_veins: 1
  titanium_ore:
    block: titanium_ore
    worlds:
    - mazmorras
    replaceable_blocks:
    - SPONGE
    chunk_chance: 50.0
    max_height: 109
    min_height: 89
    vein_blocks: 1
    chunk_veins: 1
  titanium_ore_deepslate:
    block: titanium_ore_deepslate
    worlds:
    - mazmorras
    replaceable_blocks:
    - SPONGE
    chunk_chance: 50.0
    max_height: 109
    min_height: 89
    vein_blocks: 1
    chunk_veins: 1
  chlorophyte_ore:
    block: chlorophyte_ore
    worlds:
    - mazmorras
    replaceable_blocks:
    - SPONGE
#    biomes:
#    - JUNGLE
#    - SPARSE_JUNGLE
#    - BAMBOO_JUNGLE
    chunk_chance: 50.0
    max_height: 109
    min_height: 89
    vein_blocks: 3
    chunk_veins: 2
  chlorophyte_ore_deepslate:
    block: chlorophyte_ore_deepslate
    worlds:
    - mazmorras
    replaceable_blocks:
    - SPONGE
#    biomes:
#    - JUNGLE
#    - SPARSE_JUNGLE
#    - BAMBOO_JUNGLE
    chunk_chance: 50.0
    max_height: 113
    min_height: 109
    vein_blocks: 3
    chunk_veins: 2
  luminite_ore:
    block: luminite_ore
    worlds:
    - mazmorras
    replaceable_blocks:
    - SPONGE
    chunk_chance: 50.0
    max_height: 100
    min_height: 0
    vein_blocks: 1
    chunk_veins: 1

Other files, you can drag and drop them here to upload. (optional)

null

Screenshots/Videos (you can drag and drop files or paste links)

null

Akiranya commented 1 year ago

Basically you misconfigured. You might need to delete these lines from your loot config:

loots:
  blocks:
    obsidiana:
      type: OBSIDIAN
      items:
        rubyroja_ore:
          item: OBSIDIAN
          min_amount: 1
          max_amount: 2
          chance: 100
    break_tools_blacklist:  < ---- delete this
    - WOODEN_PICKAXE < ---- delete this
    - STONE_PICKAXE < ---- delete this
    - IRON_PICKAXE < ---- delete this
dinobossytnew commented 1 year ago

But I don't want the obsidian to break with those spikes.

dinobossytnew commented 1 year ago

According to the wiki example you can.

Basically you misconfigured. You might need to delete these lines from your loot config:

loots:
  blocks:
    obsidiana:
      type: OBSIDIAN
      items:
        rubyroja_ore:
          item: OBSIDIAN
          min_amount: 1
          max_amount: 2
          chance: 100
    break_tools_blacklist:  < ---- delete this
    - WOODEN_PICKAXE < ---- delete this
    - STONE_PICKAXE < ---- delete this
    - IRON_PICKAXE < ---- delete this

According to the wiki example you can.

LoneDev6 commented 1 year ago

You set it with a wrong indentation. Please, please, please use the VSCODE extension, do not edit files manually. image

In the next update I'll catch this error and throw a more readable error for you to easily identify the misconfigured loot entry.

VSCODE extension: https://marketplace.visualstudio.com/items?itemName=LoneDev.ia-vscode