• 1

    posted a message on Particle problem

    Show us the commands you're using and someone will be much more able/willing to help.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Using Level to Set Maximum Health

    You could still use a health_boost effect. Instead of setting it when a player is between the required levels, make it a two part check. First tag the player if they are under the effects, then give the effect for 1 million seconds if they do not already have it:


    scoreboard players tag @a[tag=boost1] remove boost1

    scoreboard players tag @a[tag=boost2] remove boost2

    scoreboard players tag @a add boost1 {ActiveEffects:[{Id:21b,Amplifier:0b}]}

    scoreboard players tag @a add boost2 {ActiveEffects:[{Id:21b,Amplifier:1b}]}

    effect @a[lm=10,l=19,tag=!boost1] minecraft:health_boost 1000000 0

    effect @a[lm=20,l=29,tag=!boost2] minecraft:health_boost 1000000 1


    This is perfectly expandable as well. Just repeat each one of the three types of commands for each new level.


    Edit: Whoops, unbalanced curly brackets.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on summon item with entitydata

    This should do it:


    /summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:spawn_egg",Count:1b,Damage:0s,tag:{EntityTag:{id:"minecraft:bat",Tags:["oregensum"]}}}}

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Does the /setidletimeout command work in command blocks?

    Like many administrative commands, the setidletimeout command cannot be used in command blocks.

    https://minecraft.gamepedia.com/Commands#setidletimeout

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Help? how to remove the dragon egg after killing the ender dragon

    You could use fill replace executed from the dragon_egg item the dragon will drop to replace any nearby dragon_egg blocks with air:


    scoreboard players tag @e[type=minecraft:item,tag=!dragon_egg] add dragon_egg {Item:{id:"minecraft:dragon_egg"}}

    execute @e[tag=dragon_egg] ~ ~ ~ fill ~15 ~15 ~15 ~-15 ~-15 ~-15 minecraft:air 0 replace minecraft:dragon_egg

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on how to summon an item frame facing a specific direction

    "Facing: The direction the painting/item frame faces: 0 is south, 1 is west, 2 is north, and 3 is east."


    So use this command:


    /summon minecraft:item_frame -1048 238 -274 {Invulnerable:1b,Facing:3b}

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Scoreboard Skipping Values?

    No, change the command to this:


    execute @a[score_walk_min=10] ~ ~ ~ detect ~ ~-0.5 ~ minecraft.wooden_slab 2 playsound step.metalgrate @a[r=25]

    scoreboard players reset @a[score_walk_min=10] walk


    You may need to play with the value to get the desired effect.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Scoreboard Skipping Values?

    Why not just use @a[score_steps_min=10] in the playsound command, then reset it right after?


    scoreboard players reset @a[score_steps_min=10] steps

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on How to detect a custom named block in a command?
    Quote from ShelLuser»


    -Snip-


    No, you misunderstood. You are using the entity "Tags" list on an item.. That is not correct. Plus, when you use the give command, the given NBT data is placed inside the {Item:{tag:{here}}} compound. When summoning any entity you can assign "Tags", they are located in the top of the NBT data compound, so placing them inside the Item->tag compound does nothing. Especially because it isn't an entity.

    There is a thing called custom item NBT tags. They're actual NBT tags that only work for items, they are not in a list like entity "Tags", they are not strings, they are bools that you can name and define yourself. For example: {Item:{tag:{custom:1b}}}

    You can summon an item as an item tile entity. "minecraft:item" is an entity. If you use this command you can summon an item with both custom item NBT tags and entity "Tags":

    summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:dirt",Count:1,tag:{notdirt:1b}},Tags:["itReallyIsDirtDoe"]}

    Now while it is an item tile entity that no one has picked up, you can target it using "@e[tag=itReallyIsDirtDoe]".

    Once someone picks it up you can test that it is in their inventory with this:

    testfor @a {Inventory:[{tag:{notdirt:1b}}]}

    Just so you know, custom item tags are not really documented on the wiki.

    If you are referring to the tag->BlockEntityTag compound, then again, you are mistaken. These are used for real tags, not custom, that should be applied when the item is placed. Like the command in a command block or inventory of a chest. You cannot put "custom:1b" tags here, nor entity "Tags", for that matter.
    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on How do I summon a wither skull so it doesn't explode immediately?



    This proves nothing. It is still an entity that has unique tags. That does not mean you can summon it. You used to have to give the skull an empty direction tag, but later I remember reading in one of the changelogs something along the lines of "wither skulls can no longer be summoned unnaturally". I could be confusing this with the change they made to summoning fireballs when you had to actually fill each record of direction with doubles, or perhaps I'm just thinking of 1.8-pre1 when summoning fireballs and wither skulls was broken entirely.

    Either way, I also found this which might support my initial statement:

    Quote from Searge»

    Using wither skulls directly is not supported and modifying internal data via NBT during the lifetime of an entity can result in unexpected behavior.
    Posted in: Commands, Command Blocks and Functions
  • To post a comment, please .