getItemStackByAdapter( item = mc:stone / amount = 64 / name = <red>TestName )
Create an item using mechanics adapter.
Arg | Values | Type | Required |
---|---|---|---|
item | adapter format | Text | Yes |
amount | 1-64 | Number | No |
name | Accept minimessage format | Text | No |
vars:
- "$item$ | internal=getItemStackByAdapter( item = mc:stone / amount = 64 / name = <red>TestName )"
getAdapterId( item = $item$ )
It is used to obtain the adapter id of an item. In this case we use a variable with an item inside it and it will tell us the id.
Arg | Values | Type | Required |
---|---|---|---|
item | all ItemStack | Java - ItemStack | Yes |
vars:
- "$item$ | internal=getItemStackByAdapter( item = or:ruby / amount = 64 / name = <red>TestName )" # adapter id = or:ruby and $item$ contains ItemStack Object
- "$item_id$ | internal=getAdapterId( item = $item$ )" # now $item_id$ is or:ruby