#Overriding Minecraft effects

1 messages · Page 1 of 1 (latest)

undone pivot
#

So I want the order of events to happen:

Player mines Tuff Block > They get mining fatigue 3 > They move to mining andesite > They get mining fatigue 2

But because of Minecraft's overriding system with effects, they keep mining fatigue 3 instead, here is the code for it:

on block damage:
    if event-block is tuff:
        execute console command "effect give %player% minecraft:mining_fatigue 999999 2 true"
    else if event-block is andesite:
        execute console command "effect give %player% minecraft:mining_fatigue 999999 1 true"
    else if event-block is bedrock:
        stop
    else:
        execute console command "effect clear %player% minecraft:mining_fatigue"
exotic yacht
#

use skript to apply/remove effects, not console commands

#

also, can bedrock even be damaged?

undone pivot
#

The idea of having bedrock there is so that when the block regenerate as bedrock the effect doesnt get removed so they can mine faster

undone pivot
exotic yacht
#

mhmm

undone pivot
#

man... if I knew sooner

#

Lmao, sorry about the waste of time haha

#

So like apply mining fatigue potion of tier 2 without any particles whilst hiding the potion icon to the player?

#

I looked on the SkHub but thats all I could find for it

exotic yacht
#

thats the effect, yeah

undone pivot
#

I tried it but still same outcome

#

the tier 3 effect would stay when I applied the tier 2

exotic yacht
#

you can remove it

undone pivot
#

And I'm assuming just replace apply with remove?

exotic yacht
#

Whatever the syntax you found on the docs is

undone pivot
#

Okay, so everything has went to shit kinda, So I learn that mining fatigue ignores efficiency and now I cant think of any way to acomplish what I want out of this

#

this is the closest I could get to it but still, it doesnt work cause mining fatigue ignores efficiency

#

If anything I am soon to give up with this, I just want there to be like a fake block hardness for other blocks so that it takes longer to mines thats all ive been trying to acomplish but I just havent had any luck, this is my 4th day in a row working on this and I am burnt out and cant think of any other way to do the "block hardness"

#

I tried attribues already but because they cant go under 0 that limits me because the default vaule is 1 so that is not that wide of a rage to change a players mining speed

exotic yacht
#

why do we use efficiency now?

#

you can remove mining fatigue 3 and then give 2