• 0

    posted a message on feedback messages from command for functions

    sorry, I thought you would know how to create the scoreboard, just use this command, then try again:

    /scoreboard objectives add scoreboard dummy

    and if you want to change what the scoreboard is named, replace where it says 'scoreboard' in that command and the two other commands with the name

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on feedback messages from command for functions

    I don't think there is an easy way to do this, but you can store the blocks placed in a scoreboard score:

    execute store result score #blocks scoreboard run fill ~ ~ ~ ~ ~ ~ stone

    and then tellraw it to the player:

    tellraw @s {"text":"filled ","extra":[{"score":{"name":"#blocks","objective":"scoreboard"}},{"text":" blocks"}]}
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Placing upper slabs with /fill command

    it depends on what slab you want, you can go here to see the data values for slabs, you just add the data value after the block, for example:

    /fill ~ ~ ~ ~ ~ ~ stone_slab 8

    should fill with an upper smooth stone slab

    Posted in: Redstone, Commands and Mechanisms
  • 1

    posted a message on Cutom Spawn Eggs

    this should work:

    give @p minecraft:parrot_spawn_egg{EntityTag:{id:"minecraft:firework_rocket",LifeTime:30,FireworksItem:{id:firework_rocket,Count:1,tag:{Fireworks:{Flight:2,Explosions:[{Type:1,Flicker:1,Trail:1,Colors:[I;11743532,2437522,15790320],FadeColors:[I;2651799,14188952]}]}}}}}
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on some "/execute store" command issue i have.

    run this command and it should work:

    /data modify entity @e[tag=knife,limit=1,sort=nearest] Pose merge value {Head:[1f]}

    or if you're using a summon command for the armor stands, just add Pose:{Head:[1f]} to the nbt


    also, you can make this only one command:

    execute at @e[tag=knife] as @p at @s run data modify entity @e[tag=knife,limit=1,sort=nearest] Pose.Head[0] set from entity @s Rotation[1]
    Posted in: Redstone, Commands and Mechanisms
  • 0

    posted a message on Detect players were specific colored or named leather armor 1.16
    Quote from TotalRico_»

    Unfortunately not, this doesn't work.


    what is the command you are using?

    the command should look like this:

    /execute as @a if data entity @s Inventory[{Slot:102b,tag:{display:{color:3949738}}}]

    it works for me on 1.16

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Help I'm Making A Puzzle Map

    this will change what it can be placed on when you hold the block:


    1.17+

    execute as @a if data entity @s {SelectedItem:{id:"minecraft:redstone_block"}} run item replace entity @s weapon.mainhand with minecraft:redstone_block{CanPlaceOn:[polished_diorite,polished_andesite]}

    1.13 - 1.16

    execute as @a if data entity @s {SelectedItem:{id:"minecraft:redstone_block"}} run replaceitem entity @s weapon.mainhand minecraft:redstone_block{CanPlaceOn:[polished_diorite,polished_andesite]}
    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Detect players were specific colored or named leather armor 1.16
    Quote from TotalRico_»

    "get" isn't recognized as a command in that line :/


    you just have to remove 'get' and it will work

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on How to detect if players are in one gamemode and automatically convert them to another gamemode

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

    gamemode adventure @a[gamemode=spectator]
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on I need some help with my scoreboard system

    replace everywhere it says 'killcount' with your objective name for it

    first, run these commands:

    /scoreboard objectives add skeletons minecraft.killed:minecraft.skeleton
    
    /scoreboard players set #skeletons killcount 4

    then, make a repeating, unconditional, always active command block:

    execute as @a run scoreboard players operation @s skeletons *= #skeletons killcount

    then on top of that, put a chain, unconditional, always active command block:

    execute as @a run scoreboard players operation @s killcount += @s skeletons

    then, put another chain, unconditional, always active command block on top:

    scoreboard players set @a skeletons 0
    Posted in: Redstone Discussion and Mechanisms
  • 1

    posted a message on Timer With Scoreboard.

    I'm guessing that you've already done this part, but first you create the scoreboard:

    /scoreboard objectives add Timer dummy

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

    scoreboard players add #timer Timer 1

    which adds 1 to #timer every tick

    with timer scoreboards, to convert seconds to the number of ticks you multiply seconds by 20 and add 1. so 45 seconds is 901 ticks.

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

    execute if score #timer Timer matches 901 run (command)

    which will run something when the timer hits 45 seconds

    then you might wanna put a chain, conditional, always active command block on top that says:

    scoreboard players set #timer Timer 0

    which will make it loop and make the command run every 45 seconds.

    or if you want something different to happen after another 45 seconds, you could do:

    execute if score #timer Timer matches 1801 run (command)
    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on I have a question about a scoreboard that im trying to make.
    Quote from _Schmee_»

    so its only counting the zombie pigmen that are being killed by the player, but not the ones that fall off and die from fall damage. is there anyway to get around this?



    I think you can, just not easily, the only way I've been able to think of so far would be instead of using totalKillCount, creating scoreboards for each thing you want people to get money for, and for each one do what I put in my first reply but instead of subtracting you add to a dummy scoreboard, which would also remove the need for the zombie piglin commands. I'll come back if I think of an easier way.

    Posted in: Redstone Discussion and Mechanisms
  • 1

    posted a message on If Every Player Is Standing On This Block...
    Quote from Orhun3651»

    And is it possible to make it so when a player is spectator it will automaticly add "#PlayersOnGranite playercount 1" please help i need this.


    yes, change the chain command block to:

    execute as @a[gamemode=!spectator] at @s if block ~ ~-1 ~ minecraft:polished_granite run scoreboard players add #PlayersOnGranite PlayerCount 1

    and add a new chain command block on top of it that says:

    execute as @a[gamemode=spectator] run scoreboard players add #PlayersOnGranite PlayerCount 1
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on I have a question about a scoreboard that im trying to make.

    first, create this scoreboard:

    /scoreboard objectives add piglins minecraft.killed:minecraft.zombified_piglin

    then, make a 2 command block chain:


    command block 1: repeating, unconditional, always active

    execute as @a run scoreboard players operation @s money -= @s piglins

    and replace 'money' with your scoreboard name


    command block 2: chain, unconditional, always active

    scoreboard players set @a piglins 0
    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on How to make custom banner with enchantments and attrubute?
    Quote from lg1366x768»

    Hi there. Just wanted to ask if you knew how to do the command in 1.17.

    I am trying to make a patterned banner with a curse of binding enchantment, a name in bold saying "LOL THIS STUCK" and lore saying "This is here until you die". The one other thing is the max health set to 1.


    A, are you still using the forum and,

    B, can you help me?


    Current command looks like this;

    /item replace entity @p armor.head with cyan_banner{BlockEntityTag:{Base:6,Patterns:[{Pattern:ls,Color:14},{Pattern:bs,Color:14},{Pattern:bo,Color:9}]},ench:[{id:27,lvl:1s}]}


    this should work:

    item replace entity @p armor.head with minecraft:cyan_banner{BlockEntityTag:{Patterns:[{Pattern:ls,Color:14},{Pattern:bs,Color:14},{Pattern:bo,Color:9}]},Enchantments:[{id:binding_curse,lvl:1}],display:{Name:'{"text":"LOL THIS STUCK","bold":true}',Lore:['{"text":"This is here until you die"}']},AttributeModifiers:[{AttributeName:"generic.max_health",Amount:-20,Operation:0,Slot:head,Name:"generic.max_health",UUID:[I;-121612,24531,102630,-49062]}]}
    Posted in: Commands, Command Blocks and Functions
  • To post a comment, please .