#How to use tagged
1 messages · Page 1 of 1 (latest)
Phill suggests that you read this embed
For more info read SkriptLang's statement
Aliases were a way to add new names for blocks and items within Minecraft. They were mainly added for convenience back when items used numerical ids so that you could use dirt instead of item 3. This is no longer necessary so this system is being phased out starting with Skript 2.10
By default aliases will not be included meaning you will have to use the default minecraft names for blocks and items. Additionally, categories like any log or is a sword and blockdata aliases like waterlogged oak slab will no longer work. To fix these issues you can switch to using blockdata and the minecraft tag system
To replace category aliases like is a sword you can use the new is tagged condition.
if player's tool is a sword: becomes if player's tool is tagged as item tag "swords":
This doesn't work in events yet so you can check the tag inside the event:
on click with any pickaxe: becomes vb on click: player's tool is tagged as item tag "pickaxes"
You can also create custom tags
on load:
register an item tag named "my_favorite_blocks" using oak log, stone, and podzol```
You can see a full list of default tags on the [Minecraft Wiki](https://minecraft.wiki/w/Tag#Java_Edition_2)
if event-item tagged with "pickaxes" or "swords":
right?
How to use tagged
on inventory click:
if event-item is tagged as item tag "breaks_decorated_pots":
send "???" to player
its work!
and how to check multi condition?
if event-item is tagged as item tag "breaks_decorated_pots" or(and) "more tag": ?
I would use if any and if all