ComputerCraft Forums

ComputerCraft => Ask a Pro => Topic started by: MarsOdin on Dec 05, 2019, 04:35 PM

Title: How to spawn item in a chest via command computer in 1.7.10?
Post by: MarsOdin on Dec 05, 2019, 04:35 PM
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?
Title: How to spawn item in a chest via command computer in 1.7.10?
Post by: Lupus590 on Dec 05, 2019, 05:28 PM
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
Title: How to spawn item in a chest via command computer in 1.7.10?
Post by: MarsOdin on Dec 05, 2019, 07:01 PM
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.
Title: How to spawn item in a chest via command computer in 1.7.10?
Post by: Lupus590 on Dec 05, 2019, 10:12 PM
no idea, never done it myself. it should be just the standard computercraft commands though
Title: How to spawn item in a chest via command computer in 1.7.10?
Post by: MarsOdin on Dec 08, 2019, 12:20 PM
Unfortunately I can't find any command in this version that allows that. That's why I'm lost
Title: How to spawn item in a chest via command computer in 1.7.10?
Post by: Lupus590 on Dec 08, 2019, 03:01 PM
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
Title: How to spawn item in a chest via command computer in 1.7.10?
Post by: SquidDev on Dec 08, 2019, 03:05 PM
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.