Started by
Kazuki
on
Topic category: Help with Minecraft modding (Java Edition)
I have a hard time checking for when the player's select block is water (source)
so i just need to know how to make bottles pick up water
Topic category: Help with Minecraft modding (Java Edition)
I have a hard time checking for when the player's select block is water (source)
so i just need to know how to make bottles pick up water
when you right click in the air make a procedure to check for a fluid block, in this case water, in ray-tracing distance, and then replace the item with the filled bottle
I know how bottles work but i can't make the fluid thing work, it works for every block. When i alter it a bit it give you filled bottle but still swings hands which is strange because they are both in the same "if do" block
You mean when you right click a block? Instead of that make it so that you have a global procedure that checks every time a player right clicks. If glass bottle is in hand, check if their is a fluid block of your specific type in ray tracing distance (play around with the distance to make it the same as block reach distance, I believe 4.5), and then remove one glass bottle and give you a filled bottle.