#How to use tagged

1 messages · Page 1 of 1 (latest)

charred harness
#

Can't understand this condition: 'type of even-item is not sword or pickaxes

on inventory click:
    if type of even-item is not sword or pickaxe:

How I can solve it

icy quest
#

event

#

and you'll have to use tags

wide merlinBOT
#

Phill suggests that you read this embed

Moving from Aliases to Tags

For more info read SkriptLang's statement

What are Aliases

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

What is changing?

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

Using minecraft tags

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)
charred harness
icy quest
#

try it

#

and take a second look at the examples in the embed

charred harness
#

How to use tagged

charred harness
# icy quest try it
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": ?

icy quest
#

put item tag before each string

#

and idk if you use and or or