Create

Create

86M Downloads

Potato Cannon Ammo Bug

LaGz4643 opened this issue ยท 1 comments

commented

Describe the Bug

When firing a Potato Cannon using the last item in a stack, the fired Potato Projectile's item value is "minecraft:air" and does no damage to entities, even though the ammo is consumed. This only occurs when shooting from an ammo stack of 1, even if you have more of that ammo type somewhere else in your inventory. This also only occurs on the server side. The client sees a Potato Projectile with the correct ammo type, and the projectile is only updated when reloading the world, where it then appears invisible, but still makes an impact sound and can hit an entity (the entity takes damage similar to being hit with a snowball, where it flashes red but takes no damage, and is not set on fire or given the expected effects).

Reproduction Steps

  1. Place a Potato Cannon in your hotbar and place 1 Potato (or any valid ammo) in each remaining slot.
  2. Summon an entity with 1 health /summon cow ~ ~ ~ {Health:1b}
  3. Set your game mode to Survival
  4. Fire at the entity. The entity flashes red but is not killed.
  5. You can also fire the projectile straight up and run the command:
    /data get entity @e[type=create:potato_projectile,limit=1,sort=nearest] Item

Expected Result

The fired Potato Projectile should do damage and apply the expected effects.

Screenshots and Videos

No response

Crash Report or Log

No response

Operating System

Windows 11

Mod Version

0.5.0g

Minecraft Version

1.18.2

Forge Version

40.1.60

Other Mods

This issue occurs with only Create and Flywheel installed.

Additional Context

No response

commented

This bug also occurs in 1.19.2 with Create 0.5.0g