Essentials icon indicating copy to clipboard operation
Essentials copied to clipboard

Update to Minecraft 1.20.6

Open JRoy opened this issue 10 months ago • 3 comments

this compiles and probably works but there is some things still left to do

  • [x] test banner itemdb
  • [x] fix potion itemdb (see todos)
  • [x] update item aliases

JRoy avatar Apr 30 '24 02:04 JRoy

cool

kotobubu avatar May 11 '24 12:05 kotobubu

com.mojang.brigadier.exceptions.CommandSyntaxException: Unknown item 'minecraft:' at position 0: <--[HERE]

Correct me if im wrong, but im pretty sure that the minecraft: prefix for an item is only supported in the vanilla /give command. For example, /give @s minecraft:torch 1 would work in vanilla, but with essentials it would be /give torch 1.

Luftwaffle46 avatar May 15 '24 12:05 Luftwaffle46

com.mojang.brigadier.exceptions.CommandSyntaxException: Unknown item 'minecraft:' at position 0: <--[HERE]

Correct me if im wrong, but im pretty sure that the minecraft: prefix for an item is only supported in the vanilla /give command. For example, /give @s minecraft:torch 1 would work in vanilla, but with essentials it would be /give torch 1.

the exception is unrelated to this and it is a (harmless) bukkit bug, nothing essentials can quite control.

JRoy avatar May 15 '24 14:05 JRoy

com.mojang.brigadier.exceptions.CommandSyntaxException: Unknown item 'minecraft:' at position 0: <--[HERE]

Correct me if im wrong, but im pretty sure that the minecraft: prefix for an item is only supported in the vanilla /give command. For example, /give @s minecraft:torch 1 would work in vanilla, but with essentials it would be /give torch 1.

the exception is unrelated to this and it is a (harmless) bukkit bug, nothing essentials can quite control.

I've encountered this with my plugin when I used Bukkit.getUnsafe().modifyItemStack. Apparently, we have to include the item type in the arguments to avoid this error in 1.20.6.

For example, this prints the CommandSyntaxException error:

Bukkit.getUnsafe().modifyItemStack(head, "[minecraft:profile={properties:[{name:\"textures\",value:\"" + base64 + "\"}]}]");

This does not:

Bukkit.getUnsafe().modifyItemStack(head, "minecraft:player_head[minecraft:profile={properties:[{name:\"textures\",value:\"" + base64 + "\"}]}]");

Previously, in 1.20.4, we did not need to include the item type:

Bukkit.getUnsafe().modifyItemStack(head, "{SkullOwner: {Properties: {textures: [{Value: \"" + base64 + "\"}]}}}");

Most likely this is already known by Essentials devs but I thought I'd leave it here if anyone else is looking up this problem.

LOOHP avatar May 19 '24 11:05 LOOHP

im noticing some potions in kits do not work (all types instant damage pots, there might be more). They show up as "null" when trying to create it

Budderman18 avatar May 23 '24 00:05 Budderman18

im noticing some potions in kits do not work (all types instant damage pots, there might be more). They show up as "null" when trying to create it

The issue with potions in kits, including instant damage potions (potion of harming), has been addressed in the latest commits to the mc/1.20.5 branch. Ensure you have pulled the latest changes from this branch and rebuilt the plugin. This should resolve potions showing up as null.

ImDarkLaw avatar May 23 '24 14:05 ImDarkLaw

im noticing some potions in kits do not work (all types instant damage pots, there might be more). They show up as "null" when trying to create it

The issue with potions in kits, including instant damage potions (potion of harming), has been addressed in the latest commits to the mc/1.20.5 branch. Ensure you have pulled the latest changes from this branch and rebuilt the plugin. This should resolve potions showing up as null.

i am on the latest version of that branch and it still occurs.

Server version: 1.20.6-R0.1-SNAPSHOT 1.20.6-89-d3ffa62 (MC: 1.20.6) Brand version: Paper EssentialsX version: 2.21.0-dev+91-6bbc4a6

Budderman18 avatar May 23 '24 17:05 Budderman18

im noticing some potions in kits do not work (all types instant damage pots, there might be more). They show up as "null" when trying to create it

The issue with potions in kits, including instant damage potions (potion of harming), has been addressed in the latest commits to the mc/1.20.5 branch. Ensure you have pulled the latest changes from this branch and rebuilt the plugin. This should resolve potions showing up as null.

i am on the latest version of that branch and it still occurs.

Server version: 1.20.6-R0.1-SNAPSHOT 1.20.6-89-d3ffa62 (MC: 1.20.6) Brand version: Paper EssentialsX version: 2.21.0-dev+91-6bbc4a6

when the server is stopped, delete the items.json file in the plugins/Essentials folder. When you start it, the issue should be resolved.

This will happen automatically once merged

JRoy avatar May 23 '24 18:05 JRoy