mojira.dev
MC-273157

Macro /function test {"minecraft:rarity":"epic"} is unusable

1.Install this datapack

[media]

or

[media]

    function value: 

$give @s stick[rarity:$(minecraft:rarity)]

2./function test {"minecraft:rarity":"epic"}

it will Unknown function minecraft:test because Macro not allow function use value $(minecraft:rarity)

Attachments

Comments 2

I can reproduce that /function test {"minecraft:rarity":"epic"} returns 'unknown function minecraft:test' but I'm still very unclear to the issue here.

If you can expand upon this that'd be great.

It seems the datapack errors when trying to load up actually. I went back and checked the server log I was using it on and it displayed the error:

java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: Invalid macro variable name 'minecraft:rarity' on line 1

Please reupload a working datapack and expand upon the bug report to explain the bug more clearly.

ItsGhostH

(Unassigned)

Confirmed

(Unassigned)

1.20.6, 1.21 Pre-Release 4

Retrieved