• 0

    posted a message on Armor equipper

    I mean like, what do you want to get when you leave your house, like diamond armor and that kind of stuff.

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on Armor equipper

    Could you tell me what gear should be given to the player?

    Posted in: Redstone Discussion and Mechanisms
  • 1

    posted a message on I need help setting up a lives system.

    As far as I know, there is no way, that I know of, to differentiate how a player died, though you can try to use commands in order to detect which player has died and which player killed him.


    If we ignore the part:

    Quote from Alftrazign»

    [...]
    Most death detection methods I found using scoreboards etc only do it for one death at a time and reset their death count, I need mine to be able to differentiate which deaths.
    [...]




    then you can use the 'deathCount' and 'playerKillCount' scorboard objectives in order to detect which player died and which player killed another player.


    If 'deathCount' score is 1 and 'playerKillCount' is 1 - that means that a player who has the score of 1 in 'playerKillCount' killed a player who has score of 1 in 'deathCount'. In this case you want to remove 1 life from the player in 'deathCount'.

    Now here you can do whatever you want, including what you asked for in the thread: "After that have it update a sign with their name on it and place their lives next to it. Upon their last death have it cross out their name." Then set everyone to have 'deathCount' and 'playerKillCount' score of 0.


    If 'deathCount' score is 1 and 'playerKillCount' is 0 - that means that a player who has the score of 1 in 'deathCount' died by himself (either by falling into the void, fall damage, etc.).


    If you are not to sure on how to do make this, I may be able to make this for you later as I'm a bit bust today.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Armor equipper

    In that case, you'll want to use:

    replaceitem - https://minecraft.gamepedia.com/Commands/replaceitem

    clear - https://minecraft.gamepedia.com/Commands/clear


    If the wiki isn't too clear for you, you can watch some tutorials on YouTube on how to use them. If you can't figure out how to do it, I can try to set it up for you, but today I'm kind of busy, so I won't be able to reply immediately.

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on I kinda need more help with some other commands in my map

    You can do it using the 'tellraw' command. There is a tag called 'ClickEvent', which lets you do this. You can either follow the Minecraft wiki (which are the links I posted) or you can look it up on YouTube.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Armor equipper
    Quote from ScotsMiser»
    [...]

    There is, however, no way of automatically removing armor from a player in vanilla MC (other than death).


    You can use the 'clear' command to remove armor, though you probably meant: "There is no way to automatically remove armor from a player without cheats."

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on I kinda need more help with some other commands in my map

    You can start off by learning some stuff from:


    https://minecraft.gamepedia.com/Commands/tellraw


    and


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


    If you are more of a visual learner, you can just search for tellraw tutorials on YouTube.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on I kinda need more help with some other commands in my map

    There is no way to actually track what a player has said in the chat. The only way you could do something similar to that would be to have something like this:

    Character: Do you know the way?
    [YES]  |  [NO]


    And the player can click [YES] or [NO] to respond.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How to teleport to a block

    There is no way to teleport to a block, unless you have the specific coordinates or you may also use a function which can teleport you to each block (or even just to each chunk if the block is on the surface) trough the entire world until you find the diamond. This may take a lot of time though (to go trough the entire world with 5 second stops at each chunk, it would take just below 2228069 years, I don't even want to mention how long it would take go trough each block). So the answer is no, you can't teleport to a block.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on no Sword swipe animation?

    Cool, glad to hear it's fixed!

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on no Sword swipe animation?
    Quote from eglaios»

    Well if every tool is got by commands, you could give them with a tag. Else, you can make an item tag .json file in a datapack and put all the tools' names inside... However, I guess it would me much simpler if you modify/delete your haste effect.


    Can you explain the JSON file method? I'm not sure I'm aware of that.

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on Help Extinguishing a Lit Nether Portal
    Quote from ScotsMiser»

    For 19 portals, my impression is that you'll need 38 dispensers (19 each with Flint&Steel and Water) with two 19-branched control lines (one for each set).

    I need to do a test build, but I expect only one observer will be needed (and this would replace the two hoppers, comparator, and the repeater in the second pic).


    That'd be probably much better than my solution. I tried to come up with something quick just to get it working. One way to do it may be to make a central unit which creates 2 types of pulses and connect each pulse to each of the appropriate Nether Portals (1 for Flint and Steel - any positive number of pulses, preferably 1; and one for the water - DED's even positive number of pulses, preferably 2).

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on no Sword swipe animation?

    There is no NBT for holding any type of tool. Let me now if getting rid of Haste fixes your problem.

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on no Sword swipe animation?

    Haste speeds up the swinging animation and it also makes mining blocks faster. It's probably the cause of your problem. Try replacing Haste with some other effect and see if it still happens.

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on I need help with commands for a map

    First-off you should place


    /execute if entity @p[scores={aa=1..}] run give @p diamond

    into a repeat command block and then place a conditional chain command block attached to the repeat command block with the command:

    scoreboard players set @p aa 0

    Now this will work if you only set the players score of 'aa' to be greater than or equal to 1 once or if you want a certain action to give a diamond to the player every time they have a score that's greater than or equal to 1. If there is a certain action that gives the player their diamond and you want to give the diamond only once, what you can do is just remove the objective all together (if you don't need it for something else) with this command (which you should place into the same conditional chain command block which you attached to a the repeat command block):

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