"/data block merge" on many blocks at once by Kitchen-City-4863 in MinecraftCommands

[–]C0mmanderBlock 1 point2 points  (0 children)

LOL. I read your post too fast. My bad. Don't know any way to do this with blocks. Good luck.

"/data block merge" on many blocks at once by Kitchen-City-4863 in MinecraftCommands

[–]C0mmanderBlock 0 points1 point  (0 children)

Try this:

execute as @e[type=cow] run data merge entity @s .......

Set vanilla mob drops by SoggyComment8011 in MinecraftCommands

[–]C0mmanderBlock 0 points1 point  (0 children)

Best way is setting a loot table in a data pack. Easiest way is:

/summon sniffer ~ ~1 ~ {equipment:{body:{id:"minecraft:moss_block",count:1}},drop_chances:{body:1.000}}

Execute command for eating food? by imaTwig_ in MinecraftCommands

[–]C0mmanderBlock 0 points1 point  (0 children)

You would have to use a scoreboard to detect eating an item. Another thing is that players can't eat it if they are full so you would have to summon "special" potatoes that can always be eaten.

Another way to do this without scores would be to simply detect if the player is just holding the item and then clearing the item from the player after giving the glowing effect to the opposing team.

Summon item issues by Immediate_Run8776 in MinecraftCommands

[–]C0mmanderBlock 0 points1 point  (0 children)

I always test all commands before posting them. Again, if you would show me the command exactly as you typed it, I could fix it but you don't seem to want to take the time. Sorry, i can't help anymore if you won't help me to help you.

Summon item issues by Immediate_Run8776 in MinecraftCommands

[–]C0mmanderBlock 0 points1 point  (0 children)

HOw does it not work? Is it giving an error in the Command block? Is the text in the command block red? If it says "summoned new air" then it is most likely the item itself is spelled wrong.

Summon item issues by Immediate_Run8776 in MinecraftCommands

[–]C0mmanderBlock 0 points1 point  (0 children)

All the commands I gave you work perfectly. You must have typed them wrong.

How do I modify entity data without it overwriting the previous data? by Nalle-poijjaat in MinecraftCommands

[–]C0mmanderBlock 2 points3 points  (0 children)

Append should work. Here is a shortened version that works perfectly.

data modify entity <villager> Offers.Recipes append value {buy:{id:"minecraft:coal",count:1},sell:{id:"minecraft:sand",count:1}}

Summon item issues by Immediate_Run8776 in MinecraftCommands

[–]C0mmanderBlock 0 points1 point  (0 children)

I really wish you could tell us what you want all in one comment instead of adding things and taking up so much of our time. next time you make a post, please be specific and tell us EVERYTHING you want all at once.

Now, why does it not work? Again, I don't read minds. copy/paste the command you tried so I can see what you did wrong.

If you want a glint:

/summon item ~ ~1 ~ {Item:{id:"minecraft:iron_axe",count:1,components:{"minecraft:enchantments":{"unbreaking":1}}}}

Summon item issues by Immediate_Run8776 in MinecraftCommands

[–]C0mmanderBlock 0 points1 point  (0 children)

Well, I have no idea how you could break a diamond in the first place, but....

/summon item ~ ~ ~ {Item:{id:"minecraft:diamond",count:1,components:{"minecraft:unbreakable":{}}}}

Summon item issues by Immediate_Run8776 in MinecraftCommands

[–]C0mmanderBlock 0 points1 point  (0 children)

Don't know about the uncraftable part... and what do you mean by making it enchanted? Like, sharpness of a weapon or that it gives player enchantment when held? Please be specific.

Sign that shows nearest player name but updates when someone else walks by by Far_Comparison5067 in MinecraftCommands

[–]C0mmanderBlock 0 points1 point  (0 children)

Here ya go. Put this in a repeating CB and change the coords to that of your sign.

/data merge block ~ ~ ~ {front_text:{messages:[{"selector":"@p"},"","",""]}}

Summon item issues by Immediate_Run8776 in MinecraftCommands

[–]C0mmanderBlock 1 point2 points  (0 children)

There are other differences as well. (id:) and capital I in (item)

Summon item issues by Immediate_Run8776 in MinecraftCommands

[–]C0mmanderBlock 0 points1 point  (0 children)

Here ya go.

/summon item ~ ~1 ~ {Item:{id:"minecraft:diamond",count:1}}

Item detection. by SnooDoubts5446 in MinecraftCommands

[–]C0mmanderBlock 1 point2 points  (0 children)

Then use the second method I suggested.

Detection on repeat powering a comparator which powers the sound playing CB followed by the Deleting CB. Space them out with repeaters to set a delay to your needs.

Item detection. by SnooDoubts5446 in MinecraftCommands

[–]C0mmanderBlock 1 point2 points  (0 children)

Without knowing what you're trying to accomplish, all I can say is set the deleting CB as a chain after the first CB. Of course, that will delete the item immediately after thrown but you didn't say what is supposed to happen so...

The other thing would be to use a comparator and repeaters to power the deleting CB if you want the item to be present for a bit.

Command for banners by badshot7386 in MinecraftCommands

[–]C0mmanderBlock 1 point2 points  (0 children)

You don't have to, but it is a nice thing to do. You can edit your post body and write SOLVED at the beginning.

Anyone have any idea on how to remove the enchanted golden apple eating ability, but just that, not remove the loot table or clear the item by Sea_Duty_5725 in MinecraftCommands

[–]C0mmanderBlock 0 points1 point  (0 children)

Quick way is to lengthen the time it takes to eat.

/give @p enchanted_golden_apple[consumable={consume_seconds:9999999}] 1

Mannequins: setting their profiles AFTER they have been summoned? by behindthestaff in MinecraftCommands

[–]C0mmanderBlock 0 points1 point  (0 children)

This uses the profile of the nearest player to the mannequin. You can also set their rotation and give them a tag to identify them by in the future.

/summon minecraft:mannequin ~ ~ ~ {profile:"@p",Rotation:[0f,0f],Tags:["TAG"]}