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

Bedrock clients cannot "eat" usually inedible items with a modified food component that allows a item to be "eaten". #4890

Open
underscoreBon opened this issue Jul 23, 2024 · 7 comments
Labels
Confirmed Bug The bug reported is confirmed and able to be replicated. Missing Client Feature When the Bedrock client is missing a feature that Java Edition has

Comments

@underscoreBon
Copy link

Describe the bug

Bedrock clients cannot consume usually inedible items with a modified food component that allows a item to be "eaten".

I have a datapack on a server that has items that are "usable" with right click by "eating" said item. (yea, funny workaround i know)
but I experimented on the Bedrock side and... they cannot "eat" inedible-edible items (they can still eat food-component-modified edible items though)

To Reproduce

1. Get yourself a inedible item that has a modified food component. (either on a Java or Bedrock Client)
Example: /give @p diamond[food={nutrition:1,saturation:1,can_always_eat:true,eat_seconds:1}] 1
2. Give the Bedrock Player the inedible-edible item
3. Attempt to consume the Item on the bedrock side

If this sounds confusing to you, I'm confused too, while writing this.

Expected behaviour

You'd expect the Bedrock player to "Eat" the item... but it does not for some reason...
(Java players are just fine)

Screenshots / Videos

No response

Server Version and Plugins

Server: Paper 1.21-109-master@5a5035b

Geyser Dump

https://dump.geysermc.org/X717oPnEQcZrpF3FC3g2hpcaTej3fmW3

Geyser Version

2.4.0-b617 (git-master-1dd9ba3)

Minecraft: Bedrock Edition Device/Version

Tested on Windows 11 Version, but im pretty sure it can happen in other bedrock clients

Additional Context

I'm pretty sure that this is a "bedrock limitation" if you can't find some sort of work around (or that I'm missing something) but if you can't fix it, let me know.

@Camotoy
Copy link
Member

Camotoy commented Jul 23, 2024

So the main issue is that Bedrock does not have dynamic components so we can't make an item edible unless it's pre-defined as edible.

But, um, can you link the datapack? In the event there's some cheap workaround for Bedrock players?

@underscoreBon
Copy link
Author

You can run the command i just listed on the java side and give the modified diamond to the bedrock player

@Camotoy
Copy link
Member

Camotoy commented Jul 23, 2024

I have a datapack on a server that has items that are "usable" with right click by "eating" said item. (yea, funny workaround i know)

Referring to this - I'm curious to know more.

@onebeastchris
Copy link
Member

With the PR here: #4655 , you could create a "custom item" using custom model data on the vanilla item. If you give it the vanilla texture/name, you could then modify the custom item properties to make it edible/wearable/etc

@underscoreBon
Copy link
Author

I have a datapack on a server that has items that are "usable" with right click by "eating" said item. (yea, funny workaround i know)

Referring to this - I'm curious to know more.

I used the technique used in this video for the right click detect

@underscoreBon
Copy link
Author

With the PR here: #4655 , you could create a "custom item" using custom model data on the vanilla item. If you give it the vanilla texture/name, you could then modify the custom item properties to make it edible/wearable/etc

Seems like i have to do some config stuff (sarcastic yay)

@onebeastchris
Copy link
Member

Unfortunately not possible just yet, but will be in the future. While not ideal, it would atleast provide a way to have a workaround

@onebeastchris onebeastchris added Confirmed Bug The bug reported is confirmed and able to be replicated. Missing Client Feature When the Bedrock client is missing a feature that Java Edition has labels Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Confirmed Bug The bug reported is confirmed and able to be replicated. Missing Client Feature When the Bedrock client is missing a feature that Java Edition has
Projects
None yet
Development

No branches or pull requests

3 participants