Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FurnaceEvents, Expressions #7093

Open
wants to merge 12 commits into
base: dev/feature
Choose a base branch
from

Conversation

TheAbsolutionism
Copy link

Description

This PR aims to add two of of the missing furnace events, and a rewrite of old expressions plus addition of new expressions


Target Minecraft Versions: any
Requirements: none
Related Issues: none

Copy link
Member

@sovdeeth sovdeeth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

first look over

src/test/skript/tests/syntaxes/expressions/ExprFurnace.sk Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/events/EvtFurnace.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/events/EvtFurnace.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/events/EvtFurnace.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/events/EvtFurnace.java Outdated Show resolved Hide resolved
Comment on lines 126 to 128
if (!explicitlyBlock && event instanceof FurnaceStartSmeltEvent startEvent) {
return new Timespan(Timespan.TimePeriod.TICK, startEvent.getTotalCookTime());
} else {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this concerns me, since time of event-block and time might return different values.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I test that out or do you have something in mind?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should definitely test that

@cheeezburga cheeezburga added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Sep 19, 2024
Copy link
Member

@Efnilite Efnilite left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this must've taken ages, good work! i can't even review it all at once :)

src/main/java/ch/njol/skript/events/EvtFurnace.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/events/EvtFurnace.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/events/EvtFurnace.java Outdated Show resolved Hide resolved
src/main/java/ch/njol/skript/events/EvtFurnace.java Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature request, an issue about something that could be improved, or a PR improving something.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants