How to spawn item in a chest via command computer in 1.7.10?

Started by MarsOdin, Dec 05, 2019, 04:35 PM

Previous topic - Next topic

MarsOdin

I'm on Minecraft 1.7.10 and have open peripherals.
I can't find a way to create an item in a chest in this version with the command computer.
I can't even find a Minecraft command to create items in chests.
Is there a way?

Lupus590

you have to change the metadata or nbt (I forget which) of the chest that you are creating

to add an item to an existing chest what you really need to do is read the existing contents of the chest and then replace it with a new chest which has the existing and new items

MarsOdin

Thanks for the fast reply.

Could you tell me which command to use to do that? or give me an example please. I'm kind of lost.

Lupus590

no idea, never done it myself. it should be just the standard computercraft commands though

MarsOdin

Unfortunately I can't find any command in this version that allows that. That's why I'm lost

Lupus590

does this work when using the command in chat?

https://www.digminecraft.com/generators/give_chest_1_8.php

it's posible that 1.7.10 doesn't have the necissery commands

SquidDev

I believe the /blockdata command was only added in 1.8, so I'm afraid it's not possible to do on 1.7.10.
GitHub | CC:Tweaked: A ComputerCraft fork | Plethora: A peripheral mod