on load:
set {mcoin} to new ItemStack(Material.EMERALD!)
set {_meta} to {mcoin}.getItemMeta()
set {_lore} to new ArrayList()
{_lore}.add("&a&oMelville Currency")
{_meta}.setLore({_lore})
{_meta}.setDisplayName("&e✪ MCoin ✪")
{_meta}.setUnbreakable(true)
{_meta}.addEnchant(Enchantment.LUCK!, 10, true)
{_meta}.addItemFlags([ItemFlag.HIDE_ENCHANTS!, ItemFlag.HIDE_UNBREAKABLE!])
{mcoin}.setItemMeta({_meta})
on EntityTargetLivingEntityEvent:
event.getEntityType() is EntityType.PHANTOM!
set {_p} to event.getTarget()
{_p} is instance of Player
{_p}.hasPotionEffect(PotionEffectType.NIGHT_VISION!) is true
{_p}.getStatistic(Statistic.TIME_SINCE_REST!) < 72000
cancel event
on PlayerInteractEntityEvent:
set {_p} to event.getPlayer()
event.getHand() is EquipmentSlot.HAND!
"%lore of {_p}'s tool%" contains "adult":
event.setCancelled(true)
if {_p} can build at location at {_p}:
set {_e} to event.getRightClicked()
if {_e} is instance of Ageable:
set {_s} to {_p}.getWorld().spawnEntity({_e}.getLocation(), {_e}.getType())
{_s}.setBaby()
set {_t} to {_p}'s tool
remove 1 of {_t} from {_p}
[16:24:33 ERROR]: The function 'ItemStack' does not exist. (vote.sk, line 13: set {mcoin} to new ItemStack(Material.EMERALD!)')
[16:24:33 ERROR]: LUCK!, 10, true is not a valid descriptor. (vote.sk, line 20: {_meta}.addEnchant(Enchantment.LUCK!, 10, true)#Enchantments have Fields and thus require the "!"')
[16:24:33 ERROR]: Can't understand this condition/effect: {_meta}.addItemFlags([ItemFlag.HIDE_ENCHANTS!, ItemFlag.HIDE_UNBREAKABLE!]) (vote.sk, line 21: {_meta}.addItemFlags([ItemFlag.HIDE_ENCHANTS!, ItemFlag.HIDE_UNBREAKABLE!])#an array is simply made by [%value% and %value2% etc]')
[16:24:33 ERROR]: The function 'ItemStack' does not exist. (vote.sk, line 27: set {mgrand} to new ItemStack(Material.EMERALD_BLOCK!)')
[16:24:33 ERROR]: LUCK!, 10, true is not a valid descriptor. (vote.sk, line 34: {_meta}.addEnchant(Enchantment.LUCK!, 10, true)#Enchantments have Fields and thus require the "!"')
[16:24:33 ERROR]: Can't understand this condition/effect: {_meta}.addItemFlags([ItemFlag.HIDE_ENCHANTS!, ItemFlag.HIDE_UNBREAKABLE!]) (vote.sk, line 35: {_meta}.addItemFlags([ItemFlag.HIDE_ENCHANTS!, ItemFlag.HIDE_UNBREAKABLE!])#an array is simply made by [%value% and %value2% etc]')
[16:24:42 ERROR]: Can't understand this condition/effect: event.getEntityType() is EntityType.PHANTOM! (shopitems.sk, line 33: event.getEntityType() is EntityType.PHANTOM!')
[16:24:42 ERROR]: Can't understand this condition/effect: {_p}.hasPotionEffect(PotionEffectType.NIGHT_VISION!) is true (shopitems.sk, line 36: {_p}.hasPotionEffect(PotionEffectType.NIGHT_VISION!) is true')
[16:24:42 ERROR]: Can't compare '{_p}.getStatistic(Statistic.TIME_SINCE_REST!)' with an integer (shopitems.sk, line 37: {_p}.getStatistic(Statistic.TIME_SINCE_REST!) < 72000')
[16:24:42 ERROR]: Can't understand this condition/effect: event.getHand() is EquipmentSlot.HAND! (shopitems.sk, line 43: event.getHand() is EquipmentSlot.HAND!')
[16:24:42 WARN]: List is missing 'and' or 'or', defaulting to 'and': {_e}.getLocation(), {_e}.getType() (shopitems.sk, line 49: set {_s} to {_p}.getWorld().spawnEntity({_e}.getLocation(), {_e}.getType())')
[16:24:42 ERROR]: TIME_SINCE_REST!, 0 is not a valid descriptor. (shopitems.sk, line 63: {_p}.setStatistic(Statistic.TIME_SINCE_REST!, 0)')
[16:24:42 WARN]: List is missing 'and' or 'or', defaulting to 'and': {_m}.getType(), 1 (shopitems.sk, line 82: event.setResult(new ItemStack({_m}.getType(), 1))')
[16:24:42 ERROR]: Can't understand this condition/effect: arg-1.hasPotionEffect(PotionEffectType.NIGHT_VISION!) is true (shopitems.sk, line 93: arg-1.hasPotionEffect(PotionEffectType.NIGHT_VISION!) is true')
[16:24:42 ERROR]: Can't understand this expression: arg-1.getStatistic(Statistic.TIME_SINCE_REST!) (shopitems.sk, line 99: send "%arg-1.getStatistic(Statistic.TIME_SINCE_REST!)%"')