• 0

    posted a message on Command Block Help
    Quote from Megacrafter107»

    Have you tried this?

    /execute as @e[type=armor_stand,name=...] at @s run tp @s @e[type=arrow,limit=1,distance=..10,sort=nearest]


    Small change to that command :

    /execute as @e[type=armor_stand,name=...] run tp @s @e[type=arrow,limit=1,distance=..10,sort=nearest,nbt={inGround:0b}]

    the "at @s" is not necessary, and I added the specific nbt "inGround:0b", wich targets only arrows wich are not landed.

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on How To Spawn In A Whole Village

    If you want new players to spawn at a specific point, there's a tip used in hypixel maps : Put strings and hook in a square like 20x20 at the world spawn. new players will activate them, wich allow you to trigger a command block for teleporting everyone activating the strings wherever you want

    ...or simply make a command clock with scoreboards in order to detect new player and teleport them once, but not the best way...

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on "Sacrifice rewards" using Command blocks

    There's a way to do exactly what you want!

    On the attached picture, you can see a golden platform, an emerald square (wich it at Y=10) and 3 command blocks. That's all! (It's an 1.12.2 creation, you haven't precised your version). You can replace the gold block by any other block, at any height, this doenst matter at all.


    How it works :


    -There's a score that counts the sheep kills for players


    -The system detects if there's an emerald block at X=[Player's pos] Y=10 Z=[Player's pos] from each player who have a sheep kill (as you see on the screenshot, this means that the system tests for any player who kills a ship while on the gold blocks, wich can be placed at any height).

    Standing on the obsidian wont trigger the system as there's no emerald blocks under it.


    -There's also a clock that keep resetting the sheep kills for preventing cheats


    The command blocks :

    Here's the descriptions of the 3 command blocks on the screenshot, from right to left. Of course, in order to make the system work, you have to type these 2 commands :

    /scoreboard objectives add KillSheep stat.killEntity.Sheep


    /gamerule commandBlockOutput false

    Then the command blocks contents (Place them at the same direction as on the screenshot) :


    -Right one ;

    Settings : Repeat - Unconditionnal - Always active

    Command :

    scoreboard players reset @a KillSheep


    -Middle one :

    Settings : Repeat - Uncontitionnal - Always active

    Command :

    /execute @a[score_KillSheep_min=1] ~ ~ ~ detect ~ 10 ~ minecraft:emerald_block -1 /tellraw @a {"text":"God","color":"dark_purple","extra":[{"text":" : Thank you for your sacrifice!","color":"gold"}]}


    -Left one :

    Settings : Chain - Conditionnal - Always active

    Command :

    /execute @a[score_KillSheep_min=1] ~ ~ ~ detect ~ 10 ~ minecraft:emerald_block -1 /xp 3l @s

    Now you can build any patern with the emerald blocks in order to create a zone matching your church's floor.


    Pleased to help you!

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