Menu

Learn how to start playing on JartexNetwork in just 60 seconds!
Play Now
Learn how to join our server
and start playing in 60 seconds
Play Now
CLICK TO JOIN JOIN OUR DISCORD
0
0

Custom potions kick solution

Cinamin

Member
Joined
January 28, 2022
Messages
61
Points
14
Age
16
So I've seen people use custom pots to make their game crash.
This will get you banned do not abuse it. -Staff

This is the error on 1.20.5 + and 1.21.x

Now here is the solution!

Use versions below 1.20.4
meaning, 1.20.3, 1.20.2, 1.20.1, 1.20, 1.19x, 1.18x, 1.17x works fine


I highly recommend you guys use these versions for now.

Here is why it causes an issue for 1.20.5+ and 1.21.x

Key Changes in Minecraft 1.20.5:​


  1. Transition from NBT to Item Components: The traditional tag field in item data has been replaced with structured components. This change affects commands like /give, /clear, and others that utilize item NBT data. For example, an item previously defined as iron_axe{Damage:10} is now represented as iron_axe[minecraft:damage=10].
  2. Mob Effect Identifiers: Mob effects have transitioned from numeric IDs to namespaced IDs. For instance, the effect previously identified by Id:1 (Speed) is now id:"minecraft:speed".
  3. Field Naming Conventions: NBT field names have been standardized from PascalCase to snake_case. Examples include CustomPotionEffects becoming custom_effects, and CustomPotionColor changing to custom_color.
  4. Introduction of potion_contents Component: Potion-related data has been encapsulated within a new potion_contents component. This component includes fields like potion, custom_color, and custom_effects.

These changes mean that custom potions created using the old NBT format (pre-1.20.5) are incompatible with Minecraft versions 1.20.5 and above. Attempting to use such potions results in errors like DecoderException: Failed to decode packet 'clientbound/minecraft:update_mob_effect', as the client cannot interpret the outdated data format.


Resolution:​


To ensure compatibility with Minecraft 1.20.5 and later versions:


Update Custom Potion Definitions: Revise all custom potion data to align with the new component-based structure, using namespaced IDs and snake_case field names.
 

DakshWagh

Donator
Donator
Joined
September 30, 2021
Messages
1,471
Points
100
IGN
DakshWagh
make a suggestion regarding it so devs and look on your idea and implement it
 
AUTHOR
AUTHOR
Cinamin

Cinamin

Member
Joined
January 28, 2022
Messages
61
Points
14
Age
16
This is a bug, I submitted a bug report.
 

Top