Hello. I need help with this and was hoping someome would like to help me.
I got a hint for a person that this could be used to get enchantments of a item using skript-mirror but when i reload the skript it gives the error "cant understand this condition import..." (see attached photo)
on script load:
import "ch.njol.skript.util.EnchantmentType"
function enchantments(item: item) :: enchantment types:
set {_map} to (try {_item}.getRandom() ? {_item}).getEnchantments()
loop ...{_map}.keySet():
add new {EnchantmentType}(loop-value and {_map}.get(loop-value)) to {_enchantments::*}
return {_enchantments::*}
Version: 0.19.1
Server version: 1.8.8
Any ideas?
Im new to this mirror.
I got a hint for a person that this could be used to get enchantments of a item using skript-mirror but when i reload the skript it gives the error "cant understand this condition import..." (see attached photo)
on script load:
import "ch.njol.skript.util.EnchantmentType"
function enchantments(item: item) :: enchantment types:
set {_map} to (try {_item}.getRandom() ? {_item}).getEnchantments()
loop ...{_map}.keySet():
add new {EnchantmentType}(loop-value and {_map}.get(loop-value)) to {_enchantments::*}
return {_enchantments::*}
Version: 0.19.1
Server version: 1.8.8
Any ideas?
Im new to this mirror.
Attachments
Last edited: