[Bug] item names
L9Tigrotto opened this issue ยท 1 comments
Issue description
i think there is a bug with the custom name attributes.
i have a script that adds items into a lootchest.
with the modified shears the chest wont generate any loot, without shears it works fine.
not: i modified the shears name in the anvil, and then generated the code with /ct hand command.
im on fabric 1.21.1 with
- Fabric API 0.116.4
- CraftTweaker 21.0.27
- Flaux Custom Entity Data 13.0.1
- Easy Anvils 21.1.0
- Forge Config API Port 24.1.4
- Puzzles Lib 21.1.36
Steps to reproduce
No response
Script used
The crafttweaker.log file
Minecraft version
1.21.1
Modloader
Fabric
Modloader version
0.116.4
CraftTweaker version
21.0.27
Other relevant information
No response
The latest.log file
The issue is that /ct hand was giving the item in the wrong format, it should be inside a string, like so:
val item = <item:minecraft:shears>
.withJsonComponent(
<componenttype:minecraft:custom_name>,
'{"bold":true,"color":"dark_purple","italic":false,"obfuscated":false,"strikethrough":false,"text":"Shears","underlined":false}'
);I've fixed /ct hand to give the correct output now