As The Title Says I need help seeing if players inventory is full right now i have a script like this
i want it to test if the players inventory is full and if it is send "&4&lYour Inventory is full!!!" to them!
Code:
on mine:
if gamemode of player is survival:
if player is in world "Gens":
set {_fortune} to the level of fortune on player's tool
set {_no_bonus_chance} to 0 / ({_fortune} + 1)
set {_rand_pick} to a random number between 1 and 1
set {_num_drops} to 1
if {_rand_pick} is greater than {_no_bonus_chance}:
set {_num_drops} to a random integer between ({_fortune} + 1) and ({_fortune} + 1)
clear drops
if event-block is oak log:
give {_num_drops} of oak log to player
else if event-block is stone:
give {_num_drops} of cobblestone to player
else if event-block is coal ore:
give {_num_drops} of coal to player
else if event-block is iron ore:
give {_num_drops} of iron ingot to player
else if event-block is gold ore:
give {_num_drops} of gold ingot to player
else if event-block is diamond ore:
give {_num_drops} of diamond to player
else if event-block is emerald ore:
give {_num_drops} of emerald to player
else if event-block is nether quartz ore:
give {_num_drops} of quartz to player
else if event-block is sculk:
give {_num_drops} of sculk to player
else if event-block is ancient debris:
give {_num_drops} of netherite ingot to player
else if event-block is amethyst block:
give {_num_drops} of amethyst block to player
else if event-block is lapis ore:
give {_num_drops} of lapis lazuli to player
else if event-block is lapis block:
give {_num_drops} of lapis block to player
else if event-block is emerald block:
give {_num_drops} of emerald block to player
else if event-block is netherite block:
give {_num_drops} of netherite block to player
else if event-block is copper block:
give {_num_drops} of copper block to player
else if event-block is diamond block:
give {_num_drops} of diamond block to player
else if event-block is gold block:
give {_num_drops} of gold block to player
else if event-block is iron block:
give {_num_drops} of iron block to player