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

Auto Stack Implementation #11

Merged
merged 11 commits into from
Jan 31, 2020
Merged

Auto Stack Implementation #11

merged 11 commits into from
Jan 31, 2020

Conversation

iZeaoGamer
Copy link
Contributor

@iZeaoGamer iZeaoGamer commented Jan 29, 2020

So since you liked my previous pull request, I thought I'd do another one. Also, I'm making this pull request because auto stack needs to be implemented. Otherwise, players can still lag out the server with spawners, or even lag the clients.
Without this implementation, players can possibly use it to their advantage, and abuse the system.

What does this Pull request provide?

As previously stated, this pull request provides auto spawner stacking. Whenever a new spawner is placed of the same type as the previously placed, spawners will connect, stack, whatever you'd like to call it. When stacked, it will stay connected, allowing you, or the players to have an enjoyable time whilst grinding their way up to victory. Again, this is great for Factions and skyblock servers that do provide spawners.
Auto stack is also very useful because it prevents lag a ton. Yes, this plugin may well have prevented some or even a lot of the lag, but this feature should prevent lag a lot more than before.

More fixes? Late fixes

I have recently fixed a bug, where spawn range would be 4 blocks to be exact. This was simply too short. Now, I don't know what it is in vanilla, so for now, I've put it to 16. I know it's a lot, but that's just temporary until if I know whether it's right or not. Because I'm assuming the person is referring to Spawn_range code from Issue #8.
This pull request fixes #8, which should be closed if this pull request fixes their issue. Not sure how complicated this would be though, I'm just assuming he's talking about Spawn range, since that was 4 blocks, and he stated around 5 blocks. Plus, the name seems similar to his issue. So I just went along with that.
This has also been tested to work with the latest versions of Pocketmine, and its latest plugin dev builds.

Anything else we need to know about?

No, except I've bumped plugin version to v0.0.5. I hope you don't mind.

Coming soon

  • Make spawn range configurable.

PHP Stan Testing?

Everything's tested to work, no errors found.

Any mentions?

I would once again, like to thank you for this awesome plugin! Truly means a lot to the MCPE and Pocketmine Community!

This update releases a new feature, which is virtual for all servers, which is called Auto spawner stack. It allows you to automatically stack spawners near of the same type. Tested to work, by the way.
- I've also ticked off "Auto stack" in README.MD since it's now complete.
- Version bump to v0.0.4.
whoops, that was meant to be in the previous commit. Creating Pull Request, and checking PHP Stan for errors.
This was originally meant to happen because v0.0.4 was the current version. We now use v0.0.5.
@varunbln
Copy link
Owner

The Autostacking part looks great, thank you for working on that. There's two issues however:

  1. suggestion  #8 is in reference to the load range, not the spawn range. The spawn range value is the radius around which a Spawner Tile randomly spawns a mob. So with the value you set of 16, a new mob stack would spawn anywhere in a 16 block radius, which is quite large. suggestion  #8 is talking about the Load_Range value, which is currently set to 15 so I'm not sure why that behavior occurs
  2. Once the issue with Load_Range is fine, I don't plan to hardcode the value, I'll add it to the config in a later release once I identify the issue.

The PR looks great otherwise, thank you again!

Soon, I plan to implement base spawn range configurable.
I’ve got it all setup, just need to add it to this pull request.
@iZeaoGamer
Copy link
Contributor Author

Okay, keep this pull request open until I make spawn range configurable. Since players can decide how far a mob spawns from the player’s render in blocks.

- Fixed varunbln#8 issue.
- Implemented Spawn range configuration option.
- Revert "Fix varunbln#8" first time round, and changed Spawn_Range option to 4. Since varunbln#8 is referring to Load_Range. Thanks for clarifying, @Heisenburger69
If no errors occurr, this should now be ready for merging.
@iZeaoGamer
Copy link
Contributor Author

Okay, done. Should be ready for merging, unless you have to say anything about issues that I added or made. Thank you!

@varunbln varunbln merged commit 0582815 into varunbln:master Jan 31, 2020
@varunbln
Copy link
Owner

This looks perfect, great job!

@AGTHARN AGTHARN mentioned this pull request May 3, 2020
@jaylac2000 jaylac2000 mentioned this pull request Jun 7, 2020
@MonoAdrian23 MonoAdrian23 mentioned this pull request Jul 29, 2020
@abcdavk abcdavk mentioned this pull request Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

suggestion
3 participants