Categories
Ask Games Video Games

How do I detect a player holding an item with nbt data?

I am making a Minecraft map and I want a door (made of blocks) to disappear when a player presses a button with the key in their hand. However, the player will be able to access multiple keys at once, so I need to detect exactly which key the player is holding. Using a basic […]

Categories
Ask Games Video Games

How to execute a command when holding a named player skull (Java)

Me and a few people are making a map and we need a command to execute when you are holding a skull and we cant seem to get it to work. The command to get the skull is a follows: /give @p minecraft:player_head{SkullOwner:Cobblestone,display:{Name:'[{"text":"Piece of the Ruin","italic":false,"color":"light_purple"}]’,Lore:[‘[{"text":"Holding this in your hand","italic":false,"color":"gray"}]’,'[{"text":"while in the ruins will allow","italic":false,"color":"gray"}]’,'[{"text":"you […]

Categories
Ask Games Video Games

Minecraft 1.16 – My “display:{Lore:””}” doesn’t load

My "display:{Lore:""}" doesn’t load, I think it’s too big for Minecraft. If you play on Hypixel’s Skyblock, you know the Aspect Of The End. I’ve recreated it in Minecraft Vanilla. Here’s the item description : And here’s the command to give the sword : give NoEnd_ minecraft:diamond_sword{display:{Name:'{"text":"Aspect Of The End","italic":"false","color":"blue"}’,Lore:[‘[{"text":"Damage:","italic":"false","color":"gray"},{"text":" +100","italic":"false","color":"red"}]’,'[{"text":"Strength:","italic":"false","color":"gray"},{"text":" +100","italic":"false","color":"red"}]’,'[{"text":"","italic":"false"}]’,'[{"text":"Item Ability: Instant Transmission","italic":"false","color":"gold"},{"text":" […]

Categories
Ask Games Video Games

Minecraft 1.16 – My “display:{Lore:””}” doesn’t load

My "display:{Lore:""}" doesn’t load, I think it’s too big for Minecraft. If you play on Hypixel’s Skyblock, you know the Aspect Of The End. I’ve recreated it in Minecraft Vanilla. Here’s the item description : And here’s the command to give the sword : give NoEnd_ minecraft:diamond_sword{display:{Name:'{"text":"Aspect Of The End","italic":"false","color":"blue"}’,Lore:[‘[{"text":"Damage:","italic":"false","color":"gray"},{"text":" +100","italic":"false","color":"red"}]’,'[{"text":"Strength:","italic":"false","color":"gray"},{"text":" +100","italic":"false","color":"red"}]’,'[{"text":"","italic":"false"}]’,'[{"text":"Item Ability: Instant Transmission","italic":"false","color":"gold"},{"text":" […]

Categories
Ask Games Video Games

The repeating command block gives me a new bow when i try to shoot. How to fix that?

(Im playing Vanilla 1.13.2) My problem is: Im making a minecraft map and i dont want that the player can loose his bow. So i wrote that command into a repeating command block: /replaceitem entity @p hotbar.0 bow{display:{Name:"{"text":"Bow of Shadows","color":"green","italic":"false","bold":"false"}"},"Enchantments":[{id:"minecraft:infinity",lvl:1}]} 1 . But if I try to shoot an arrow the bow reloads instantly because […]

Categories
Ask Games Video Games

why does the villager not accept the trade commands (minecraft)

I created a villager with custom trades using the following commands: /summon villager ~ ~ ~ {CustomNameVisible:1b,CustomName:'{"text":"Alex"}’,VillagerData:{level:99,profession:"minecraft:cartographer",type:"minecraft:plains"},Offers:{Recipes:[{maxUses:99999999,buy:{id:"minecraft:paper",Count:1b,tag:{display:{Name:'{"text":"Alex´s Special Money","color":"dark_green","italic":false}’,Lore:[‘{"text":"Money Created by Alex","color":"dark_gray","italic":false}’]},HideFlags:63}},sell:{id:"minecraft:diamond_pickaxe",Count:1b,tag:{display:{Name:'{"text":"STONNKS","color":"gold","italic":false}’,Lore:[‘{"text":"NUB","color":"dark_gray","italic":false}’]},HideFlags:62,RepairCost:0,Unbreakable:1b,Enchantments:[{id:"minecraft:fortune",lvl:3s}]}}}]}} [![enter image description here][1]][1] [![enter image description here][2]][2] [1]: https://i.stack.imgur.com/jMGsr.png [2]: https://i.stack.imgur.com/wPp2r.png then i made the first item as a give command : /minecraft:give @p paper{display:{Name:'{"text":"Alex´s Special Money","color":"dark_green","italic":false}’,Lore:[‘{"text":"Money Created by Alex","color":"dark_gray","italic":false}’]},HideFlags:63} 1 but […]

Categories
Ask Games Video Games

why does the villager not accept the trade commands (minecraft)

so i created a villager with custom trades /summon villager ~ ~ ~ {CustomNameVisible:1b,CustomName:'{"text":"Alex"}’,VillagerData:{level:99,profession:"minecraft:cartographer",type:"minecraft:plains"},Offers:{Recipes:[{maxUses:99999999,buy:{id:"minecraft:paper",Count:1b,tag:{display:{Name:'{"text":"Alex´s Special Money","color":"dark_green","italic":false}’,Lore:[‘{"text":"Money Created by Alex","color":"dark_gray","italic":false}’]},HideFlags:63}},sell:{id:"minecraft:diamond_pickaxe",Count:1b,tag:{display:{Name:'{"text":"STONNKS","color":"gold","italic":false}’,Lore:[‘{"text":"NUB","color":"dark_gray","italic":false}’]},HideFlags:62,RepairCost:0,Unbreakable:1b,Enchantments:[{id:"minecraft:fortune",lvl:3s}]}}}]}} then i made the first item as a give command : /minecraft:give @p paper{display:{Name:'{"text":"Alex´s Special Money","color":"dark_green","italic":false}’,Lore:[‘{"text":"Money Created by Alex","color":"dark_gray","italic":false}’]},HideFlags:63} 1 but when i try to trade nothing happends WHY WHY pls help Heading

Categories
Ask Games Video Games

Why is my worn item detector not working? (1.15.2 Minecraft)

I have worked on creating an item that can make you fly by sneaking but the detector is consistently failing. It is a scoreboard system and this is the item NBT: leather_boots{display:{Name:"[{\"text\":\"Glass Boots\",\"italic\":false,\"color\":\"white\"}]",Lore:["[{\"text\":\"Can be used to fly!\",\"italic\":true,\"color\":\"dark_blue\"}]"],color:3847130},Enchantments:[{id:flame,lvl:1}],Unbreakable:1,HideFlags:39,AttributeModifiers:[{AttributeName:"generic.armor",Amount:66,Operation:0,UUIDLeast:171565600,UUIDMost:99,Slot:feet,Name:"generic.armor"}]} 1. Scoreboard command: /scoreboard players add @a[nbt={Inventory:[{Slot:100b,display:{Name:"{\"text\":\"Glass Boots\",\"italic\":false,\"color\":\"white\"}"}}]}] Wearing_Glass 1 What is wrong with my command?

Categories
Ask Games Video Games

How can I check if a player has an item with a colored name in their inventory?

I know the execute command exists and I can work with it, now, I’m basically making a keycard system where, if someone has an L-2 keycard, their level gets set to xp level 3, if someone has an L-3 keycard, it gets set to xp level 4 etc.. The thing is, every keycard is the […]

Categories
Ask Games Video Games

Check For Item In Inventory

Im looking to check for a specific item inside a players inventory. This is my code so far To get the item I’m checking for: execute as @p run give @p minecraft:sunflower{display:{Name:'{“text”:”Flawless Token”,”color”:”green”,”italic”:”false”,”bold”:”true”}’}} The command block checking for and then outputting to a comparator execute at @p[nbt={Inventory:[{id:”minecraft:sunflower”,tag:{display:{Name:'{“text”:”Flawless Token”,”color”:”green”,”italic”:”false”,”bold”:”true”}’}}}]}] What am I doing wrong? Thanks.