Added:
- Block durability
- Readded the string option for bungeecord UUID
Fixed:
- Some null pointers
- Bug fixes
Syntax:
Code (skript (Unknown Language)):
#Changers: set, add and remove (Number)
#Info: This was a test to see how minecraft handles block hardness/durability.
#This expression applys to all blocks of it's type. Not just one.
#When setting this, say you set the value to like 5.5 or something.
#The block won't break until the durability of the block has reached 5.5. This will stay contant.
#So if you break a block it won't break until X ticks after, this isn't the value 5.5 that's in ticks.
#It's just a strange mechanic I was playing around with. I thought the outcome would be different, but my hypothesis was wrong.
#Anyways you can get the hardness of any block which can be helpful.
[the] block (break delay|durability|hardness) of [all] %block%
[all] %block%'s block (break delay|durability|hardness)
Test script:
Code (skript (Unknown Language)):
command /hardness [<number>]:
trigger:
broadcast "%block hardness of target block%"
if arg 1 is set:
set block hardness of target block to arg 1
broadcast "&cNew: %block hardness of target block%"
command /test:
trigger:
set {_this} to bungeecord uuid of player
broadcast "%{_this}%"
set {_this} to bungeecord uuid of "%player%"
broadcast "%{_this}%"
set {_this} to bungeecord uuid of "%uuid of player%"
broadcast "%{_this}%"