#bro i cant loop

1 messages · Page 1 of 1 (latest)

lilac radish
#

please help me with this new version bro

#

i got like 2000 more error to fix and update the script

red vector
#

most of your issues will probably relate to aliases

tough cragBOT
#

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)
lilac radish
#

mb gang

red vector
#

yeah

#

golden nugget was probably an alias before

desert viper
#

loop all dropped items in radius 1 of the victim:
if type of loop-entity is golden nugget:

desert viper
#

how should work

lilac radish
#

"loop all dropped gold nuggets in radius 1 around victim:" this should work

desert viper
#

may to

lilac radish
#

nah

lilac radish
#

2.11.2 skript dont have "golden nugget"