• 0

    posted a message on How does the new /data modify argument work?

    Player don't have ArmorItems, or HandItems. They only have Inventory.

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Position 2.34 to 2

    Use execute align

    executes a command after aligning the current position to the block grid (rounding down)


    So in your case,

    execute at @a align xyz run summon <...>
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Scoreboard Play Ticks

    Yes, dummy. But there is a buildin criteria for that, which mean you don't have to add score for it.

    Criteria might called it different base on which version you are. The one below is for 1.13+

    scoreboard objectives add playtick minecraft.custom:minecraft.play_one_minute
    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Command Help minecraft 1.14

    execute at <trident> at <!player,!trident,!lightning_bolt,distance=1..10> run summon <lightning_bolt> ~ ~ ~

    Posted in: Commands, Command Blocks and Functions
  • 1

    posted a message on Using a command block to teleport a player ONLY if they have a specific item in their inventory. 1.13.2

    Hold that item in your main hand.

    Use data get entity @s SelectedItem to get the nbts of that item, and put those specific nbts into the command below.


    execute as @a[nbt={Inventory:[{id:"minecraft:filltherest",tag:{nbts:1b}}]}] run teleport <fill the rest...>

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Changing Biomes in 1.13.2?

    -12 and 6

    Or you can input xyz coordinates in one of the dinnerbone's tools to double check if is -12, 6.


    Yup, replace all 3 to 27, if you don't know or don't care if the entire chunk(from y=0 to y=255) get changes.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Arrow NBT Help! [1.13 Command Blocks] [Solved]
    /give @p minecraft:tipped_arrow{CustomPotionEffects:[{Id:6b,Amplifier:0b,Duration:0}]}
    Prior to 1.13 → /give @p [amount] [nbt]
    since 1.13 → /give @p [nbt] [amount]
    Also, you missed the suffix for Amplifier. Not always, but sometimes it will cause issue when game is trying to match nbts with different/no suffix, and as result, fail.

    /tag @e[type=arrow,tag=!magicarrow,nbt={CustomPotionEffects:[{Id:6b,Duration:0,Amplifier:0b}]}] add magicarrow
    Prior to 1.13 → /scoreboard players tag @e add foo
    since 1.13 → /tag @e add foo
    → id changed


    These above are part of the message I send...
    So basically, you missed the suffix for Id and Amplifier.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Arrow NBT Help! [1.13 Command Blocks] [Solved]

    Just some command format changes from 1.12 to 1.13.

    Since westperson pm me the "same" question, and I respond it after I saw this post...

    Unless he/she stated otherwise, this topic can be seen as [Solved].

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Detect Damage Specially?

    Can't help you much since advancement is not my strength, and could be wrong since I haven't learn advancement yet...


    Try look at advancement, minecraft:entity_hurt_player,specify the nbt in source_entity.

    So those who got this advancement would be those who got hit by it.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on How to detect the last person alive (in 1.13?)

    Sorry, I cannot tell what went wrong unless you show me what you did.

    And AFAIK, the format doesn't change much b/t 1.13 and 1.13.2.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Force players to mount a horse?

    Cannot force them to mount, but we can force them to dismount.


    But I wouldn't suggest you use horse/minecart either.

    Tp them once the button is pressed.

    Send them back once they sneak(L shift)

    You didn't said which version you are working on, so here is the commands for the newest version.


    scoreboard objectives add sneak minecraft.custom:minecraft.sneak_time
    
    execute as @a[scores={sneak=1..}] at @s run teleport @s ~ ~5 ~
    scoreboard players reset @a[scores={sneak=1..}] sneak
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Rotating armor stand
    execute as @e[type=armor_stand] at @s run teleport @s ~ ~ ~ ~0.1
    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on 1.13.2 Armor Detection Command

    [nbt={Inventory:[{Slot:101b,id:"minecraft:leather_leggings",tag:{display:{Name:"{\"text\":\"name here\"}"}}}]}]


    effect give <entity> <effect> [<seconds>] [<amplifier>] [<hideParticles>]

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Function acts differently in tick versus invocation in console

    Yes, you are missing the at @s.

    as let the selector become the command executor,

    at use the relative coordinates of the selector.


    If you run the command in chat, you are the executor, and the relative coordinate will start at your current position.

    If it is run in function and no at or positioned is specific, neither is specific from it's previous /execute, the default coordinate will be 0 0 0.


    A simple fix would be adding at @s before function:clear_row.

    execute as @a[scores={loopcnt=12..}] at @s run function kevlindev:clear_row



    But I don't understand, why would /fill run as expected while /tp is not, since both of them use relative coordinate, and none of them had specified the at.

    Posted in: Commands, Command Blocks and Functions
  • 2

    posted a message on Detect when player riding entity? (1.13.2)

    I just checked that, use this. You can add more nbts for specification.

    /execute as @a[nbt={RootVehicle:{}}] at @s run say foo


    If you are wondering how did I get that...

    First...ride a horse.

    Use this to check all it's nbt data. /execute as @e[type=horse] run data get entity @s

    Found nothing that's relate to passenger...

    Use this to check all my nbt data. /data get entity @s

    Look through the whole long list...and found this RootVehicle.

    When player is not riding anything, this tag doesn't exist. When it does, it store information about your mount.


    And that...should be how map maker check nbts...in general.

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