How To Make *Custom Items* Using Item Components, Recipes and Advancements in Java Minecraft 1.21.4

How To Make *Custom Items* Using Item Components, Recipes and Advancements in Java Minecraft 1.21.4

2.539 Lượt nghe
How To Make *Custom Items* Using Item Components, Recipes and Advancements in Java Minecraft 1.21.4
A custom item that actually does something?! That's what I'll teach you how to make today. I'll walk you through item components and how to change them to get the results you want. I'll teach you how to use the wiki to know what values to change, and I'll provide a template datapack to make setting up a custom recipe and custom advancement easy! 00:00 How To Make Custom Items Pick Your Component: *consumable* - data modify entity @n[type=item,distance=..10] Item.components set value {"minecraft:consumable":{"consume_seconds":1.6,"animation":"eat","sound":"entity.generic.eat","on_consume_effects":[{"type":"apply_effects","effects":[{"id":"speed","amplifier":0,"duration":100,"show_particles":true}],"probability":1.0}]},"minecraft:food":{"nutrition":2,"saturation":5.0,"can_always_eat":false}} *tool* - data modify entity @n[type=item,distance=..10] Item.components set value {"minecraft:tool":{"default_mining_speed":1.0,"damage_per_block":1,"rules":[{"speed":5.0,"correct_for_drops":true,"blocks":["minecraft:stone","minecraft:grass_block"]}]},"minecraft:repairable":{"items":["stone","stonecutter"]},"minecraft:unbreakable":{},"minecraft:max_damage":14,"minecraft:damage":1} *equippable* - data modify entity @n[type=item,distance=..10] Item.components set value {"minecraft:equippable":{"slot":"head","equip_sound":"item.armor.equip_generic","swappable":true,"damage_on_hurt":true},"minecraft:attribute_modifiers":[{"type":"armor","slot":"any","id":"my_items:armor","amount":3.0,"operation":"add_value"}],"minecraft:unbreakable":{},"minecraft:max_damage":512,"minecraft:damage":1} 01:23 Customizing Item Component Values Minecraft Wiki: https://minecraft.wiki/w/Data_component_format#List_of_components 07:13 Will You Keep The Helper Components? Helper components: *consumable*: - food adds adds meat pops when eaten as well as saturation *tool*: - repairable defines what can repair the item in an anvil - unbreakable makes the tool never break - max_damage sets the total durability - damage sets the current damage to the item *equippable*: - attribute_modifiers gives the item an armor value (although the type value can be changed to give extra hearts or increased/decreased movement speed, etc) - unbreakable makes the tool never break - max_damage sets the total durability - damage sets the current damage to the item !! Pro Tip: attribute_modifiers can go on any item and by changing the value for the "type" key, you can add extra hearts while holding/wearing your item, increase/decrease movement speed, increase mining range, etc! Attribute List: https://minecraft.wiki/w/Attribute#Attributes 08:31 Adding Item Components Component names: "minecraft:custom_name" "minecraft:lore" "minecraft:enchantment_glint_override" "minecraft:max_stack_size" "minecraft:item_model" 12:20 Custom Crafting Recipe With Components Custom Item Template Datapack: https://www.planetminecraft.com/data-pack/custom-item-template/ My Main Let's Play: Talon's Oasis Season 3: https://www.youtube.com/playlist?list=PLlBKpA-F_inGo3_j1lEuEIOWYGd5wZkJf Original (Old) Talon's Oasis: https://www.youtube.com/playlist?list=PLlBKpA-F_inEvT1CF9srKkl9R4Ecs7ueL Not an official Minecraft product. Not approved by or associated with Mojang. Chapters: 00:00 How To Make Custom Items 01:23 Customizing Item Component Values 07:13 Will You Keep The Helper Components? 08:31 Adding Item Components 12:20 Custom Crafting Recipe With Components 15:44 How To Replace Default Recipes 16:11 Item Advancement Functionality #CustomItemTutorial #MinecraftHowTo #Talon2863