-
Notifications
You must be signed in to change notification settings - Fork 4
[Custom Input]
connor135246 edited this page Sep 15, 2024
·
9 revisions
It can be based on a namespaced Item, an Ore Dictionary entry, a tool class, a Java Class, or NBT.
- Namespaced Items are in the format
modid:name:metadata.
The:metadatapart is optional. If it isn't there, any metadata of the item will work.
For example,minecraft:sandrefers to both Sand and Red Sand, butminecraft:sand:0refers to only Sand. - Ore Dictionary entries are in the format
ore:oreName.
For example,ore:logWoodrefers to anything registered in the logWood ore. - Tool classes are in the format
tool:toolClass.
There are 3 vanilla tool classes: pickaxe, shovel, and axe. Simply typetool:pickaxeortool:shovelortool:axe.
Modded tool classes work as well. - Java Classes are more technical. They refer to the actual Java Class used by an item or block.
You may have to dip into the vanilla code or the github of other mods to get it. It has to be a full package and class name, prepended byclass:.
For example,class:net.minecraft.item.ItemSwordrefers to any item that uses the ItemSword Class or extends it, which includes all vanilla swords.
Another example,class:net.minecraft.block.BlockStairs, refers to any block that uses the BlockStairs Class or extends it, which includes all vanilla stairs.
Mods usually will extend the vanilla classes, especially for things like swords and armor. That's the main intended use.
There's no check here other than that the class exists, so you could technically doclass:net.minecraft.item.Itemto refer to every single item in the game, but I really wouldn't recommend it. - Next is the NBT, which can be attached to an Item/Ore/tool/Class or exist on its own. You can type it out exactly like you would in a command.
For example,minecraft:diamond_pickaxe{display:{Name:"Super Pick"}}.
Unfortunately, this modifier isn't very useful. That's because the NBT tag must match EXACTLY.
For example, you might want to check for the Unbreaking enchantment on a Golden Shovel, so you typeminecraft:golden_shovel{ench:[{id:34,lvl:1}]}.
But this will refer to Golden Shovels whose only enchantment is Unbreaking at exactly level 1 without any other NBT.
So some specific NBT things have been given a special format you can type it in to test in a more lenient way.
For enchantments, that format is[ench:id,minlevel].
For example,minecraft:golden_shovel[ench:34,1]refers to any Golden Shovel that has an Unbreaking enchantment of at least level 1, and may or may not have other NBT.
Another special NBT format is the fluid format, for items that hold fluids:[Fluid:"fluidname",DrainAmount:amount]or[Fluid:"fluidname",FillAmount:amount].
For example,ThermalExpansion:Tank[Fluid:"water",DrainAmount:1000]will check for at least 1000 mB of water in a fluid tank item from Thermal Expansion, and will use up the water afterwards.
Likewise,ThermalExpansion:Tank[Fluid:"lava",FillAmount:1000]will check for a fluid tank item from Thermal Expansion that can hold up to 1000 mB of lava, and will fill it up with lava afterwards.
The last NBT format is even more special than the others. This one can only exist on its own, without an Item/Ore/tool/Class.
It's the Tinker's Construct Modifiers format. It allows you to check whether a Tinker's tool has specific modifiers on it.
This one's rather complicated, so it gets its own section. See [Tinker's Construct Modifiers Format].
By the way, NBT-only inputs will display in NEI as a written book. Hover over it to see what you want to know. - Lastly, there's the number of inputs. You can set it by adding
@numberto the end of your input.
For example,minecraft:dye:4@64orore:ingotIron@15orminecraft:stone_axe[ench:16,3]@4.
It's set to 1 by default if not included.
- Home
- Features Overview
- EnviroMine Compatibility
- Command
- v1.9 Recipe Changes
- Campfire Backport Mixin Config
Intro to CraftTweaker and config recipes.
Here's how to use CraftTweaker for your recipes. (Use CraftTweaker v3.1.0 or later!)
- [Campfire Cooking Recipes]
- [Campfire Extinguishers / Ignitors]
- [Burn Out Biome / Dimension Timers]
- [Working with NBT Tags in CraftTweaker]
- [Working with Fluid Containers in CraftTweaker]
In most cases, it'll be easier and cleaner to do these with CraftTweaker.
Specific Formats
- [Campfire Cooking Recipes]
- [Campfire Extinguishers / Ignitors]
- [Burn Out Biome / Dimension Timers]
-
[Campfire Drops]
General Formats