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

Denying PlaceHeldItem creates ghost blocks and items #431

Open
DootLoot opened this issue Jun 17, 2024 · 1 comment
Open

Denying PlaceHeldItem creates ghost blocks and items #431

DootLoot opened this issue Jun 17, 2024 · 1 comment

Comments

@DootLoot
Copy link

DootLoot commented Jun 17, 2024

Minecraft Version: 1.20.1
Mod Loader: Forge 1.20.1-47.2.17
Mod Version: 1.20-9.2.6

Description of the bug:
While playing with just InControl, if you go into the placeevents.json file and deny the ability to place a block with a item that has nbt, the item becomes invisible inside of the players inventory. Then, placing the same block using its item without the required nbt, a ghost block is created that doesn't go away after reloading. The only solution is to set the invisible block's position to another block.

How to replicate:

  1. In placeevents.json, create a rule to deny the place event if the held item has some nbt data.
    { "playerhelditem": { "item": "minecraft:carved_punpkin", "nbt": [ { "tag": "Unbreakable", "value": 1 } ] }, "result": "deny" }

  2. Reload InControl

  3. Give yourself the block item with nbt
    /give @s minecraft:carved_pumpkin{Unbreakable: 1}

  4. Place the item to create the ghost item

4.5) Place the item without nbt creates the ghost block

@McJty
Copy link
Collaborator

McJty commented Jun 19, 2024

The problem is that In Control is server side and doesn't cancel the event on the client. I need to figure out how I can do this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants