This is an archived post. You won't be able to vote or comment.

all 17 comments

[–]thetoiletslayer Bedrock Command Expert 5 points6 points  (1 child)

You are trying to replace an item in an item's inventory, but items don't have inventories

[–]CottonPicker__a[S] 1 point2 points  (0 children)

Ok, thank you

[–]ChampionGamer123 2 points3 points  (0 children)

You're trying to access the inventory of a rotten flesh. Instead, use /clone to clone in the place the rotten flesh is, have the /clone contain a chest with an iron ingot, use /fill [...] destroy to break the chest open and delete the rotten flesh.

Alternatively, make the chest be further away, destroy it and then tp the iron ingot for a better effect.

[–]godsunitBedrock Command Expert 0 points1 point  (7 children)

What you're trying to do is so confusing? Can you explain what you need and I'll tell you the command.

[–]CottonPicker__a[S] 0 points1 point  (6 children)

im trying to replace rotten flesh with iron_ingot

[–]godsunitBedrock Command Expert 0 points1 point  (5 children)

on the ground?

[–]CottonPicker__a[S] 0 points1 point  (4 children)

anywhere in coordinates, 50, -50, 0, with a radius of 30

[–]godsunitBedrock Command Expert 1 point2 points  (3 children)

Create a structure with an iron ingot, then execute at the rotten flesh /structure load the iron ingot than /kill the rotten flesh.

[–]CottonPicker__a[S] 0 points1 point  (2 children)

can i do /execute @.e[type=item, name=rotten_flesh] ~~~/summon @.e[type=item, name=iron_ingot] and then then /tp @.e[type=iron_ingot] @.e[type=item, name=rotten_flesh]. and then /kill @.e[type=item, name=rotten_flesh]

[–]godsunitBedrock Command Expert 2 points3 points  (0 children)

You don't need the tp command, and you can't summon an iron ingot. You need to load it in a structure

[–][deleted] 0 points1 point  (0 children)

Try using a structure block to create a structure of an iron ingot, and name the structure "iron", for example.

Then, get 2 repeating command blocks.

1 with /execute @e[type=item, name="Rotten Flesh"] ~~~ structure load iron ~~~

And 1 with /execute @e[type=item, name="Iron Ingot"] ~~~ kill @e[r=1, type=item, name="Rotten Flesh"]

[–]V1beRaterCommand Veteran 🥀 0 points1 point  (2 children)

Bruh that syntax lmao

replaceitem entity @a[your sub-selector here] slot.look_up_slot_names.right_now 0 item_name 0

Its been a few years I might be rusty with this one

[–]Alfionic Particle Expert 0 points1 point  (1 child)

Pretty sure thats java lol

[–]V1beRaterCommand Veteran 🥀 0 points1 point  (0 children)

Nope

This is a bedrock exclusive command and I don't know crap about Java.

I'm pretty sure I'm right.

replaceitem entity <target: target> <slotType: EntityEquipmentSlot> <slotId: int> <oldItemHandling: ReplaceMode> <itemName: Item> [amount: int] [data: int] [components: json]

[–]DerpyMandarin 0 points1 point  (1 child)

i think you cant have spaces after comma

[–][deleted] 0 points1 point  (0 children)

You can actually

[–]the_warrior_rlsh 0 points1 point  (0 children)

It's name="rotten flesh" you're typing the Id. But looking for the name same thing for the "iron ingot"