• 0

    posted a message on Command block help-issue

    Could you post your commands as plaintext? We can only see so much from your images.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Bedrock realm scoreboard

    Minecraft Bedrock, dummy is the only available scoreboard criteria.

    Posted in: Redstone, Commands and Mechanisms
  • 0

    posted a message on Converting commands to 1.16.5?

    It's probably possible, but I'm afraid you probably won't find anyone willing to convert commands which are 23303 and 14585 characters long.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Need help with scoreboards and teams

    /execute if score […] = […] is to compare a score with another player's score. In this case, you are basically saying "execute if my Kills score is equal to the Kills score of the player named 1."

    You can fix this by using /execute if score […] matches 1 instead.

    In addition, remove run execute from your command: it does basically nothing.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Giving items to players who kill players of a certain level...

    I would say that the easiest way to do this is to make a custom advancement:

    {
        "trigger": "minecraft:player_killed_entity",
        "conditions": {
            "entity": {
                "player": {
                    "level": 5
                }
            }
        }
    }
    Posted in: Redstone, Commands and Mechanisms
  • 0

    posted a message on Concat String With Scoreboard Value

    If you are looking to /tellraw this stuff, you can do it with JSON text:

    [{"text":"Test"},{"score":{"name":"*","objective":"test"}}]
    Posted in: Redstone, Commands and Mechanisms
  • 0

    posted a message on [Bedrock] Need help with inventory detection

    This is notoriously hard to achieve, but I've found a quite bodged solution. Bedrock Edition commands are more locked down, so you have to think of clever tricks to get what you want—and sometimes it just ain't pretty. This solution is quite verbose, but hope it works anyways.

    What you would have to make is a scoreboard to track the number of gold taken, named, say, gold, and make an impulse command chain like this. C means conditional and U means unconditional:

    Command chain A:

    01 U: scoreboard players set @p gold 0
    02 U: clear @p gold_ingot 0 1
    03 C: scoreboard players add @p gold 1
    04 U: clear @p gold_ingot 0 1
    05 C: scoreboard players add @p gold 1
    06 U: clear @p gold_ingot 0 1
    07 C: scoreboard players add @p gold 1
    08 U: clear @p gold_ingot 0 1
    09 C: scoreboard players add @p gold 1
    10 U: scoreboard players test @p gold 4 *
    11 C: setblock … redstone_block # Activates command chain B
    12 U: scoreboard players test @p gold 0 3
    13 C: setblock … redstone_block # Activates command chain C

    Command chain B:

    01 U: setblock … air # Removes the redstone block that activated this command chain
    02 U: tellraw @p {"rawtext":[{"text":"§a§lTransaction successful§r\n§a4 gold ingots have been removed"}]}
    03 U: give @p stone
    # END OF PROGRAM

    Command chain C:

    01 U: setblock … air # Removes the redstone block that activated this command chain
    02 U: tellraw @p {"rawtext":[{"text":"§a§lTransaction declined§r\n§aYou do not have enough gold"}]}
    03 U: scoreboard players test @p gold 1 *
    04 C: give @p emerald 1
    05 C: scoreboard players remove @p emerald 1
    06 U: scoreboard players test @p gold 1 *
    07 C: give @p emerald 1
    08 C: scoreboard players remove @p emerald 1
    09 U: scoreboard players test @p gold 1 *
    10 C: give @p emerald 1
    11 C: scoreboard players remove @p emerald 1
    12 U: scoreboard players test @p gold 1 *
    13 C: give @p emerald 1
    14 C: scoreboard players remove @p emerald 1
    # END OF PROGRAM

    I know, it's annoying. But it's what you have to do.

    Posted in: Redstone, Commands and Mechanisms
  • 0

    posted a message on Need help converting a command from Java to BedRock
    Quote from Silversterling»

    How do I use /give in pocket edition to give a enchanted item?



    Unfortunately you can't do it directly with commands. If you're looking to get an enchanted item quickly, you will have to do it manually.

    If you are doing this as part of an adventure map, you will have to use the structure method. Tell me if you'd like me to explain further.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Voting System

    Add a new scoreboard to count votes:

    scoreboard players add votes dummy


    Now set up three fake players to track approvals and rejection votes:

    scoreboard players set $approve votes 0
    scoreboard players set $reject votes 0
    scoreboard players set $total votes 0


    When someone chooses the green Approve wool, run these commands which will add one to both the Approve and Total scores:

    scoreboard players add $approve votes 1
    scoreboard players add $total votes 1


    Do the same with $reject for the rejection votes.

    Now this command on repeat will detect when everyone votes:

    execute if score $total votes matches 6 run …


    The command after run should somehow activate the following script to check for a winner:

    execute if score $approve votes > $reject votes run tellraw @a "proposal of interrogation has been approved of"
    execute if score $reject votes > $approve votes run tellraw @a "proposal of interrogation has been rejected"
    execute if score $approve votes = $reject votes run tellraw @a "it's a tie"
    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Redstone ATM with 2-Step Verification

    I am happy to announce that this machine now supports 40 accounts! Download the updated version today!

    Posted in: Redstone Creations
  • 0

    posted a message on What's with the extra space below code blocks?

    I post to the commands section of the forum quite a lot, and I get bothered a lot by this:

    Use this code:
    tellraw @p {"text":"Hello, World!"}


    This command will display the text to the user.

    There is a horribly large gap that appears between the code block and the next element on the page. This takes up unwanted space and makes it harder to read posts. It really bothers me that this gap still appears even if I try to remove it.
    Could this horrible gap be removed?
    Posted in: Forum Discussion & Info
  • 0

    posted a message on Is there a way to pause a repeater input until a certain action is done (e.g. An item is put in a chest)

    Since you seem to be just starting off with commands, it's okay to use command blocks for now, but once you begin to make large projects, you should begin to switch to using data packs and functions, which are the primary way of creating command contraptions. Command blocks are much more limited.

    But in terms of command blocks, there are two ways to delay command blocks from executing, both of which can seem daunting to beginners but you'll have to learn them if you want to do this:

    Scoreboard timer

    Scoreboard timers are a very old but reliable way of keeping track of time. It involves a scoreboard that counts up every tick (0.05 seconds = 1 tick) and executes commands when it hits certain points. You'll need to set up a scoreboard objective first to hold values:

    scoreboard objectives add timer

    Then you have a repeating command block that counts up:

    scoreboard players add time timer 1

    Then you can detect when the score of time in timer matches the value then do something

    execute if score time timer matches 300.. run …

    And that's it for the scoreboard timer, Daunting but you'll need to learn scoreboards to take advantage of this one!

    Area Effect Cloud method

    The Area Effect Cloud method is also very daunting, involving complex NBT data and detection. I don't have enough time to write about it right now but I may edit this later.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Is there a way to pause a repeater input until a certain action is done (e.g. An item is put in a chest)

    I would just like to point out that it's bad practice to mix redstone and commands. If possible, restrict yourself to all commands or all redstone. Randomization can also be accomplished with commands.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Button Combination Lock

    In that case, the Spruce button would run the following commands:


    execute if score @p code matches 3 run scoreboard players add @p code 1
    execute if score @p code matches 0 run scoreboard players add @p code 1
    execute unless score @p code matches 0 unless score @p code matches 3 run scoreboard players set @p code 0
    Posted in: Redstone Creations
  • 0

    posted a message on I want to make a sign clock using my own clock scoreboard but i cant figure out how to extract my score from the scoreboard.

    To do this you should use the score JSON text component like this:

    data merge block ~ ~ ~1 {Text2:'{"score":{"name":"ExpertCoder14","objective":"test"}}'}
    Posted in: Redstone Discussion and Mechanisms
  • To post a comment, please .