Hi guys, I'm currently making a Magic Feather. The means of this type of skript is mainly for a 'new' way to break blocks. I've gotten alot of help from this site obviously from other threads. But this problem i can't seem to find anywhere...
First Problem:
I simply cannot rename a specific item in the players inventory. I know that i can set the name of player's held item to a specific name. Tho my problem is that, the player can quickly change slot, and the wrong item would be rename...
Second Problem:
I can't seem to find a way, to simulate a block breaking. I've used someone's code:
Dosen't exactly work, there's no errors when reloading, either in console. But it just dosen't work.
First Problem:
I simply cannot rename a specific item in the players inventory. I know that i can set the name of player's held item to a specific name. Tho my problem is that, the player can quickly change slot, and the wrong item would be rename...
Heres my skript (don't know how to make it nice and neat.)
Code:
on rightclick:
if held item is a feather:
if name of held item contains "&7Magisk Fjer &f(":
if {uses.%player%} is less than or equal to 2:
loop {Lumber.Mines.oak::*}:
if {Lumber.Mines.oak::%loop-index%} is equal to location of event-block:
add 1 to {uses.%player%}
set name of player's tool to "&7Magisk Fjer &f(%{uses.%player%}% / 3)"
loop 10 times:
show block break stage loop-number at event-block
wait 10 ticks
set event-block to air
remove 1 from {uses.%player%}
set name of player's tool to "&7Magisk Fjer &f(%{uses.%player%}% / 3)"
wait 1 minute
set event-block to oak log
Second Problem:
I can't seem to find a way, to simulate a block breaking. I've used someone's code:
Code:
loop 10 times:
show block break stage loop-number at event-block
wait 10 ticks
set event-block to air
Dosen't exactly work, there's no errors when reloading, either in console. But it just dosen't work.
Code:
loop 10 times:
show block break stage loop-number at event-block
wait 10 ticks
set event-block to air
Last edited: