• 1

    posted a message on 1.14 command help

    This is because the game assumes you want to search infinitely from the given source. In order to only work in a given area you need to use the following:

    /kill @e[x=,y=,z=,dx=,dy=,dz=]

    This allows you to create a kill-area with the given coordinates as one corner. The dx, dy, and dz values indicate how far you want to search in the positive x, y, and z directions. This means that you'll need to choose your starting location in the most north-western corner of the area. If you only want one coordinate location to kill entities you can set the value of dx, dy, and dz to 0. As a note, coordinates are accurate to the thousandth so you'll most likely want to have a search value of at least 1. Hope this helps.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Command Blocks - Bredrock Ed

    As a small note you are actually trying to do it on Java edition. In Bedrock the tag would be

    score_points_min=2500

    However the newest version (Java) would use the first reply's method of

    scores={points=2500..}
    Posted in: Redstone, Commands and Mechanisms
  • 1

    posted a message on Cloning a block from one armor stand's location to another armor stand's location

    You can't actually clone form an entity to another. However, you can clone a block to a location and then clone from that location. The following should work:

    /execute at @e[type=minecraft:armor_stand,tag=armorStand1] run clone ~ ~-1 ~ ~ ~-1 ~ [x] [y] [z]

    then use

    /execute at @e[type=minecraft:armor_stand,tag=armorStand2] run clone [x] [y] [z] [x] [y] [z] ~ ~-1 ~

    The first command should be repeating and the second should be a chained to the first. As a note, you will need to ensure that the armor stands are tagged correctly (the tags I used can be changed though). Hope this helps.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on test for entity facing a direction

    you can /execute and the y_rotation selector. The following command should work:

    /execute if entity[y_rotation=85..95] run [command]

    This will test for a player looking in the western direction (with a 10o lenience). The other directions would be 175..185 (north), -85..-95 (east), and -5..5 (south) Hope this helps.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on How do you detect if a player is looking between 2 directions?

    While your command is functional do take note that the x_rotation tests for where the player is looking up and down (not left to right). If you want to test for where the player is looking side to side the y_rotation selector is required.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on crouch detection (sort of)
    Quote from artemisgalt»

    Comparison:

    /execute at @e[type=minecraft:player] if score @p check_reset = @p spell_select run scoreboard players set @p check_reset 0


    Should be spell_select at the end (for the score set). Works great with that change tho. Use his OP.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on crouch detection (sort of)

    You could use a walk_one_cm/sprint_one_cm objective so that it would reset whenever the player isn't crouching. The following could work.


    Objective initialization:

    /scoreboard objectives add resetSpell walk_one_cm

    Spell_select reset (repeat):

    /scoreboard players set @a[scores={class=5,spellbook=3,spell=1,resetSpell=1..}] spell_select 0

    resetSpell reset (chain, conditional, connected to previous):

    /scoreboard players set @a[scores={class=5,spellbook=3,spell=1,resetSpell=1..}] resetSpell 0

    As a note, you would have to duplicate this for each movement option (aviate_one_cm, boat_one_cm, climb_one_cm, sprint_one_cm, swim_one_cm, walk_on_water_one_cm, walk_under_water_one_cm) that you want to reset the spell_select score (though not all are required depending your map).

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Please help me! (1.11)

    Sadly the health tag got changed to a float. Which means that unless the mob reaches EXACTLY the amount of health you want it won't get detected.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on help wanted with replace item

    The command that you would need is:

    /clear [player] minecraft:written_book 0 1 {display:{Name:"[name]"}}


    One thing to note is that the title that is given to a book when you sign it isn't the name of the book. So you would have to write your book, and then rename it at an anvil to the name you want.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on How to give some items special abilities?

    From what I know there is no simple way in vanilla minecraft to determine when players right click with a non-useable item in their hand (Anything but potions, some tools and blocks.) So sadly that rules out most of them. If you would be willing to switch the abilities on infiltrator's weapons you could use spectral arrows to reveal enemies and just give him a lower quality sword with knockback. For Securer's passive you would have to teleport upwards and then use some randomizer to tp on the x and z axis. You can use a scoreboard with stat.damageTaken to trigger the teleport. For Ninjas first passive you could use a scoreboard with stat.playerKills to trigger a command block that gives super regen to the player that got the kill. Everything that remains can be done fairly simply.

    P.S. It is technically possible to test for right clicks but it would involve a ludicrous amount of command blocks and around 10-20 hours of work for setup and an additional hour for each item.

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