Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite milking of cows #715

Open
3 tasks done
Aides123 opened this issue Aug 29, 2024 · 5 comments
Open
3 tasks done

Infinite milking of cows #715

Aides123 opened this issue Aug 29, 2024 · 5 comments
Labels
bug status: blocked Feature request / bug accepted but cannot be implemented until a dependency is updated

Comments

@Aides123
Copy link

Description of Bug

When you turn on /co inspect you can milk cows indefinitely.

Steps to Reproduce

Just turn on /co inspect, create a task with milking cows and try to milk.
This way it accrues your progress without milking.

Environment

  • Minecraft version: 1.20.4
  • Server software: PufferFish
  • Quests version: 3.15.2

Agreements

  • I am running the latest version of Quests
  • I am certain this issue is unique and a similar issue is not currently open
  • I am using a version of Minecraft which is supported by Quests

Other

https://youtu.be/7Rnm0afRiDM

@Aides123 Aides123 added bug status: needs investigating Bug report / feature request needs investigating and triage labels Aug 29, 2024
@Krakenied
Copy link
Collaborator

We already ignore cancelled event calls on MONITOR priority so there isn't (at least there shouldn't be - I will test it though) really much we can do.
image

@Krakenied
Copy link
Collaborator

One more question - do you use the proper task type? milking is the one meant to be used in such a task.

@Aides123
Copy link
Author

tasks:
milk:
type: "milking"
amount: 300

@Krakenied
Copy link
Collaborator

Krakenied commented Aug 29, 2024

I guess the issue is that CoreProtect cancels PlayerBucketFill, however they do not cancel PlayerInteractEntity.
https://github.com/PlayPro/CoreProtect/blob/edadebf8c24360cd88689ddbc2e56f1bb3533d53/src/main/java/net/coreprotect/listener/player/PlayerBucketFillListener.java#L19-L45

Quests utilize PlayerInteractEntity to provide more configuration options though.

If you don't care about mob spawn reason or whether it is a goat or a cow then you can set it like this:

tasks:
  milk:
    type: bucketfill
    amount: 300
    bucket: MILK_BUCKET
    exact-match: false

It should fix your issue (and it won't reset the progress as progress is stored by task name, which is milk) - however keep in mind that goats can still be used in both task types (unless you specified they can't in the milking one).

@Aides123
Copy link
Author

yeah works fine, thank you

@Krakenied Krakenied added help wanted status: blocked Feature request / bug accepted but cannot be implemented until a dependency is updated and removed status: needs investigating Bug report / feature request needs investigating and triage help wanted labels Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug status: blocked Feature request / bug accepted but cannot be implemented until a dependency is updated
Projects
None yet
Development

No branches or pull requests

2 participants