Kormiya
- Kormiya
- JIRAUSER665579
- Europe/Stockholm
- Yes
- No
Summon a ender dragon in a custom dimension will crash the game.
What I expected to happen was...:
The ender dragon triggered java.lang.IllegalArgumentException: bound must be positiveWhat actually happened was...:
There's a player that in survival mode in another dimension of the world, and the system will spawn a ender dragon for he to fight, then it crash the game.Steps to Reproduce:
1. Make a datapack to generate a dimension for player
2. Teleport into the dimension
3. Run the command /summon minecraft:ender_dragon ~ ~ ~ {DragonPhase:0} in survival mode
when you have 2 enchantments "sharpness" and "minecraft:sharpness" in the new components this will crash the game
1./give @s diamond_sword [enchantments=\{levels:{sharpness:10,"sharpness":10}}]
2./give @s diamond_sword [enchantments=\{levels:{sharpness:10,"minecraft:sharpness":10}}]
thefirstone will crash the game, but theseconddoesnt.when you have 2 enchantments "sharpness" and "minecraft:sharpness" in the new components this will crash the game
1./give @s diamond_sword [enchantments=\\{levels:{sharpness:10,"sharpness":10}}]
2./give @s diamond_sword [enchantments=\\{levels:{sharpness:10,"minecraft:sharpness":10}}]
the second one will crash the game, but the first one doesnt.
when you have 2 enchantments "sharpness" and "minecraft:sharpness" in the new components this will crash the game
1./give @s diamond_sword [enchantments=\\{levels:{sharpness:10,"sharpness":10}}]
2./give @s diamond_sword [enchantments=\\{levels:{sharpness:10,"minecraft:sharpness":10}}]
the second one will crash the game, but the first one doesnt.
when you have 2 enchantments "sharpness" and "minecraft:sharpness" in the new components this will crash the game
1./give @s diamond_sword [enchantments=\{levels:{sharpness:10,"sharpness":10}}]
2./give @s diamond_sword [enchantments=\{levels:{sharpness:10,"minecraft:sharpness":10}}]
the second one will crash the game, but the first one doesnt.
use_remainder component doesnt give item back when totem of undying triggers.
/give @s player_head[profile=card_dragonmad,death_protection={death_effects:[
{type:teleport_randomly,diameter:64}]},use_remainder=
{id:diamond,count:1}]
i want a custom totem returns a diamond after used, but it doesnt work for me.
use_remainder component doesnt give item back when totem of undying triggers.
/give @s player_head[profile=card_dragonmad,death_protection={death_effects:[{type:teleport_randomly,diameter:64}]},use_remainder={id:diamond,count:1}]i want a custom totem returns a diamond after used, but it doesnt work for me.
Kormiya, is this still an issue for you in 1.18.1?




to check an item with count is 1, by using this
/execute if data entity @s SelectedItem
{id:"minecraft:bedrock"}unless data entity @s SelectedItem.count
as the update, an item without count components will be 1 by default.
so you can know thats an item with one count
if you want to get an item's count, the new snapshot content will be confused, beacuse you cant directly get the count of an item by /data get entity @s Item.count
to get the count of an item which wont go wrong will need to be
/execute store result score @s 1 run data get entity @s SelectedItem.count
/execute if score @s 1 matches 0 run scoreboard players set @s 1 1
beacuse you cant know that is an item with 1 count in components, so it will be fail, you need to manaly set it to 1, also decreased efficiency