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.

Categories
Ask Games Video Games

How to replace (X) amount of items with the same amount of a different item?

I have seen a similar question but I’m experiencing a different problem. I’m trying to make a series of commands that makes it so that when I have neither a custom crossbow nor custom carrot on a stick in my inventory, (X amount) of custom tipped arrows will be replaced with the same amount of […]

Categories
Ask Games Video Games

Minecraft digging speed attribute

I am currently trying to implement a custom crafting recipe in which it will place a dropper with a stone pickaxe with faster digging attributes. I was looking at https://minecraft.gamepedia.com/Attribute#Modifiers but I couldn’t find any modifiers to increase digging speed. execute at @p run setblock ~ ~-1 ~ dropper{Items:[{Slot:4b,id:”minecraft:stone_pickaxe”,Count:1b,tag:{Unbreakable:1,display:{Name:'[{“text”:”test pick”,”italic”:false}]’},AttributeModifiers:[{AttributeName:”effect.digSpeed”,Name:”effect.digSpeed”,Amount:10,Operation:2}]}}]} replace Is there any specific […]

Categories
Ask Games Video & Online Games

Multiple loot tables in one datapack

So I have a slight issue with loot tables, I created three separate tables and whenever I go in and give myself the chest variant of the loot table it seems to sometimes not work on the others. So for the first one I am calling it “Tier 1” and giving it to myself using […]