Jump to content

I need help!


JVideo

Recommended Posts

Hello, I am working a custom fortune function skript that only works on certain block but it gives me the item every time I break any block. Can someone help me please?

on break:
	set {_u} to uuid of player
	cancel drops
	fortune(player, deepslate, stone with lore "&7Its stone" with all flags hidden, "%event-block%")

function item(p: player, e: item, i: int):
	give {_p} {_i} of {_e}
function fortune(p: player, e: item, e2: item, e3: text):
	if {_e3} = {_e}:
		set {_e3} to air
		wait 10 ticks
		set {_e3} to {_e}
	if level of fortune of {_p}'s tool > 0:
		item({_p}, {_e2}, level of fortune of {_p}'s tool)
	else:
		item({_p}, {_e2}, 1)

 

image.png

Link to comment
Share on other sites

Hello!

It seems that you resolved your concern on your own, so to prevent from unneccesary remarks from being made on this post, I will be locking this post ^^

 

Have a good day!

Jagaimo🥔
Bestofrendo Moderator
Bread Banker

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...