A /give command that supports CraftTweaker item syntax
TheDeviantCrafter opened this issue ยท 0 comments
Feature request name
/give command that supports CraftTweaker item syntax
Feature request description
I'd like the ability to run a /ct give
command which would give you an item with the specified item ID, meta data value and NBT string using CraftTweaker syntax.
Example command: /ct give <minecraft:diamond_sword>.withTag({ench: [{lvl: 10 as short, id: 16 as short}]})
This would give a diamond sword with Sharpness 10 to the player.
Feature request reason
A common task for mod devs is creating a recipe for an item with a custom NBT string. Crafting a diamond sword with sharpness 10 is an easy example. For people inexperienced with the way CraftTweaker formats NBT strings, getting the recipe right involves a lot of trial and error.
A /ct give
command would allow you to quickly spawn an item, run /mt hand
, copy the string, make a small tweak and then give yourself an item with that modifier NBT string.
This is useful for a lot of mod-related troubleshooting. Does that sharpness 10 sword work on a Gaia Guardian? What if you give a Satchel holding 10? Can you add every potion effect to a potion? Having fun with spawn eggs, name tags or monster spawners? This command will make your life easier.
Feature request dependencies
No. All of the other mods I referenced were examples.