Updated to Minecraft 1.21.3
Datapack now works on the latest version of Minecraft
Buffed throwable recipes
Crafting recipes now grant 2 or more items instead of just 1
Increased speed of the Rocket projectile type
The Rocket projectile type now travels much faster
Added Grenade projectile type
This projectile type is a projectile like the rocket, but moves slower and has a downward curve
To use this new projectile type, set the stat to 15
Fixed recoil being applied before rocket projectiles were shot
Now, recoil is properly applied after the player has shoot the rocket
Fixed guns not shooting through tripwire and ladders bug
Gun projectiles were unable to shoot through string/tripwire and ladders
Fixed Ray Guns and Bazookas not shooting through water bug
All Ray Guns and the Bazooka were unable to shoot through water
Fixed Bazookas shooting through leaves bug
Rockets would go through leaves, this was unintentional
Fixed incorrect Medkit lore
The description of the medkit now displays the correct effects
Fixed turrets not shooting through water bug
All turrets were unable to shoot through water
The Perdition Turret is still unable to shoot through water
Fixed placed turret deleting bug
If a turret was placed down on a block that another turret existed on, the turret would not be given back to the player
Fixed projectiles being able to hit display entities
All projectiles could hit all display entities
Fixed spammable throwables while falling bug
Players could spam-throw throwables if they were falling
Added new Bazooka and Rocket models
Finally, the Bazooka and Rocket have new 3D models
New models fit the style of the other standard guns
Added Dynamic Sound Volume
The range at which shoot sounds can be heard now depends on the range of the gun
For example, gun range of 30 means the sound can be heard a little over 30 blocks away
The reload sound is staying at a sound radius of 16 blocks
Added armor penetration mechanic
Certain damage types now have damage reduced dynamically depending on the target's armor
Bullet Light will be reduced more than Bullet Standard or Bullet Heavy
Laser Standard will be reduced more than Laser Strong
Added Pellets projectile type
Particles display in a sparse cloud, instead of a line
Larger hitbox detection radius and can damage multiple entities
Each entity damage will receive full damage, but projectile range is decreased by ~4
Updated guns to use new damage types
Shotgun & Assault Rifle use Bullet Light, Sniper Rifle uses Bullet Heavy, Laser Rifle uses Laser Strong
Improved rocket projectile type
The rocket projectile type will now shoot a slow-moving projectile instead of a hitscan
This change may be cooler, but it may be laggier, so please report anything you notice
Increased gun damage
Pistol 7 -> 9
Assault Rifle 3 -> 4
Sniper Rifle 21 -> 22
Laser Pistol 21 -> 22
Laser Rifle 28 -> 30
Optimized shoot function
Removed unnecessary commands
Reduced number of steps raycasts take when traveling
This change may cause issues with hitbox detection (block and entity)
Please report any issues you find
(Keep in mind that guns with longer ranges with higher rates of fire will be laggier)
Added more recoil options
Added 7 new recoil options
Below, are the ints in order from smallest to greatest recoil
0,4,1,5,6,2,7,3,8,9,10
Flame damage type now ignores armor
Buffs Flamethrowers
Zooming now reduces recoil
When the player zooms with a gun, it can give a different level of recoil
In order for a gun to use this feature, it must have the two below custom data tags:
gbg_gun_version=2
, gbg_zoom_recoil_strength=[0-10]
Added turret despawning system
All turrets, once destroyed, will only last for a limited amount of time before despawning
The time it takes can be changed in the config menu /function config:gbg
Buffed ammo crafting recipes
All ammo crafting recipes give more ammo items when crafted
Updated GBG+GBZ Detection scoreboards
Cleaner system; GBG V1.23 will only work with GBZ V1.16.1 and above
Fixed Auto Turret shooting owner bug
Auto Turrets would shoot owners if they were between 20-25 blocks away
Fixed Perdition Turrets spawning fireballs above players
Frozen fireballs would be spawned above players when hit by the Perdition Turret
Fixed item models going into ground
When dropped, some item models would disappear into the ground
Fixed Grenade and Pipe Bomb spawning GBZ zombies bug
When GBG was played with GBZ V1.16, the Grenade and Pipe Bomb would spawn zombies on impact
Fixed broken gun hitbox detection
Gun had defective hitbox detection and would often hit targets as much as a block away This system also had the possibility to ignore closer targets.
Updated gun passable block list
Guns can now shoot through chains, coral plants, end rods, flower pots & potted plants, amethyst buds & clusters, sea pickles, red & brown mushrooms, crimson & warped fungus, nether sprouts, warped & crimson roots, hanging roots, frogspawn, candles & cake candles, banners, player heads, moss carpet, mangrove propagules, iron bars, cobwebs, powdered snow, soul fire, and glow berry vines
Fixed Minor Infection Cure killing zombie animals instead of curing them When the player used a Minor Infection Cure on a zombie animal, it would instantly kill them
Fixed cured Zombie Pig name being lowercase
When cured, the Zombie Pig's name was lowercase
Added support for GBZ V1.16
Added support for the upcoming Gamingbarn's Zombies update
Changed Landmine touch detection system
Landmines had a chance before to trigger even if not fully touched.
Fixed knockback resistant players bug
Players shot by a Flamethrower or gun with the Fire damage type would be forever immune to knockback
Fixed invincible fireballs bug
When players were shot with the Flamethrower it could occasionally spawn an unmovable fireball at their head
Made reloading in creative mode not consume ammo items
Now, not only does reloading in creative not require ammo, it doesn't use it up either
Fixed gun zoom persisting bug
The zoom effect would still be applied to players even after they stopped sneaking if they stopped holding the gun
Fixed left-handed player third-person view looking right-handed
Left-handed players, when holding guns, would look like the gun was held in their right hand
Updated Modern Guns and Pipe Guns assets
Added new gun models and sounds for guns Other small tweaks to various files
Fixed high damage guns killing multiple mobs in one shot
If the target mob died to the shot, the projectile would keep going
Fixed FN Scar Reload Sound not correct bug
The FN Scar used the Barrett M82 reload sound
Added Bullet Light projectile type
Functionally the same as bullet, but spawns less particles Useful for guns that have a rate of fire of 1
Switched Minigun to use Bullet Light projectile type
Fixed reloading without needing ammo bug
The player could reload guns without needing the appropriate ammo item
Added creative reloading feature
Now, if the player is in creative mode, they don't need ammo to reload their guns
Modifed raycast passable block list
Cleaned up tag lists and made many new entries All projectiles can now pass through trapdoors, doors, pressure plates, carpets, fences, fence gates, buttons, kelp plants, dead bushes, and leaves
Fixed left-handed players not being able to see guns in first-person
When a player had set their main hand to left, many guns had visibility issues
Tweaked Pipe Guns copper texture
Pipe Guns are more vibrant now
Fixed turret pickup not working
When the player would try to pick up a turret, it would not drop properly
Fixed Auto Turret model breaking when repaired
When an Auto Turret changed phases and then was repaired, the model would not display properly
Fixed Armor not updating upon repair to functional bug The armor attribute of turrets would not update when a damage turret was repaired to functional
Fixed underwater rockets blowing up blocks bug
Rockets would damage blocks when used underwater
Added Underwater Explosion damage type
Functions the same as Explosion, but will damage blocks when used underwater This damage type will not damage blocks if the projectile hits an entity underwater, it will only break blocks if the projectile hits a block
Added Purple projectile type
It's purple
Fixed C4 and Landmine explosions killing each other bug
When multiple C4s exploded at once, the creeper used to create the explosion could die
Nerfed C4 Explosion size
Lowered radius from 5 to 3
Changed 44 Magnum Ammo for Modern Guns
Fixed gun sounds cutting off bug
When certain gun sounds were used in 1-tick guns, they would be cut off
Made Large Laser projectile type actually large
Before, it was the same size as the regular laser projectile type
Optimized projectile raycasts
Should result in increased performance and less lag on multiplayer servers
Fixed Perdition Turret not changing model when destroyed
When the Perdition Turret entered the destroyed phase, its model wouldn't change
Fixed Perdition Turret dummy HP shield bug
The Perdition Turret would have an addition 60 hp of damage it could sustain before taking actual damage
Added custom Explosion Sound and particles to Perdition Turret death
When the Perdition Turret changes to be destroyed, it now plays another sound effect and some particles appear
Fixed reloading ammo tag abuse bug
The player could reload a gun, even if they didn't have the proper ammo item It would only matter if the player had an item with the proper ammo tag
Added 4 new Reload Types
There are 4 new reload types that can be used by players with custom guns
Partial 25/50/75 (3/4/5) - Refills the gun 25/50/75% at the cost of 1 ammo item
Bullets (6) - Refills the gun completely at the cost of 1 ammo item per shot the gun needs refilled
Buffed Laser Pistol and Laser Rifle
The Laser Pistol max ammo is now 8 and now uses the partial 50 reload type The Laser Rifle damage has been increased to 28 from 27
Tweaked Assault Laser Rifle
The max ammo has been raised to 48, but the gun now uses the partial 50 reload type
Updated to Minecraft 1.21
Datapack now works on the latest version of Minecraft
Fixed dead players using medical items bug
When a player died whilst using a medical item they would continue using the item until it disapeared This issue was also present with throwables
Fixed wooden axe backwards bug
The vanilla wooden axe sprite was backwards
Fixed give:ray_gun_blue giving Ray Gun: Red bug
The give function for the Ray Gun: Blue gave the wrong gun
Optimized recoil system
Changed the recoil system to immediately apply the camera motion
This was done in order to optimize the shoot function of the datapack
If you feel like the new recoil values are not good, please give feedback
Tweaked Modern Gun models
Made several small changes to many of the Modern Gun models
Added melee weapon textures and models
They currently aren't used for anything, but will be in the future