#Item doesn't enchant

1 messages · Page 1 of 1 (latest)

candid juniper
#

On short, I want the sharpness level to increase, but when applying the nether star the level stays the same.

low gulch
#

Idk if that's valid syntax, but what if you just did set (level of sharpness of event-slot) to (level of sharpness of event-slot) + 1

candid juniper
#

It's a valid syntax but it doesn't work sadly

frozen jacinth
#

U need index of event slot

#

I belive event-slot returns the item not the slot number

candid juniper
#

Eh, wdym

low gulch
#

Right, try using event-item instead

candid juniper
#

Yeah

#

You're right

#

It enchants all good now, one last issue though with the placeholder at the end

frozen jacinth
#

Ohhhhhh

candid juniper
frozen jacinth
#

Now I get what u tryna do

#

What is event slot

#

In this case

candid juniper
#

event-item is correct

frozen jacinth
#

Ok but does the item you are clicking have sharpness

candid juniper
#

yep

#

Works both with and without sharpness

#

it does +1 either way

frozen jacinth
#

I'm talking abt the none

#

In the msg

candid juniper
#

the <none> appears every time no matter the current level

#

if that's what you're asking

frozen jacinth
#

Ok

#

Ohh

#

Move the + 1 outside of the brackets

candid juniper
#

Perfect, works flawlessly now

#

Thanks a lot for the help

#

Btw any ideas how I can make the nether star disappear afterwards?

#

So it's a 1 time use you know?

frozen jacinth
#

Set event slot to something

#

Or event item

#

Once you click on it

#

Like air

#

Or glass pane

candid juniper
#

Yeah but it would set the diamond sword to air, not the nether star I think

frozen jacinth
#

Ohhh

#

Mb again

candid juniper
#

Yee cause I tried that lol

frozen jacinth
#

Remove 1 of player's tool from inventory of player

candid juniper
#

so this will remove the item they are dragging ( nether star ) ?

#

after using it

frozen jacinth
#

You really need to explain more before asking the question

#

Is the player holding the star or dragging it

candid juniper
#

Mb, so the player opens the inventory

#

they are in their inventory

#

they click the nether star

#

then they drag it over the sword

#

and click on the sword with the nether star

#

the sword increases in sharpness, the nether star disappears after

frozen jacinth
#

Ic

candid juniper
#

Sword with nether star

frozen jacinth
#

Not sure if this would work but try set player's cursor slot to air

candid juniper
#

Works, would there be another alternative maybe?

#

Because the nether star dissapears and the sword then gets in the cursor slot

#

If there's another altnernative to just making the star disappear that'd be awesome, yk look better

#

If not that's fine

frozen jacinth