Started by
gugus_000
on
Topic category: Help with Minecraft modding (Java Edition)
Hey guys,
So I'm trying to make a gun mod, where you can combine bullets in a crafting table and make a magazine. The only problem is that I have no idea how to make the magazine be used up slowly. Thanks for answering!
Edited by gugus_000 on Fri, 01/29/2016 - 21:03
Try make in your magazine item NBT integer called "Capacity" and another called "Ammo".
On craft your magazine with bullets add to the nbt "Ammo" same value as how much player used bullets. when you shot and your magazine "Ammo" is > 0 , decrease "Ammo" by 1
You need to make a bullet and if the gun shoots, then "consume item from inventory".
G00D LUCK!
You'll need it...
He need combine its into a magazine
@#1 How exacly do you add an nbt integer?????
@#1.1
I think you use the math blocks for the nbt