• 1

    posted a message on How to kill a dropped item (on the ground)

    For 1,13 it's:

    kill @e[type=minecraft:item,nbt={Item:{id:"minecraft:egg"}}]


    for older versions it should either be:

    kill @e[type=Item] {Item:{id:"minecraft:egg"}}
    or
    kill @e[type=Item] {Item:{id:"egg"}}


    Your right about 1.13, but these other commands you mentioned don't actually work, they kill all items and not just the egg.
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Display name of beacon as a title when player is within radius!?
    Quote from Tiscan»

    OK, first of all: i know next to nothing about command blocks so my idea might be totally impossible :)


    I know its kinda easy to setup a "named" area in Minecraft. Basically something like this: https://gaming.stackexchange.com/questions/308068/minecraft-title-in-an-area -> when you enter a certain area the name is displayed using the title-function.


    My idea was to turn this into a more generic feature usable by any player on a server.


    It should work like this:


    Lets say I want "Tiscan's Base" to show up when I (or any other player) enters my area. I would name a beacon "Tiscan's Base" and put it in the center of my base. Now a general repeating command block in the spawn chunks searches for all named beacons in the world and checks if a player is within 50 blocks of it. If he is, a similar logic as explained in the stackexcahnge-posting is executed (the player is added to a scoreboard, title is displayed, etc.).

    The main problems i see is that IDK if its possible to pass the name of the beacon to the title-function and it might get complicated to keep track of different states for different players and beacons - so the title is only shown once whe the player is entering the area, etc.. Especially if the areas of different beacons overlap.


    You could place an invisible armor stand in a beacon with a specific tag that represents the location and then the armor stand could test for a player within a specific radius.This is what I used in one of my maps, however, I'm not sure if it will work on a server.
    It is too much to explain so here is a world download: https://www.dropbox.com/sh/lbj8on7rbfg0tky/AAD-7IWy_otRADFIrVfbLSHRa?dl=0
    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on How to kill a dropped item (on the ground)

    Tag the item you want to delete by typing this:

    /scoreboard players tag @e[type=item] add egg {Item:{id:"minecraft:egg"}}

    and then you can delete it using the tag you just gave it, like this:

    /kill @e[type=item,tag=egg]
    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on [Help needed] More compact daylight sensor piston watergate.

    Not sure if this is compact enough but it is a lot smaller.

    It activates on sunrise and lets a decent amount of water out before it closes in a couple of seconds.

    Posted in: Redstone Discussion and Mechanisms
  • 1

    posted a message on Item detection and passing

    Or you can use this item filter I found online. The items from the upper chest will travel down the hopper line, the correct item will go to the first chest and emit a Redstone pulse and the wrong items will go to the second chest.However, you need to preload the hoppers like shown in the picture.And to open your door just attach a flip-flop circuit to the comparator circuit.

    Posted in: Redstone Discussion and Mechanisms
  • 1

    posted a message on Help with specific command

    Not necessarily, if the target player has a score of 1 on the "player" objective then the command block under the player can just test for a nearby player in a specific radius with the min score of 1.Therefor avoiding the need for a name.This system can be used in multiplayer as well with a few tweaks(more player objectives, so there are no conflicts).


    I have tested this myself and it works perfectly

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Help with specific command

    This is possible, I've just done it! ...you can use scoreboard instead of variables.

    Tested in Mc.1.12.2


    1.Use these commands to make two scoreboard objectives


    /scoreboard objectives add heldItem dummy

    /scoreboard objectives add player dummy



    2.place down 4 command blocks as shown in the picture I included.



    3.now it's time to program the command blocks


    command block #1:


    /scoreboard players set @a heldItem 1 {SelectedItem:{id:"minecraft:stick",tag:{display:{Name:"Special item"}}}}


    command block #2:


    /execute @a[score_heldItem_min=1] ~ ~ ~ setblock ~ ~-1 ~ command_block 0 replace {Command:"testfor @p[r=3,score_player_min=1]"}


    command block #3:


    /execute @a[score_heldItem_min=1] ~ ~ ~ scoreboard players set @a[score_heldItem_min=1,r=1] player 1


    command block #4:


    /execute @a[score_heldItem_min=1] ~ ~ ~ replaceitem entity @a[score_player_min=1] slot.weapon.mainhand air


    and you're done. Just don't forget to change the item name and id in the first command.


    oh, and the command block that is set beneath the player's feet is not activated so make sure you activate it.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Fill an area around a player

    Try replacing "air 1" with "air 0"

    So it should go like this: /execute @a ~ ~ ~ fill ~10 ~6 ~ ~ ~ ~10 minecraft:air 0 replace minecraft:end_portal

    Posted in: Redstone Discussion and Mechanisms
  • To post a comment, please or register a new account.