Solved Lore checking 2.0 and making a item shiny

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

WiebeHero

Active Member
Aug 23, 2017
135
5
0
So little old me again guys XD.
I have been practicing a bit with lore and its been going great buuut something happend. (Of course)
When the sun rise all the mobs around me started gaining wither 1 and fake explosions of damage while i wasnt doing anytrhing nor hitting them with the item that contains the lore.
Infact whilst im doing this it just keeps applying the mobs with the wither 1 effect whilst the sword doesnt even have the specific lore! so here is the code right now.

on damage:
chance of 10%
if lore of attacker's held item contains "Wither I":
apply wither 1 to victim for 10 seconds
on damage:
chance of 100%
if lore of attacker's held item contains "Heavy Hand I":
create fake explosion at location of victim
remove damage/100 to victim's health

Best regards: WiebeHero
 
its likely because your damage event doesnt have the condition for the attacker needing to be a player. right now it will execute the code of of any damage
 
Good thinking my man/girl it fixed it! And maybe knowing how to make a item shiny? (glowing like a enchant but not having one)
 
Good thinking my man/girl it fixed it! And maybe knowing how to make a item shiny? (glowing like a enchant but not having one)
I use skrayfall for that:emoji_slight_smile: it has a shiny expression that does just that
 
Skrayfall? Whats that? And maybe (if you only want to) can you show it in coding itself?
 
Skrayfall? Whats that? And maybe (if you only want to) can you show it in coding itself?
its an addon. the expression is as easy as like
code_language.skript:
give player shiny pumpkin
or like
code_language.skript:
make slot 5 with shiny pickaxe
 
Aha an addon... Im gonna get that where do you put addons? just in the skript folder itself?
 
Reopening thread reason: now that the attacker is a player is fixed but now it will activate at eveything youre fist or any item you hold.
 
code_language.skript:
on damage:
    attacker is a player
    lore of attacker's held item contains "Heavy Hand I"
    create fake explosion at location of victim
    remove damage/100 from victim's health
That's what you're supposed to have on your code.
 
Alright thanks! But 1 more thing: it now doesnt register that you need that tool with that specific lore it just works on everything even youre hand....
[doublepost=1505037623,1505037530][/doublepost]And btw xUndenified no that method doesnt work i just tested...
 
And btw xUndenified no that method doesnt work i just tested...

And why is that?
If we're trying to help you we can't just guess what errors you get and what to do if you just tell us it doesn't work.
 
Status
Not open for further replies.