#Prevent Using Custom Model Data in anvil
1 messages · Page 1 of 1 (latest)
you want event-inventory is an anvil inventory. Without the inventory at the end, Skript should treat anvil as an item or block
as for the name,
for "anvil rename text"
you are putting {item’s custom model data} inside of a var, that will never work
so smth like this?
on inventory click:
if event-inventory is an anvil inventory:
if gui-slot-type is result slot:
set {_item} to event's cursor
if {_item}'s custom model data is 1000:
cancel event
send "<red>You cannot use this item in the anvil." to the player
what is event's cursor? what is gui-slot-type?
you want to checkindex of event-slot. should be 0, 1, and 2
this is beginning to look AI generated… please do not use ai to generate code if you are
use event-slot and event-item instead of whatever those values are
gui-slot-type is from the skript plugin TuSKe
don’t use tuske anymore
remove it and switch to vanilla skript syntax
tuske is very outdated and buggy and should not be used anymore