ModularMods / ModularWarfare

Gun mod & more - Minecraft 1.12.2
Other
39 stars 25 forks source link

add attribute allowSprint to flashlight #1

Closed KeNickGong closed 3 years ago

KeNickGong commented 3 years ago

add a "allowSprint" attribute (Boolean) to flashlight type attachment. Basically it can be set to true, false or null. True/false forcing the attached gun to be able/unable to fire while sprinting, and null just let it go with the gun's setting.

This implementation should be helpful when making tactical laser, adding a tactical laser to your gun allows you to sprint firing, something like that.