Hi, I just made this account today, the new forums are awesome! Like xenforo over discourse 
Anyways, I made a post about a year ago on the other forums asking if you could take XP away, is this possible now? I couldn't find anything on the docs but it could be with some math or something. The other question is.. I have a random loot generator, but I'm having trouble enchanting the item with random vanilla enchantments. I've tried parsed as enchantment, without it with "%%" without it, I've tried a lot and to no avail, doesn't work. I've also tried enchanting {_loot} with {_e}, didn't work. Anyone have this problem or have a solution? Thanks!
Anyways, I made a post about a year ago on the other forums asking if you could take XP away, is this possible now? I couldn't find anything on the docs but it could be with some math or something. The other question is.. I have a random loot generator, but I'm having trouble enchanting the item with random vanilla enchantments. I've tried parsed as enchantment, without it with "%%" without it, I've tried a lot and to no avail, doesn't work. I've also tried enchanting {_loot} with {_e}, didn't work. Anyone have this problem or have a solution? Thanks!
code_language.skript:
set {_u} to block at player
set block at {_u} to chest
set {_prefix} to a random element of {randomitem_prefixes::*}
set {_suffix} to a random element of {randomitem_suffixes::*}
set {_loot?} to a random number between 1 and 100
if {_loot?} is less than or equal to 86:
set {_loot} to a random element of {commonrloot::*}
else if {_loot?} is less than or equal to 99:
else if {_loot?} is less than or equal to 100:
if {_loot} is any helmet:
set {_item} to "Helmet"
if {_loot} is any chestplate:
set {_item} to "Chestplate"
if {_loot} is any leggings:
set {_item} to "Leggings"
if {_loot} is any boots:
set {_item} to "Boots"
if {_loot} is any sword:
set {_item} to "Sword"
if {_loot} is any axe:
set {_item} to "Axe"
if {_loot} is any bow:
set {_item} to "Bow"
if {_loot} is any pickaxe:
set {_item} to "Pickaxe"
set {_e} to "protection 4" parsed as enchantment
if {_loot} is any helmet or chestplate or leggings or boots or sword or axe or bow or pickaxe:
set {_loot} to {_loot} of {_e} named "&7%{_prefix}%%{_item}% of %{_suffix}%"
broadcast "&e%{_loot}%"
add {_loot} to block at {_u}