1. /execute as @a if entity @s[nbt={Inventory:[{id:"minecraft:name_tag",tag:{display:{Name:"{\"text\":\"portal_key\"}"}}}]}]
2. /execute if entity @p[distance=0..5]
I want to combine this two commands, but the problem that I have is that the first command for the whole map is executed by all players. But I'm looking for a command that only tests one area
and secondly, I would like to check the enchantment in the first command above with
1. /execute as @a if entity @s[nbt={Inventory:[{id:"minecraft:name_tag",tag:{display:{Name:"{\"text\":\"portal_key\"}"}}}]}]
2. /execute if entity @p[distance=0..5]
I want to combine this two commands, but the problem that I have is that the first command for the whole map is executed by all players. But I'm looking for a command that only tests one area
and secondly, I would like to check the enchantment in the first command above with
0
i need to check some advancements to activate some things
doesnt worked
0
I have created some books with commands in.
is it possible to create an villager shop that sells own written books?
0
i need to check some advancements to activate some things
doesnt worked
0
heyho,
I want to combine this two commands, but the problem that I have is that the first command for the whole map is executed by all players. But I'm looking for a command that only tests one area
and secondly, I would like to check the enchantment in the first command above with
(if the command is correct)
wish a nice day
0
heyho,
I want to combine this two commands, but the problem that I have is that the first command for the whole map is executed by all players. But I'm looking for a command that only tests one area
and secondly, I would like to check the enchantment in the first command above with
(if the command is correct)
wish a nice day
0
is it possible to count over 64 items in a players inventory?
/execute as @a[nbt={Inventory:[{id:"minecraft:emeralds,count:64b"}]}] run say hi worked well,
but if i try to test over 64 items it doenst works
/execute as @a[nbt={Inventory:[{id:"minecraft:emeralds,count:100b"}]}] run say hi
i just need a command for 3 functions.
1. checking the inventory for 100 emeralds
2. delete the 100 emeralds if the player have 100 emeralds
3. run an /summon a tamed sattled zombie horse
best regards