• 0

    posted a message on Motion detection

    Tnt is not a projectile. It should only stop moving when it is on the ground. Try tagging it when its on the ground (OnGround:1b) or add a "d" to the values of the motion tag like so:


    /scoreboard players tag @e[type=arrow,tag=notMoving] remove notMoving

    /scoreboard players tag @e[type=arrow] add notMoving {direction:[0.0d,0.0d,0.0d]}

    /execute @e[type=arrow,tag=notMoving] ~ ~ ~ [do command here...]


    You can also check for arrows that have hit a block and have stopped moving by using "direction" and "inGround:1b".


    And also I have to say sorry because I forgot to put the "tag" in "/scoreboard players tag... ".

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on scoreboard rightclick event for enchanted_book

    Using a retextured carrot on a stick would be more effecient. You can apply a different texture to different levels of durability and and use the "Unbreakable:1b" tag so it always stays the same. You can also add custom tags if you want and detecting would be much easier.


    /scoreboard objectives add click stat.useItem. mimecraft.carrot_on_a_stick


    /scoreboard players tag @a[tag=book1] remove book1

    /scoreboard players tag @a add book1 {SelectedItem:{id:"minecraft:carrot_on_a_stick",Damage:#s,tag:{book:1}}}


    /execute @a[tag=book1,score_click_min=1] ~ ~ ~ say i used the first book


    /scoreboard players reset @a[score_click_min=1] click

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Submarine Commands? CREDIT GIVEN!!!

    If the armor stand is the submarine, when you teleport it to the player with /tp it will look exactly in the direction the player is looking. To make the player desckend when they press shift, you can use a stat.sneakTime scoreboard objective.


    /scoreboard objectives add shift stat.sneakTime


    /tp @a[score_shift_min=1] ~ ~-0.2 ~

    Or you could use negative levitation:

    /effect @a[score_shift_min=1] levitation 1 135 true


    /scoreboard players reset @a[score_shift_min=1] shift


    You can use the rotation selector arguments (ry,rym and rx,rxm) but it might take a lot of work.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Motion detection

    Arrows (and other projectiles) do not use "Motion". They use "direction". It would even be better to use tags instead of dummy scoreboards:


    /scoreboard players @e[type=arrow,tag=notMoving] remove notMoving

    /scoreboard players @e[type=arrow] add notMoving {direction:[0.0,0.0,0.0]}

    /execute @e[type=arrow,tag=notMoving] ~ ~ ~ [do command here...]

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on death titles

    You can move the message to the actionbar and not use the "title @a times" command:


    /execute @a[score_dead_min=1] ~ ~ ~ title @a actionbar ["",{"selector":"@a[score_dead_min=1]"},{"text":" has died! "}]

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Success count?

    The SuccessCount can tell you how many times a commamd is successful (how many entities it can find for example). A comparator can do the same but it can output maximum of 15 and has game 2 ticks delay.


    For example, you run a "/testfor @a" command. A number equal to the number of players in the world will be added to your SuccessCount.

    Posted in: Redstone Discussion and Mechanisms
  • 2

    posted a message on look up
    Quote from Vindicar»

    ", monospace">/tp Someone ~ ~2 ~ would teleport them two blocks above you, and ", monospace">/teleport Someone ~ ~2 ~ would teleport them two blocks above their current position.

    Isn't it the opposite?
    /tp to move something relative to itself
    /teleport to move something relative to the position of the command
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on how can I make a command so it detects that there is an item frame with no item

    To remove the scoreboards, do "/scoreboard objectives remove [name]"


    You want to put the item back if it is taken away or summon the item frame with the apple inside?


    If you want the item frame to not be destroyed by the tnt you can summon it with the "Invulnerable:1b" tag.


    If a player takes away the apple and the two commands from above (my previous post) are running 20 ticks per second, the apple will appear inside the item frame with this command:


    /entitydata @e[type=item_frame,tag=!item] {Item:{id:"minecraft:golden_apple",Damage:1s,Count:1b},Tags:["item"]}


    If it doesn't work try removing the "Count:1b" tag.

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on how can I make a command so it detects that there is an item frame with no item

    You can tag item frames with items inside them and detect empty ones that do not have the tag:


    /scoreboard players tag @e[type=item_frame,tag=item] remove item

    /scoreboard players tag @e[type=item_frame] add item {Item:{}}


    /testfor @e[type=item_frame,tag=!item,x=,z=,y=,r=1]


    Remember to put the coordinates (^_^)

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on scoreboard rightclick event for enchanted_book

    You can add two more commands for every unique book to add a new tag to the player and one more to run the command:


    /scoreboard players tag @a[tag=book1] remove book1

    /scoreboard players tag @a add book1 {SelectedItem:{tag:{bookId:1}}}


    Then you can execute a command if a player is holding that specific book or another one with a different custom tag:


    /execute @a[tag=holdBook,score_rClick_min=1] ~ ~ ~ execute @s[tag=book1] ~ ~ ~ say This is only the first book.


    You will have to put these commands before the last one of the current setup because they reset the scoreboard.


    The command from my previous post should be fixed.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Help With Scoreboard

    How would a player bug and give twice as many points? You need to get 50 kills to go from 0 to 100 right?

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Testfor player health (certain range)

    I know but does the name really matter? It is (almost) 100% customizable after all (excluding invalid characters and ones that could cause errors).

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on scoreboard rightclick event for enchanted_book

    I will edit the commands and the trading GUI will no longer do the thing, sorry. Writing so many commands from my phone keyboard isn't the best idea ╯︿╰

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on scoreboard rightclick event for enchanted_book

    I think your score will only go up if you 'use' that book to enchant something in an anvil. You can tag players that hold the book and teleport an invisible villager. Then you will be able to detect players who right click using a stat.talkToVillager scoreboard objective.


    /scoreboard objectives add rClick stat.talkedToVillager

    /scoreboard teams add notCollide

    /scoreboard teams option notCollide collisionRule never


    /scoreboard players tag @a[tag=holdBook] remove holdBook

    /scoreboard players tag @a add holdBook {SelectedItem:{Id:"minecraft:enchanted_book",tag:{StoredEnchantments:[{}]}}}


    /execute @a[tag=holdBook] ~ ~ ~ execute @s[tag=!hasVillager] ~ ~ ~ summon villager ~ ~ ~ {CustomName:"Testificate",NoGravity:1b,Profession:0,Invulnerable:1,NoAI:1,Silent:1,Team:"notCollide",ActiveEffects:[{Id:14,Amplifier:0,Duration:75340,ShowParticles:0b}],Offers:{}}


    /scoreboard players tag @a[tag=hasVillager] remove hasVillager

    /execute @e[type=villager, name=Testificate] ~ ~ ~ scoreboard players tag @p add hasVillager


    /execute @e[type=villager,name=Testificate] ~ ~ ~ tp @s @p[r=3,tag=holdBook]

    /execute @a[tag=!holdBook] ~ ~ ~ execute @s[tag=hasVillager] ~ ~ ~ tp @e[type=villager,name=Testificate,c=1,r=3] ~ ~-512 ~


    /execute @a[tag=holdBook,score_rClick_min=1] ~ ~ ~ say I used the book!

    /scoreboard players reset @a[score_rClick_min=1] rClick


    I'm not 100% sure this would work tho.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on /Testfor

    /execute @a[x=,y=,z=,dx=,dy=,dz=] ~ ~ ~ [your command here]


    x, y and z are the corner of the room and dx, dy and dz are the distance from that corner to the other corner.

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