#Consuming custom model data suspicious stew is giving me a wooden bowl instead of a ceramic bowl

1 messages · Page 1 of 1 (latest)

carmine pasture
#

For the record, this is the bowl it's supposed to give. I tested just giving {_bowl} alone and it's set correctly.

oblique imp
#

this shit to advanced for merezzeddown

#

otherwise i wouldve helped

#

sorryyy

ionic lava
#

Instead of item if player

#

Try players tool

#

Also why not set {_bowl} later

carmine pasture
#

It doesn't seem to work, also I am going to be setting all the items all in one area

#

    # Setting items
    set {_bowl} to 1 of bowl
    set custom model data of {_bowl} to 1

    if event-item has custom model data:
        if event-item is suspicious stew:
            if player's tool is event-item or bowl:
                set item of player to {_bowl}
            else:
                set offhand item of player to {_bowl}```
#

I guess I can do the setting later then

#
on consume:
    if event-item has custom model data:

        # Give ceramic bowl
        if event-item is suspicious stew:
            set {_bowl} to 1 of bowl
            set custom model data of {_bowl} to 1
            if player's selected hotbar slot is not event-item or bowl:
                set item of player to {_bowl}
            else:
                set offhand item of player to {_bowl}```
I made it look for hotbar slot instead and give the new bowl if it is NOT suspicious stew or a bowl and it worked. So whatever the problem is, it thinks I'm not holding either a bowl or the suspicious stew in my hand. I have no idea what is wrong because it is either one or the other after eating.