Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-117834

Commands on Age:0s item works in command_block, but no in /function

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 1.12 Pre-Release 5, Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2
    • None
    • Community Consensus

      • Command works in command_block, but no in /function:
      execute @a[tag=IsBucheron,score_XpLog_min=2] ~ ~ ~ /scoreboard players tag @e[type=Item,r=6] add BucheXP {Item:{id:"minecraft:log"},Age:0s}
      
      • Command works in command_block, and in /function:
      execute @a[tag=IsBucheron,score_XpLog_min=2] ~ ~ ~ /scoreboard players tag @e[type=Item,r=6] add BucheXP {Item:{id:"minecraft:log"},Age:1s}
      

      Edit:

      In command_block, we can execute a command for an item with Age:0s
      In a function, this same command doesn't work, but if we replace Age:0s by Age:1s, it works.

            Unassigned Unassigned
            PneuX PneuX
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: