trying to make a weapon, need some help making it work

Started by Raven78 on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 years ago
Joined Sep 2022
Points:
422

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
trying to make a weapon, need some help making it work

so im trying to make a weapon like a musket where you have an unloaded one, then when you right click it turns into a loaded one. after that when fired it will go back to unloaded. also will keep durability.

my unloading works, but the loading doesn't do anything.

also dont know how to make the durability persist between the two.

 

Active 1 year ago
Joined Aug 2022
Points:
458

User statistics:

  • Modifications: 1
  • Forum topics: 4
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 10
theoretically something like…
Sun, 05/28/2023 - 20:11

code

theoretically something like this should work

Active 2 years ago
Joined Sep 2022
Points:
422

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
oh i was kind close i didnt…
Mon, 05/29/2023 - 03:03

oh i was kind close i didnt have that second part