PikaMug / Quests

Easy-to-use, open-source plugin for the creation and execution of quests on Minecraft servers.
https://modrinth.com/plugin/quests.classic
MIT License
148 stars 108 forks source link

Quest "Block Breaking" stops counting at random numbers #2121

Closed LilSwiffer closed 1 year ago

LilSwiffer commented 1 year ago

What is your Quests version / build number (do not say "latest")?

4.8.2

Describe the problem and how to replicate it.

I created a quest called Coal Miner II, set the requirement to break 300 coal ore. It randomly stopped going up at 281 ores mined. So I lowered the requirement to 250, it then stopped going up at 240.

Any console errors to share?

No errors in console

If applicable, can you provide an example quest from quests.yml?

custom2:
    name: Coal Miner II
    ask-message: '- Mine 250 Coal Ore'
    finish-message: Well done!
    stages:
      ordered:
        '1':
          break-block-names:
          - COAL_ORE
          break-block-amounts:
          - 250
          break-block-durability:
          - 0
    rewards:
      money: 100000
      commands:
      - excellentcrates key give <player> quest_crate_key 2
PikaMug commented 1 year ago

How are you mining these blocks exactly? Diamond pick? Enchantments? Any "superpickaxe" plugins or stat boosts?

LilSwiffer commented 1 year ago

just a diamond pick, no enchants. There is a custom enchants plugin, however none are being used

LilSwiffer commented 1 year ago

Here is a short video showing whats happening https://youtu.be/_BUaYMNcetk

PikaMug commented 1 year ago

@LilSwiffer Thanks. What is the plugin dropping those Coal items? I'm getting the impression that it's preventing the block break event until you pick up the items (note in the video you left 6 coal on the ground which got deleted when you placed blocks over them). Could you remove that and the custom enchants plugin temporarily, and let me know if it's still an issue?

LilSwiffer commented 1 year ago

I was using UltimateStacker, however upon removal of the plugins (both custom enchants and Ultimate Stacker) the issue persists

PikaMug commented 1 year ago

Alright, I gave it a test and was half-right. When you place blocks back down, it subtracts from the total blocks broken. This is intentional to prevent "cheating" by just mining the same blocks over and over. If you like, this can be disabled in your quest by toggling Edit Options -> General -> Ignore blocks replaced once broken