Skript Version (do not put latest): Skript 2.3.2
Skript Author: Bensku
Minecraft Version: 1.13.2
---
Full Code:
Errors on Reload:
Nill
Console Errors: (if applicable)
Nill
Addons using (including versions):
None
Troubleshooting:
Have you tried searching the docs? Yes
Have you tried searching the forums? No
What other methods have you tried to fix it? I have eliminated everything irrelevant to this very process.
Explanation: When a player picks up a diamond pickaxe enchanted with fortune, this code sends the message "Pass B" which should not send based on the conditions. It also has the seemingly exact conditions as the message "Pass A", which is not sent.
What's occurring here is either a mystery or going right over my head. Help is greatly appreciated!
Skript Author: Bensku
Minecraft Version: 1.13.2
---
Full Code:
Code:
player picking up diamond pickaxe:
if item is not enchanted with fortune:
send "Pass a" to player
if allowedToObtain(player, item, "fortune") is false:
cancel event
function allowedToObtain(p: player, i: item, e1: string) :: boolean:
if {_i} is not enchanted with {_e1}:
send "Pass b" to {_p}
return true
return false
Errors on Reload:
Nill
Console Errors: (if applicable)
Nill
Addons using (including versions):
None
Troubleshooting:
Have you tried searching the docs? Yes
Have you tried searching the forums? No
What other methods have you tried to fix it? I have eliminated everything irrelevant to this very process.
Explanation: When a player picks up a diamond pickaxe enchanted with fortune, this code sends the message "Pass B" which should not send based on the conditions. It also has the seemingly exact conditions as the message "Pass A", which is not sent.
What's occurring here is either a mystery or going right over my head. Help is greatly appreciated!