• 1

    posted a message on Remove entity when it lands

    try something like:

    kill @e[type=armor_stand,nbt={OnGround:1b}]

    and you might need to add some extra selectors so it doesn't kill all armor stands in your world, like using tags.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on how would i summon a tamed wolf with a custom name

    try changing your CustomName to CustomName:’”TEST”’


    and if your Owner isn’t working, try changing it to Owner:”darknigh5”

    Posted in: Redstone Discussion and Mechanisms
  • 1

    posted a message on Spawn a villager that trade a custom used tools

    In the item data you need to add the tag:{} nbt, for example:


    sell:{id:iron_pickaxe,Count:1,tag:{CanDestroy:[“minecraft:coal_ore”]}}

    Posted in: Commands, Command Blocks and Functions
  • 2

    posted a message on How do i give effects to a player standing on a block?

    put something like this in a repeating, unconditional, always active command block:

    execute as @a at @s if block ~ ~-1 ~ minecraft:dirt run effect give @s minecraft:speed 1 0 true

    and replace dirt with the block, speed with the effect, and 0 with the effect level

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on =

    you can make only one spawn using tags:


    change the command to:

    execute at @a[nbt={SelectedItem:{id:"minecraft:chicken",Count:1b}},tag=!chicken] run summon chicken ~ ~ ~ {Passengers:[{id:zombie,IsBaby:1}]}


    add a chain, conditional, always active command block that the first block is pointing into:

    tag @a[nbt={SelectedItem:{id:"minecraft:chicken",Count:1b}}] add chicken

    and finally, add a repeating, unconditional, always active command block:

    execute as @a[tag=chicken] unless entity @s[nbt={SelectedItem:{id:"minecraft:chicken",Count:1b}}] run tag @s remove chicken


    this will make only one spawn each time you take out chicken.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on =
    Quote from NoUsername100»

    I'm holding the raw chicken, the the chicken isn't holding anything, and it should prob say execute IF the player's nbt says it's holding 1 raw chicken



    the 'at' means it will execute at the position of all the players with the nbt, and if the player isn't holding chicken, it won't be summoned. using 'if' will make it execute at the position the command is being run from if the player is holding chicken. so if you want it to summon at the player you have to use 'at' and change the pos to ~ ~ ~, since the ~ in positions means the position the command is being executed from.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on =

    try capitalizing Count and uncapitalizing id in your nbt, or if you don't care about how much chicken your holding, you can remove the count


    Also, idk if it's what you want, but by summoning it at 0, 0, 0, it will summon at bedrock in the center of the world, if you want to summon it at the player, you can use something like this:

    /execute at @a[nbt={SelectedItem:{id:"minecraft:chicken",Count:1b}}] run summon chicken ~ ~ ~ {Passengers:[{id:zombie,IsBaby:1}]}
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How to make hostile entities not attack a team?

    you can just have the enemies join the team

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on How To Test If Every Players Score is equal to 1?

    ok, make a new chain, unconditional, always active command block on top of the block that's checking the score:

    execute store success score #EveryoneChose PerkEquipped unless entity @a[scores={PerkEquipped=1}]

    and change your tp command to:

    execute if score #EveryoneChose PerkEquipped matches 0 run (command)

    or, an alternate way would be to take your tp command, put it on top of the command block that's checking the score, and make it chain, conditional, always active, but this will make it activate at the same time the check activates.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on How To Test If Every Players Score is equal to 1?

    try this:

    execute as @a unless score @s PerkEquipped matches 1 run tellraw @a {"text":"","color":"red","extra":[{"selector":"@s"},{"text":" Didn't Choose A Perk!"}]}
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Spread only 10 items with command blocks

    Well, when items stack together, they become one entity with a certain count, so the command is only targeting the one stacked entity, you would need to have them separated somehow.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Ways to detect days passed

    the easiest way I found to do this is to first create a scoreboard:

    /scoreboard objectives add days dummy

    then create two repeating, always active command blocks:

    execute store result score #Days days run time query day
    
    execute if score #Days days matches 8 run time set 1d

    this will store the game days, and when it reaches 8 it will set the time back to 1 day, so it will always be between 1 and 7, and make sure the day is between 1 and 7 using

    /time set 1d
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Piston not updating.

    looks like your magma block piston is activating before the soul sand one retracts, meaning when it tries to extend, it can't because there are too many blocks in the way. you will need to find a way to activate them at different times depending on whether you're deactivating or activating the lever.


    you can use something like in the attachment, but there could be a better way since I just made that in like 2 minutes

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on How to do "this"

    I just copy pasted it from your post and it worked, and idk if you pasted twice but you have the command twice in your post


    and if you still can't get it to work what is the error message you get?

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How to do "this"

    you can just summon a small invisible armor stand with the name set to what you want and have the name always visible:


    /summon minecraft:armor_stand x y z {Invisible:1b,Small:1,NoGravity:1,CustomNameVisible:1,CustomName:'["",{"text":"a","obfuscated":true,"color":"#EAF063"},{"text":"ShnozCrate","color":"#EAF063"},{"text":"a","obfuscated":true,"color":"#EAF063"}]'}

    just set the x and z to be in the middle of the chest and the y will depend on how high above the chest you want it to be, setting it to the y of the chest will make it appear right above it, and the middle of the chest will make it appear around where it is in the picture.


    and if you want to get rid of it, you can use a command like this:

    /kill @e[type=minecraft:armor_stand,sort=nearest,limit=1]

    which kills the closest armor stand

    Posted in: Commands, Command Blocks and Functions
  • To post a comment, please .