• 0

    posted a message on How to clone and keep destination blocks

    Hi there, been working on a map recently where I need a player to be able to blow away blocks of gravel with a special wind spell item. Everything works fine, except the gravel breaks the blocks wherever it is /cloned to and essentially allows the player to destroy the map. Is there a way I can manipulate /clone command so that they don't break any destination blocks?


    My current command is essentially this (not including the execute bit):
    /clone ~-1 ~ ~1 ~1 ~2 ~1 ~-1 ~3 ~2 filtered gravel move


    That would push a 3x3 area in front of the player forward 1 and 3 up, currently the command gets split up into 2 bits but that doesn't matter.


    Don't worry if it's incompatible with the move option which I am using currently, I already know a workaround for that one.


    Thanks!

    Posted in: Maps
  • 0

    posted a message on NEW- Test for a player holding a specific item in any slot - With 1 command block

    Hey there, I'm using the new 1.9 tags function for my superpowers map. For some reason it isn't detecting that I'm holding the item. I am using a replace item in a repeat command block to give me the item. Can you tell me if something is wrong please?


    Here are the commands:

    Replace Item:

    /replaceitem entity @a slot.hotbar.2 minecraft:feather 1 0 {AttributeModifiers:[{AttributeName:"generic.maxHealth",Name:"FL",Amount:0,Operation:0,UUIDLeast:679886,UUIDMost:414378}],display:{Name:"Flight"}}


    Scoreboard Tags:


    /scoreboard players tag @a add FL {Attributes:[{Name:"generic.maxHealth",Modifiers:[{Name:"FL"}]}]}



    EDIT:

    I have changed my commands to use item names as they are simpler. They are now as follows:


    /scoreboard players tag @a add FL {SelectedItem:{id:feather,tag:{display:{Name:"Flight"}}}}
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How to use @e to target specific dropped items?
    Quote from Vija02»
    Now that 14w10c is out, you can specify data tags in scoreboard. This means that you can add a score the the specific item you want
    For example if you want to kill stone and dirt drops

    The scoreboard
    <br>/scoreboard objective add Item dummy Item<br>

    Set the score for dirt and stone item entity
    <br>/scoreboard players set @e[type=Item] Item 1 {Item:{id:dirt,Count:1}}<br>

    <br>/scoreboard players set @e[type=Item] Item 1 {Item:{id:stone,Count:1}}<br>

    Kill the items
    <br>/kill @e[type=Item,score_Item_min=1]<br>

    Reset the scoreboard
    <br>scoreboard players reset * Item<br>



    Just change the id: into spawn_egg and you can also specify the damage value

    Whenever I do this it tells me:

    the data tag does not match for *

    Posted in: Redstone Discussion and Mechanisms
  • To post a comment, please .