Started by
Cloud140
on
Topic category: Help with Minecraft modding (Java Edition)
Hi.
I have problem with checking how much player has ammo in inventory and loading certain ammo to the gun.
I made this but if player has one ammo item in inventory he reloading max ammo.
When i wanted add Tag to ammo and make with NBT tag, checking Ammo NBT tag, its was failure.
Here we have shoting procedrue if will need it:
I need checking how much have player ammo in inventory. For example, if max ammo has 7 slots, i have 5 bullets in inventory, after reloading i will be have 5/7 available shots.
In pistol its not very bad but i made 30 bullets rifle and now i have problem.
How edit this reload procedure?
Edited by Cloud140 on Sun, 03/27/2022 - 15:18
I solved myself.
Subject to close
Here you have solved procedure:
Can you show me " PistolAmmoSndVersionReloadOnKeyPressed" proceduce?