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

PlaceEvent item becoming invisible #16

Open
Zergmazter opened this issue Jun 19, 2019 · 1 comment
Open

PlaceEvent item becoming invisible #16

Zergmazter opened this issue Jun 19, 2019 · 1 comment

Comments

@Zergmazter
Copy link

    {
    "block": "contenttweaker:hot_iron_ingot",
    "setblock": {"block": "minecraft:air"},
    "sethelditem": {"item": "contenttweaker:hot_iron_ingot"}
    }

On the placeEvent json this bit of code allows the item to look as if it was being returned to your hand. The problem is that it only works correctly if its not returning the same item. If you place stone and return dirt to your hand, there wont be an issue. If you place stone and return stone to your hand, the stone will be invisible, yet still here. Only way to fix is to open your inventory and left click the item out of the slot, then it becomes visible once again.

I know this action can be done similarly in simpler ways. The way I'm doing it is necessary ,because it compliments a chain of actions that would not be possible if done any other way.

@Zergmazter
Copy link
Author

I could probably work something out. Just thought I'd let you know this seems to be an issue. Not sure if it's worth fixing if it might break something.

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

1 participant