Create a free account to remove all ad content.

Author Topic:  Making a Junk Chest  (Read 235 times)

0 Members and 1 Guest are viewing this topic.

ehuntley

  • Member
  • *
  • Posts: 109
    • View Profile
  • Xbox: Ehuntley
Making a Junk Chest
« on: December 16, 2014, 03:48:46 PM »
I've seen people have "junk Chests"(put your junk in and it disappears). I assumed I would just use the Inventory [x,y,z] [clear] linked to script blocks running as a pressure plates surrounding the chest, but the chest isn't clearing. Is there another way to do this?

Zoidberg

  • Legendary Member
  • *
  • Posts: 1445
    • View Profile
  • Xbox: v Zoidberg v
  • Steam: v_Zoidberg_v
Re: Making a Junk Chest
« Reply #1 on: December 16, 2014, 03:58:19 PM »
The Script Blocks don't have to 'Act As Pressure Plate' to be activated when the chest is opened/closed, the chest will emit power while open, so as long as the script block is placed adjacent to the chest, it should be activated when opened.

As for the script, it appears to be written correctly, just be sure that your coordinates are correct. An easy way to do this is to use relative coordinates, which also allows you to use the same script anywhere throughout the map. Typically, underneath of a chest is a good place for the script block, so for that location you would use the coordinates [rel:0,1,0].

Another way to do this would be to have a SetBlock command place another chest in place of the one with the items in it, essentially just replacing the full chest with an empty one. For this method, if using the power emitted by the chest to activate the script, I would advise putting the script in the 'Powered off' section.
« Last Edit: December 16, 2014, 04:13:21 PM by Zoidberg »