Hot Summer Deals are Here!
Celebrate with up to 90% off on 16,800 resources
04
Days
04
Hours
25
Mins
44
Secs

Java Skript Expression

Status
This thread has been locked.

Innings

Reputable Seller
Supreme
Feedback score
28
Posts
879
Reactions
267
Resources
0
I am in need of a java skript expression that links into deluxemenu. This would just simply check if a player is holding a pickaxe in their hand or not, any type of pickaxe.

I would like to get this for a vouch but not sure how complex it is.
 
PebbleHost
High performance, consistent uptime and fast support. Minecraft hosting that just works.

FireFlower

Feedback score
6
Posts
228
Reactions
48
Resources
0
I looked at the versions and it looks like they all released after 1.9. https://api.extendedclip.com/expansions/player/versions/ I'd recommend looking for a different Papi extension which supports getting the item in hand for 1.8.8 and below, or asking the author to add support for 1.8.8.

After that, you might have to replace %player_item_in_hand% with the new placeholder in the javascript.
'"%player_item_in_hand%".toLowerCase().contains("pickaxe");'
 

Innings

Reputable Seller
Supreme
Feedback score
28
Posts
879
Reactions
267
Resources
0
I looked at the versions and it looks like they all released after 1.9. https://api.extendedclip.com/expansions/player/versions/ I'd recommend looking for a different Papi extension which supports getting the item in hand for 1.8.8 and below, or asking the author to add support for 1.8.8.

After that, you might have to replace %player_item_in_hand% with the new placeholder in the javascript.
'"%player_item_in_hand%".toLowerCase().contains("pickaxe");'
Would it be possible to use this?

%player_hasitem-mat:<MATERIAL>-amt:<amount>-data:<data value>%

Found it here: https://www.spigotmc.org/wiki/placeholderapi-placeholders/

not sure when it was added.
 

FireFlower

Feedback score
6
Posts
228
Reactions
48
Resources
0
Probably, I haven't looked into that placeholder. You'd probably need a really long js expression though. I'd assume about 4 to 8 times as long[DOUBLEPOST=1546916120][/DOUBLEPOST]The length of the expression isn't the issue, I just don't have the time to work on the solution
 
Last edited:
Status
This thread has been locked.
Top