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

[Bug]: IMPORTANT Dupe Glitch FTB Chunks x FTB Teams x CREATE mod Wrench #1162

Open
Arginou57 opened this issue May 4, 2024 · 7 comments · Fixed by Creators-of-Create/Create#6467
Labels
1: Compatibility Compat issue between mods. FTB Chunks state: Other Mod Other mod's issue.

Comments

@Arginou57
Copy link

Mod

FTB TEAMS and FTB CHUNKS

Mod version

ftb-chunks-forge-2001.2.7.jar ftb-teams-forge-2001.2.0.jar ftb-library-forge-2001.1.5.jar

Forge / Fabric version

forge-1.20.1-47.2.20

Modpack & version

https://www.curseforge.com/minecraft/modpacks/serveur-create-france-communauty-friends-coop

What issue are you having?

When 2 player have a claims each other, and are not allies.
If i enable Interact mod in my chunk on PUBLIC
The other player can use the CREATE Wrench and duplicate all create blocks

Crashlogs

No response

Steps to reproduce

1 Claim a chunks
image
2 Open inventories
3 Go to myteams upper left
image

4 Go to Settings
image

5 Put Block Interact mod on Public
image

6 Bring Create block on the ground
image

7 And give other player a wrench
image

8 And let him sneak click on blocks to dupe all blocks he want !
image
image

Anything else to note?

No response

@Arginou57 Arginou57 changed the title [Bug]: IMPORTANT Dupe Glitch Create mod Wrench [Bug]: IMPORTANT Dupe Glitch FTB Chunks x FTB Teams x CREATE mod Wrench May 4, 2024
@wolfieboy09
Copy link

That is a CRAZY bug

@Arginou57
Copy link
Author

That is a CRAZY bug

Yes lol it's just like creative mod ^^

@MadSciSlack
Copy link

Wow...

@desht
Copy link
Contributor

desht commented May 6, 2024

This isn't a bug in FTB Chunks itself. The problem is an unwanted interaction between the way Create's wrench drops blocks, and how Forge (badly) handles the using of the item.

  • The item's action (to break the block and put a copy of it into the player's inventory) is run first.
  • Then Forge is firing a block place event including the block snapshot of the broken block. FTB Chunks receives this event, and correctly cancels it.
  • But Forge interprets this event cancellation as a failure in using the item, and restores the original block snapshot, putting the broken block back in place (and the player keeps the broken item).

(the above is happening in the ForgeHooks#onPlaceItemIntoWorld method, for reference)

I don't see a simple fix for this problem. The short-term workaround is to blacklist the Create wrench item, by adding it to the ftbchunks:right_click_blacklist item tag. I will do some more investigation and update this if I find anything out. It's probably also worth you raising an issue with Create to see if there's anything they can do.

@desht desht added FTB Chunks 1: Bug Problem with the usage of a mod. 1: Compatibility Compat issue between mods. and removed 1: Bug Problem with the usage of a mod. labels May 6, 2024
@Arginou57
Copy link
Author

Arginou57 commented May 6, 2024

Thanks for the informations, temporary i may use the ftbchunks:right_click blacklist, so where do i need to put this config ? :)

@Arginou57
Copy link
Author

Thanks for the informations, temporary i may use the ftbchunks:right_click blacklist, so where do i need to put this config ? :)

This isn't a bug in FTB Chunks itself. The problem is an unwanted interaction between the way Create's wrench drops blocks, and how Forge (badly) handles the using of the item.

  • The item's action (to break the block and put a copy of it into the player's inventory) is run first.
  • Then Forge is firing a block place event including the block snapshot of the broken block. FTB Chunks receives this event, and correctly cancels it.
  • But Forge interprets this event cancellation as a failure in using the item, and restores the original block snapshot, putting the broken block back in place (and the player keeps the broken item).

(the above is happening in the ForgeHooks#onPlaceItemIntoWorld method, for reference)

I don't see a simple fix for this problem. The short-term workaround is to blacklist the Create wrench item, by adding it to the ftbchunks:right_click_blacklist item tag. I will do some more investigation and update this if I find anything out. It's probably also worth you raising an issue with Create to see if there's anything they can do.

@desht
Copy link
Contributor

desht commented May 6, 2024

temporary i may use the ftbchunks:right_click blacklist, so where do i need to put this config

It's an item tag, so you create a data pack for it.

Thinking about this some more, this can only be fixed in Create itself. The way the Create wrench drops blocks is flawed - just copying the block into the player inventory doesn't work if the region is protected and the subsequent place event gets canceled. So an issue to Create is needed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1: Compatibility Compat issue between mods. FTB Chunks state: Other Mod Other mod's issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants