Skip to content

Goat Support#7479

Merged
Efnilite merged 18 commits into
SkriptLang:dev/featurefrom
Absolutionism:dev/GoatSupport
Mar 30, 2025
Merged

Goat Support#7479
Efnilite merged 18 commits into
SkriptLang:dev/featurefrom
Absolutionism:dev/GoatSupport

Conversation

@Absolutionism
Copy link
Copy Markdown
Contributor

Description

This PR aims to add additional support for Goats:

  • Change which horns a goat has and a condition to match
  • Make goats and endermen (Paper) scream and a condition to match
  • Make goats ram an entity (Paper)

Changing the horns of a goat takes a tick thus leading to no test.


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

Copy link
Copy Markdown
Contributor

@ShaneBeee ShaneBeee left a comment

Choose a reason for hiding this comment

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

Looks good, just a few ideas about the patterns.

Comment thread src/main/java/ch/njol/skript/conditions/CondGoatHorns.java Outdated
Comment thread src/main/java/ch/njol/skript/effects/EffGoatHorns.java Outdated
Comment thread src/main/java/ch/njol/skript/effects/EffScreaming.java Outdated
Comment thread src/main/java/ch/njol/skript/effects/EffGoatHorns.java Outdated
Comment thread src/main/java/ch/njol/skript/effects/EffScreaming.java Outdated
Comment thread src/main/java/ch/njol/skript/conditions/CondIsScreaming.java Outdated
Comment thread src/main/java/ch/njol/skript/effects/EffScreaming.java Outdated
@Efnilite Efnilite added the enhancement Feature request, an issue about something that could be improved, or a PR improving something. label Jan 20, 2025
Copy link
Copy Markdown
Contributor

@ShaneBeee ShaneBeee left a comment

Choose a reason for hiding this comment

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

Looks good, just a few minor nit picks.
Also, I'm assuming no test for ram, as that'd be hard to do, but is there a reason there is no horn test?

Comment thread src/main/java/ch/njol/skript/conditions/CondIsScreaming.java Outdated
Comment thread src/main/java/ch/njol/skript/effects/EffScreaming.java Outdated
Comment thread src/main/java/ch/njol/skript/effects/EffGoatHorns.java
Comment thread src/main/java/ch/njol/skript/conditions/CondGoatHorns.java Outdated
Comment thread src/main/java/ch/njol/skript/effects/EffGoatHorns.java Outdated
@Absolutionism
Copy link
Copy Markdown
Contributor Author

@Efnilite Can you share some info on why this isn't working? Doing what you said to do.

Comment thread src/main/java/ch/njol/skript/conditions/CondGoatHorns.java Outdated
@Absolutionism
Copy link
Copy Markdown
Contributor Author

Since it seems that the JUnit testing environment doesn't support tests that require tick(s) as well. I have commented out the ensure ... within the goat horns test. I don't think this PR should be on halt until if and when the JUnit testing environment does get fixed allowing the test to successfully pass. But if and when it does get fixed, all that is needed to be done would be to uncomment the one line and the test would be good to go.

Comment thread src/main/java/ch/njol/skript/conditions/CondGoatHorns.java Outdated
Comment thread src/main/java/ch/njol/skript/conditions/CondGoatHorns.java Outdated
Comment thread src/main/java/ch/njol/skript/effects/EffGoatHorns.java Outdated
@Absolutionism Absolutionism requested a review from sovdeeth March 16, 2025 01:43
@Absolutionism Absolutionism requested a review from a team as a code owner March 19, 2025 22:33
@Absolutionism Absolutionism requested review from erenkarakal and removed request for ShaneBeee March 19, 2025 22:33
@sovdeeth sovdeeth removed the request for review from a team March 21, 2025 01:50
Comment thread src/main/java/ch/njol/skript/conditions/CondGoatHasHorns.java
Comment thread src/main/java/ch/njol/skript/conditions/CondIsScreaming.java Outdated
@sovdeeth sovdeeth added the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label Mar 21, 2025
@sovdeeth sovdeeth requested a review from ShaneBeee March 21, 2025 02:02
@Efnilite Efnilite merged commit 5f918a5 into SkriptLang:dev/feature Mar 30, 2025
erenkarakal pushed a commit to erenkarakal/Skript that referenced this pull request Nov 26, 2025
* Initial Commit

* Ram Note

* Requested Changes

* Docs Update

* Semi-Update

Pushing so I can pull other changes

* No Work

* update junit tests

* Void GoatHorns Test

* Requested Changes

* Example Annotation

---------

Co-authored-by: SirSmurfy2 <82696841+TheAbsolutionism@users.noreply.github.com>
Co-authored-by: Efnilite <35348263+Efnilite@users.noreply.github.com>
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. feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants