I got into chiptune music composition.
You can listen to them on my Youtube channel : https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).
Hello minecraftforum,
i want to finish my complex keycard system in minecraft, but i don´t know how to make the last step.
The last step will be, that every @p can buy a keycard (name_tag,named vom 1 - 18) and he/she get a scoreboard count.
I´ve done a scoreboard objective for each keycard (1 - 18) -
/scoreboard objectives add room1 minecraft.picked_up:minecraft.name_tag "room1"
/scoreboard objectives add room2 minecraft.picked_up:minecraft.name_tag "room2"
...
The problem i have is, if i pick up one keycard, it will automatical list a scoreboard count for every keycard (1 - 18).
And i only want, that e.g. keycard 7 is buyed and the scoreboard will list keycard 7=1.
Do you guys know a scoreboard command, that will accomplish this?
Thank you in advantage!
Edit:
Now i am trying to test for an item in the inventory from a player with this command, but i can´t get it to work :/
/execute as @a if entity @s[nbt={Inventory:[{id:"minecraft:name_tag", tag:{display:{Name:"{\"text\":\"room 1\"}"}}}]}]
Someone know a answer to this?
Remove the space after "minecraft:name_tag",#here#
I got into chiptune music composition.
You can listen to them on my Youtube channel :
https://www.youtube.com/channel/UCjWYbJGk7nvNDbnCvMlZGkw
Descriptions are in french, you'd just need some google translation copy-paste...
Also made some more or less complicated datapacks, shared here (planetminecraft).