magnen77's Sniper Rifle
Adds Configurable sniper rifle in minecraft using only: datapack & resoursepack
magnen77's Sniper Rifle
This datapack adds a Configurable Sniper Rifle with a bullet that increases its damage based on the distance traveled.
How use: Sneak - scope. RMB(Use button) - shoot.
How get without craft: /loot give @s loot sniper:ammo308 - for bullets. /loot give @s loot sniper:sniper_rifle - for sniper rifle.
Settings: 1) /scoreboard objectives setdisplay sidebar sniper.settings To view all settings. 2) /scoreboard players set $<setting_name> sniper.settings <value> To set the value of setting. 3) /scoreboard objectives remove sniper.settings & /reload To reset the settings. About the settings: 1) $angle - the angle at which the bullet falls. 2) $lifetime - the "lifetime" of bullet. 3) $twisting - a time when the bullet is not subject to physics. 4) $base_damage - minimum bullet damage. 5) $damage_k - the value by which the bullet's damage increases each tick. 6) $deflection - bullet deviation during an unaimed shot. 7) $tracec_per_tick - the number of bullet teleports is 0.4 blocks per tick (roughly speaking, the speed of a bullet) 8) $max_damage - hmmm... Maximum bullet damage, probably...