I am a complete begginer to skript and theres a few problems with my skript I would like to figure out
The on drop section doesn't remove all of the banned items in the inventory
The on tool change section does remove items but only if there is a singular one, so if there is a stack of a banned item then it will not detect it
the on click section doesnt get the item that the player clicked on and instead gets the item thats in their hand
Thanks to anyone that can help
Options:
Ban List: dragon egg, or monster spawners, or spawn eggs, or bedrock, or barriers, or command blocks
Extra Inventory Check: true
Item Removed Message: A Banned Item from your Inventory has been removed!
on load:
set {banneditems::*} to {@Ban List}
on drop:
loop {banneditems::*}:
remove event-item from player's inventory
on tool change:
if {banneditems::*} contains player's held item:
remove 64 of tool from player's tool
send action bar "{@Item Removed Message}" to player
on click:
if {banneditems::*} contains player's held item:
remove 64 of tool from player's tool
send action bar "{@Item Removed Message}" to player
The on drop section doesn't remove all of the banned items in the inventory
The on tool change section does remove items but only if there is a singular one, so if there is a stack of a banned item then it will not detect it
the on click section doesnt get the item that the player clicked on and instead gets the item thats in their hand
Thanks to anyone that can help
Options:
Ban List: dragon egg, or monster spawners, or spawn eggs, or bedrock, or barriers, or command blocks
Extra Inventory Check: true
Item Removed Message: A Banned Item from your Inventory has been removed!
on load:
set {banneditems::*} to {@Ban List}
on drop:
loop {banneditems::*}:
remove event-item from player's inventory
on tool change:
if {banneditems::*} contains player's held item:
remove 64 of tool from player's tool
send action bar "{@Item Removed Message}" to player
on click:
if {banneditems::*} contains player's held item:
remove 64 of tool from player's tool
send action bar "{@Item Removed Message}" to player