391: Item repair glue. [Minecraft Map Making]

Subscribers:
3,860
Published on ● Video Link: https://www.youtube.com/watch?v=2gVrfamHsEg



Minecraft
Game:
Minecraft (2011)
Duration: 0:00
812 views
40


Membership:    / @infernaldevice  
Ep391: Repair glue that you can throw on top of a damaged item to fully repair it..

00:00 Intro
01:05 Give repair glue
01:40 Give damaged item
02:15 Controller - simple
06:10 Controller - sound etc

Version: 1.21

Idea and command help: Vestium on Discord

Commands, builds, hacks and ideas for people making their own Minecraft maps.

Check out my collabs on Coppit's channel:    / coppitj  

Join the CoppitCraft server that I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord:   / discord  

The following commands are prefixed with three letters which represent the settings of the command block. E.g IUN: = Impulse Unconditional Needs_Redstone. These prefixes need to be removed if copying the commands.

Since angled brackets are not allowed in YouTube descriptions you will have to replace "greater than" and "less than" with the appropriate angled bracket.

Commands used:

Give repair glue:
IUN: give @p slime_ball[item_name='{"text":"Repair Glue"}', lore=['{"text":"Throw next to a damaged item on the floor to repair it."}'], custom_data={repair:item}]

Give damage item:
IUN: give @p diamond_sword[damage=1000]

Controller - simple:
RUA: execute as @e[type=item] if items entity @s contents slime_ball[custom_data~{repair:item}] at @s[nbt={OnGround:true}] store success entity @s Age short 6000 as @e[type=item, distance=0.01..1, limit=1, sort=nearest] unless items entity @s contents *[damage=0] run item modify entity @s contents {function:"set_components", components:{"damage":0}}

Controller - sound etc
RUA: execute as @e[type=item] if items entity @s contents slime_ball[custom_data~{repair:item}] at @s[nbt={OnGround:true}] store success entity @s Age short 6000 as @e[type=item, distance=0.01..1, limit=1,sort=nearest] unless items entity @s contents *[damage=0] run tag @s add repair_me
CCA: execute as @e[type=item, tag=repair_me] run item modify entity @s contents {function:"set_components", components:{damage:0}}
CCA: execute at @e[type=item, tag=repair_me] run particle electric_spark ~ ~ ~ 0.3 0.3 0.3 1.5 30
CCA: execute at @e[type=item, tag=repair_me] run playsound block.amethyst_block.break master @a ~ ~ ~ 1 1 0
CUA: tag @e[type=item, tag=repair_me] remove repair_me







Other Statistics

Minecraft Statistics For Infernal Device

At present, Infernal Device has 182,428 views spread across 865 videos for Minecraft, accounting for over 10 days of watchable video on his channel. This is 94.82% of the total watchable video for Minecraft on Infernal Device's YouTube channel.