#disable mobs rpg drop (every mob)
/scoreboard players set #xrpg_no_drop xrpg_op 1
#enable again mobs rpg drop (every mob)
/scoreboard players set #xrpg_no_drop xrpg_op 0

#disable mob rpg drop (specific mob) 
/scoreboard players set @e[type=...,distance=...] xrpg_no_drop 1
#enable again mob rpg drop (specific mob) 
/scoreboard players set @e[type=...,distance=...] xrpg_no_drop 0

#override spawn level (every mob)
/scoreboard players set #xrpg_override_lvl xrpg_op <lvl number (0 to 100)>
#cancel override spawn level (every mob)
/scoreboard players set #xrpg_override_lvl xrpg_op -1


<ITEM GENERATION>

#to give you all items with a specific rarity use these commands 
/scoreboard players set #xrpg_give_rarity xrpg_op <lvl number (0 to 100)>
/function xylo_rpg:give/all
#use these commands to give you a core (after setting the rarity as before)
/function xylo_rpg:give/combat_ability_core
/function xylo_rpg:give/active_ability_core
/function xylo_rpg:give/passive_ability_core
/function xylo_rpg:give/skills_core

#to set items attributes use this command in a command block putting the items on a chest over the command block
/data modify block ~ ~1 ~ Items[].tag.xylo_rpg merge value {skills:{atk_dmg:10,range_dmg:10,magic_dmg:10,handling:10,mobility:10,health:10,energy_cap:10,energy_reg:10,stamina_cap:10,stamina_reg:10,oshield_cap:10,transm_eff:10},requirements:{atk_dmg:10,range_dmg:10,magic_dmg:10,handling:10,mobility:10,health:10,energy_cap:10,energy_reg:10,stamina_cap:10,stamina_reg:10,oshield_cap:10,transm_eff:10},elements:{darkness:10,light:10,fire:10,freeze:10,shock:10,air:10},upgrades:10}

#to set the class requirement use one of these (set the level to the class level you want (0 to 10))
/data modify block ~ ~1 ~ Items[].tag.xylo_rpg merge value.requirements.class set value {id:1,level:0,Name:'{"text":"Warlock"}'}
/data modify block ~ ~1 ~ Items[].tag.xylo_rpg merge value.requirements.class set value {id:2,level:0,Name:'{"text":"Hunter"}'}
/data modify block ~ ~1 ~ Items[].tag.xylo_rpg merge value.requirements.class set value {id:3,level:0,Name:'{"text":"Warrior"}'}
/data modify block ~ ~1 ~ Items[].tag.xylo_rpg merge value.requirements.class set value {id:4,level:0,Name:'{"text":"Assassin"}'}
/data modify block ~ ~1 ~ Items[].tag.xylo_rpg merge value.requirements.class set value {id:5,level:0,Name:'{"text":"Archer"}'}

#to update the lore, put the item in mainhand and use this
/function xylo_rpg:items/lore/set_mh

