Member
Level 1
New Miner
0

Forum Posts

1 - 3 of 3

    whick
    05/17/2015 8:13 pm
    Level 1 : New Miner
    Cool.

    So I might be attempting to do something that isn't possible, but that's why I am asking. It might be able to be accomplished through command blocks.

    I am making a map for server that doesn't let players access trapped chests unless you break them, thus pouring the contents out onto the ground. I would like to use a /testfor command to tell when the spot the chest was in is filled with an air block instead (thus implying a player broke the chest).

    After it is confirmed that the chest has been broken, I'd like to use a /give command to give @p[r=1] of the spot the chest used to be a sword with their name on it. Such as "Whick's Mind". Basically the logic is @p[r=1] + "'s Mind".

    After these commands have executed, I will place an airblock where the command block was that gave players the sword. This prevents players from placing a block where the chest was, then breaking the block again to get another sword (the smart ones, or even the lucky ones who do it by accident at least).

    Basically I'd like a custom named item that gets name right on the spot based on the player who breaks the chest. If it's impossible, just say the word!

    -Whick
    1
    whick
    05/17/2015 7:39 pm
    Level 1 : New Miner
    I have another redstone/command block related question - would you mind if I asked it of you here? If not, I'll make a new topic.

    Thanks again,
    Whick
    1
    whick
    05/17/2015 7:24 pm
    Level 1 : New Miner
    Thank you for taking the time to straighten out my command. I checked out your YouTube channel before plugging in the code and I see you are well versed in redstone, so I had no doubt it would work.

    I opened up MCEDIT with the NBT filter to identify the proper color, and sure enough it worked. Check out the result!

    Thank you so much!
    Whick
    1

1 - 3 of 3

Welcome