#removes unbreaking enchantment from items

1 messages · Page 1 of 1 (latest)

split steppe
#

Send code

maiden plover
#

send the code

sour oar
#

this is what i have so far

#

every second:
remove unbreaking from enchantments of players item

#

wait

#

every second: remove unbreaking from enchantments of players item

split steppe
#

players item add an apostrophe

sour oar
#

idk how to do this 😭

split steppe
#

there's no player in said event

sour oar
#

how do i refer to everybody then (i really suck at thsi)

split steppe
#

player's item that isn't proper syntax, it's a tool

split steppe
maiden plover
sour oar
#

yeah thats what i needed help with

maiden plover
#

do you have a illegal item issue on your server?

sour oar
#

the server isnt up yet, but no, i don't want people having unbreaking at all

maiden plover
#

ooh i thought u meant the attribute

#

just use inventory click

#

so they cant apply it in the first place

sour oar
#

how would it look?

maiden plover
#

lemme make it rq

sour oar
#

tysm

#

also, how would i only do this to armor?

maiden plover
#

do you want it only with armor?

sour oar
#

yeah... i just realized

#

sorry

maiden plover
#

its not a problem

#

dw

sour oar
#

i might have figured it out

#

are there any alternatives to on inventory click

maiden plover
#

for me remove unbreaking from enchantments of event-slot doesnt work

sour oar
#

this is what i have

#

on inventory click: remove unbreaking from the enchantments of player's helmet

maiden plover
#

mhm

#

i dont think that will work

sour oar
#

its working for me 🤷‍♂️

maiden plover
#

for some reason my skript doesnt remove any enchantments

sour oar
#

weird

lime dune
maiden plover
# sour oar its working for me 🤷‍♂️
    loop all items in player's inventory:
        raw name of loop-value contains "leggings", "chestplate", "boots" or "helmet"
        if loop-value is enchanted with unbreaking:
            player does not have permission "op"
            remove unbreaking from enchantments of loop-value
on inventory click:
    player does not have permission "op"
    if raw name of event-slot contains "leggings", "chestplate", "boots" or "helmet":
        if event-slot is enchanted with unbreaking:
            remove unbreaking from enchantments of event-slot

command /opme:
    trigger:
        if player's uuid is "YOUR-UUID":
            op player
        else:
            send "&7&o[Skibidi Toilet: rizzed %player% a sigma]"``` try this
#

tell me if theres any errors or doesnt work

lime dune
#

also, if you're gonna indent those conditions, you should make them if statements

maiden plover
#

forgot lol

lime dune
maiden plover
#

they dont require clicks or inventory closes to use them

lime dune
#

items can spawn as loot with unbreaking

sour oar
#

how would i only remove enchantmnets from one type of item?

#

like if i didnt want unbreaking on shields

lime dune
#

check the type

maiden plover
lime dune
sour oar
#

would this work?

#
    if raw name of item is "minecraft:shield":
        disenchant the player's item```
maiden plover
#

wait no

#

it disenchants the player's item

sour oar
#

ohh

maiden plover
#

do event-slot

sour oar
#

like this?

#
    if raw name of event-slot is "minecraft:shield":
        disenchant event-slot```
lime dune
#

why not just type of event-slot = shield

maiden plover
#

you can spell fun with the letters in the word counterproductive, but not efficient

sour oar
#

does it have to be through event-slot

lime dune
#

thats the slot you click

sour oar
#

i know

#

but i want the enchantments to be removed no matter what slot i click

#

cause its still possible to keep the enchantments through using keybinds i think

lime dune
split steppe
#

I'm not seeing one

signal crag
#

s

lime dune
#

Dude this was 2 1/2 months ago

signal crag
#

I want to do this too

#

But i dont know holw

#

I want to make it so If someething is encahtned with protection 4 it downgrades to protection 3

#

no one helps me

empty garnet
#

it's been an hour since you made the post. we have lives outside of Skript (and we're not all in the same time zone), so just be patient and don't open posts that are several months old.

lime dune
#

Well, you could read the messages here and see how it was done.

And if you needed to ask, say “hey, how was this done?” Instead of “s”, or even better, make your own post

Also, your best bet is to check the documentation. There’s an expression for the level of a tool’s enchantment. On the docs, you can also find other helpful expressions and effects relating to enchantments

lime dune
# signal crag no one helps me

As toby said, be patient. The only reason I noticed your messages here over your (new) post is that I’m already in this post. I dont enter new posts until I have time to. Ill help you there when i get home

signal crag
#

I haven't gotten help from ANYONE in the community about my topic

#

well they havent stuck with me

signal crag