Categories
Ask Games Video Games

How to give a player a item on respawn?

The method I have been taught no longer works in 1.15.2: /scoreboard objectives add death deathCount /scoreboard objectives add dummydeath dummy /scoreboard players set @a[name=CrimsonCreates,scores={death=1}] dummydeath 3 /scoreboard players set @a[name=CrimsonCreates,scores={death=1}] death 0 /execute as @a[name=CrimsonCreates,scores={dummydeath=1..},nbt=!{Inventory:[{id:”minecraft:carrot_on_a_stick”,tag:{display:{Name:”[{\”text\”:\”Dash Attack\”}]”},Enchantments:[{id:”binding_curse”,lvl:1},{dash_attack:1b},{id:”vanishing_curse”,lvl:1}]}}]}] run scoreboard players remove @s dummydeath 1 /execute as @a[name=CrimsonCreates,scores={dummydeath=1..},nbt=!{Inventory:[{id:”minecraft:carrot_on_a_stick”,tag:{display:{Name:”[{\”text\”:\”Dash Attack\”}]”},Enchantments:[{id:”binding_curse”,lvl:1},{dash_attack:1b},{id:”vanishing_curse”,lvl:1}]}}]}] run give @s carrot_on_a_stick{display:{Name:”[{\”text\”:\”Dash Attack\”}]”},CustomModelData:10000002,Enchantments:[{id:”binding_curse”,lvl:1},{id:”vanishing_curse”,lvl:1}]} 1 /scoreboard […]

Categories
Ask Games Video Games

How can I make an item with NBT data have a coloured name?

I have this command and I’m wondering how to add a coloured name to it (light green, specifically) /give @p minecraft:player_head{display:{Name:”{\”text\”:\”Common Chicken Head\”}”},Enchantments:[{id:”minecraft:feather_falling”,lvl:1}],SkullOwner:”MHF_Chicken”,AttributeModifiers:[{AttributeName:”generic.maxHealth”,Name:”generic.maxHealth”,Amount:0.1f,Operation:0,UUIDMost:21470,UUIDLeast:179416}]} 1 Thank you!

Categories
Development

JS Array of Objects – Remove Duplicates and Merge nested objects

still learning JS and I have been struggling with this one problem for a bit and found a similar solution here on Stack Overflow link which I tried to model my solution after, but I cant seem to figure it out for my use case.. so would appreciate advice on how I can fix the […]

Categories
Development

JS Array of Objects – Remove Duplicates and Merge nested objects

still learning JS and I have been struggling with this one problem for a bit and found a similar solution here on Stack Overflow link which I tried to model my solution after, but I cant seem to figure it out for my use case.. so would appreciate advice on how I can fix the […]

Categories
Development

JS Array of Objects – Remove Duplicates and Merge nested objects

still learning JS and I have been struggling with this one problem for a bit and found a similar solution here on Stack Overflow link which I tried to model my solution after, but I cant seem to figure it out for my use case.. so would appreciate advice on how I can fix the […]