#removes unbreaking enchantment from items
1 messages · Page 1 of 1 (latest)
send the code
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
players item add an apostrophe
idk how to do this 😭
there's no player in said event
how do i refer to everybody then (i really suck at thsi)
player's item that isn't proper syntax, it's a tool
Why not use the on pickup event
cant they just not hold the item in their hand?
yeah thats what i needed help with
do you have a illegal item issue on your server?
the server isnt up yet, but no, i don't want people having unbreaking at all
ooh i thought u meant the attribute
just use inventory click
so they cant apply it in the first place
how would it look?
lemme make it rq
do you want it only with armor?
how are you removing the enchant?
for me remove unbreaking from enchantments of event-slot doesnt work
this is what i have
on inventory click: remove unbreaking from the enchantments of player's helmet
its working for me 🤷♂️
for some reason my skript doesnt remove any enchantments
weird
code blocks are 3 backticks, not one
also, theres no player in a periodical event. You'd need to loop all players, but thats very inefficient. You could instead use on tool change, and on inventory click
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
dont spoonfeed
also, if you're gonna indent those conditions, you should make them if statements
forgot lol
and honestly, you could just use the enchant and anvil events and cancel them
enchant tables + mob drops
they dont require clicks or inventory closes to use them
items can spawn as loot with unbreaking
how would i only remove enchantmnets from one type of item?
like if i didnt want unbreaking on shields
check the type
if raw name of item is "minecraft:shield"
.
would this work?
if raw name of item is "minecraft:shield":
disenchant the player's item```
yes and no
wait no
it disenchants the player's item
ohh
do event-slot
why not just type of event-slot = shield
wheres the fun in efficiency?
you can spell fun with the letters in the word counterproductive, but not efficient
does it have to be through event-slot
thats the slot you click
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
hmm if only a solution was provided
There's an f in counterproductive?
I'm not seeing one
s
Dude this was 2 1/2 months ago
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
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.
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
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
not not yall specifically
I haven't gotten help from ANYONE in the community about my topic
well they havent stuck with me
I said "s" to keep this post opened so I could try out the code