event-slot in the event "on prepare craft" is the bottom right slot of the crafting table #4747
Closed
1 task done
Labels
bug
An issue that needs to be fixed. Alternatively, a PR fixing an issue.
completed
The issue has been fully resolved and the change will be in the next Skript update.
good first issue
An issue that would be good for a first-time contributor to make a PR for
priority: low
Issues that are not harmful to the experience but are related to useful changes or additions.
Skript/Server Version
Bug Description
The on prepare craft event has 3 event values, event-player, event-string and event-slot and for some this last one is the 9th slot of the crafting grid.
Expected Behavior
the event slot should be a relevant slot like the crafting result slot (or slot 0)
Steps to Reproduce
on preparing craft: {-preparing::%player%} != true set {-preparing::%player%} to true send index of event-slot set event-slot to dirt delete {-preparing::%player%}
the reason why i used a variable is because otherwise it would create an infinite loop (credit to Font#7283 for this)
anyway, by using this code or in general by using the event-slot value, it will turn out to be the 9th slot
Errors or Screenshots
No response
Other
No response
Agreement
The text was updated successfully, but these errors were encountered: