SkyBlock Minecraft Addon #27 - Improved anti afk, return to death position & new flag

in #utopian-io5 years ago (edited)
Enjoing the day by swimming in bubbly water is really refreshing! But it also bypassed the antiafk.sk protection, which now has been fixed. Players can still enjoy their time in these pools but without being afk.

Hello everyone,

today, I have new features and changes which I want to show you guys. It is now possible for players to teleport back to their death position, recipes can now be registered without SkQuery and a new challenge has been added this time. There also have been changes in SKYBLOCK.SK which allows it to be run with the current versions of SkQuery and Skript.

1. Repository

https://github.com/Abwasserrohr/SKYBLOCK.SK

2. Index

  1. Repository
  2. Index
  3. New Features and changes
    3.1 Added deathback add-on
    3.2 Added functions for adding new recipes
    3.3 Added sound to afk check add-on
    3.4 Upgrade to SkQuery 3.6.4
    3.5 Added tree branches flag
    3.6 Added water bubble streams to antiafk.sk
    3.7 Added new challenge to the default configuration
    3.8 Players now can visit homes of offline players
    3.9 Added support for Skript 2.3.6
  4. Pull requests
  5. GitHub Account
  6. How to contribute

3. New Features and changes

3.1 Added deathback add-on

@levant suggested that it would be nice to have a way to get back to the death location. This little add-on to SKYBLOCK.SK now allows players to get back to their death location. Since there is already an add-on, which saves the inventory on the death of the player, players can use this for free by typing in /back after they died to get back to the location.

Creating such an "add-on" is quite simple, I really like to use metadata for this, since it is temporary and bound to the server session.

Then, the player just has to enter the command which teleports directly to the saved location. I'm also using the prefix and suffix parameters of the getlang function here, which allows me to send the messages within one line to save space.

Pull request: https://github.com/Abwasserrohr/SKYBLOCK.SK/pull/285


3.2 Added functions for adding new recipes

Since the SkQuery function is using a deprecated bukkit method to register new crafting recipes, I created a new function which uses the current one to prevent errors in the console. This is also important since it makes SKYBLOCK.SK less dependent on SkQuery, which could be a good thing for long term support.

Creating new recipes now requires a NamespacedKey, before, this was not required. Creating a shaped recipe is really easy, as you can see. I can add multiple ingredients which are set to one of the nine crafting table slots. The D stands for Dirt and can be customized to other characters too to make it easy to understand later on.

Pull request: https://github.com/Abwasserrohr/SKYBLOCK.SK/pull/286


3.3 Added sound to afk check add-on

There has been a problem that people had only minimized the game for a short period of time. To prevent false positives, the afk check add-on now plays a sound which should inform people who are not afk but have minimized the game.

Pull request: https://github.com/Abwasserrohr/SKYBLOCK.SK/pull/287


3.4 Upgrade to SkQuery 3.6.4

Updating from an older version of SkQuery to the newest version with 3.6.4 was very important, as Minecraft 1.14 has been released yesterday and only current versions may get updated to Minecraft 1.14. Unfortunately, some SkQuery features did no longer work as expected on 3.6.4. To solve this issue, I changed SkQuery dependent parts, which were no longer working with custom solutions. This was very time consuming to detect and change but fortunately, it works without flaws now.

Pull request: https://github.com/Abwasserrohr/SKYBLOCK.SK/pull/295


3.5 Added tree branches flag

You can now allow or disallow trees to grow branches. This can be useful to prevent big trees from growing. Thank you for suggesting this flag, @flyerchen. =)

Using the StructureGrowEvent by bukkit, it is easy to detect growing trees. Then simply by getting the species of the tree, it can be determined if the tree has branches or not. Normal trees like "TREE" do not have any branches.

Pull request: https://github.com/Abwasserrohr/SKYBLOCK.SK/pull/298


3.6 Added water bubble streams to antiafk.sk

People are always trying new ways to bypass protections. This one is an easy bypass since bubble streams push the player up in such a way that it almost never repeats itself in the same way but with some built-in random velocity values which prevent `antiafk.sk` from detecting it. Since I now know that this is a problem, it is easy to prevent it from being used to bypass the afk protection. Thank you for reporting this issue to me, @levant. =)

If a player is within a bubbly water block, only the view of the player is now checked which results in inactivity, if the head of the player doesn't move.

Pull request: https://github.com/Abwasserrohr/SKYBLOCK.SK/pull/301


3.7 Added new challenge to default configuration

Some players suggested that it would be nice to have an arrow to bone block challenge built into the default configuration for challenges. Here it is. =)

I really like that it is easy to add new challenges if you have any ideas for new challenges, let me know.

Pull request: https://github.com/Abwasserrohr/SKYBLOCK.SK/pull/303


3.8 Players now can visit homes of offline players

Because of security concerns, it was not possible to visit the island homes of other players while they've been offline, even, if they have been trusted to prevent hidden griefing. But since the flags have been introduced a while ago and improved, there is no longer the need to prevent players from not visiting the homes of offline players, if it is enabled in the flags.

This is a really small change but I wanted to show it off here because it is useful to know that the function simply failed before because the first parameter was player, which has to be a player who is currently online. With the change, it now doesn't matter, since an offline player is used. Functions with an offline player parameter can also be called with a player instead of offline player and it will work just fine. =)

Pull request: https://github.com/Abwasserrohr/SKYBLOCK.SK/pull/304


3.9 Added support for Skript 2.3.6

As the upgrade to the newest SkQuery version was required, making SKYBLOCK.SK usable on the current Skript version is also very important. There also have been some minor changes in SKYBLOCK.SK, which were needed to work on Skript 2.3.6. There were more changes directly to the master, which have been detected because of smaller bugs later on.

Pull request: https://github.com/Abwasserrohr/SKYBLOCK.SK/pull/305


4. Pull requests

https://github.com/Abwasserrohr/SKYBLOCK.SK/pull/285
https://github.com/Abwasserrohr/SKYBLOCK.SK/pull/286
https://github.com/Abwasserrohr/SKYBLOCK.SK/pull/287
https://github.com/Abwasserrohr/SKYBLOCK.SK/pull/295
https://github.com/Abwasserrohr/SKYBLOCK.SK/pull/298
https://github.com/Abwasserrohr/SKYBLOCK.SK/pull/301
https://github.com/Abwasserrohr/SKYBLOCK.SK/pull/303
https://github.com/Abwasserrohr/SKYBLOCK.SK/pull/304
https://github.com/Abwasserrohr/SKYBLOCK.SK/pull/305


5. GitHub Account

https://github.com/Abwasserrohr


6. How to contribute

If you want to contribute to SKYBLOCK.SK, contact me here in the comments or on Discord. Please contact me directly, I'm the sewage pipe on Discord. I look forward to meeting people who want to get in touch with Skript and Minecraft.
If you never had anything to do with programming, SKYBLOCK.SK could be a great way to start. Skript is easy to learn and gives you the opportunity to understand how things work and also get the idea behind object-oriented languages, like Java while playing a game.

Discord: https://discord.gg/FRuK5BC


Thank you for reading my contribution post.

this time, dependencies have been updated to prepare for the new Minecraft Version 1.14. Since I'm also running a Minecraft server, I had not that much time for SKYBLOCK.SK this week. But once the dependencies for Minecraft 1.14 are out, I will try to get SKYBLOCK.SK to the newest version as fast as possible. I really wanted to make this post better with more pictures and videos but my time runs out since I'm busy with getting things to work on Minecraft 1.14.

I want to thank all people who give me feedback regularly and also new ideas here at the comments, you guys really help the project getting better and better over time. :)

If you have feedback about this contribution post, the new features, and changes or SKYBLOCK.SK as a whole, just comment below this post, I appreciate your feedback.

Have a great day,

@immanuel94

Sort:  
  • Awesome post with lots of images, code samples and explanations of coding choices.
  • Great commit and code comments as usual.
  • I had to look for the meaning of AFK, that's a new term for me.
  • Good luck with the 1.14 upgrade.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

Thank you for reviewing my contribution post. =)

Thank you for your review, @helo! Keep up the good work!

ich finde die neuen featchers im skyblock sehr gut

Hi @immanuel94!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 2.919 which ranks you at #11232 across all Steem accounts.
Your rank has improved 521 places in the last three days (old rank 11753).

In our last Algorithmic Curation Round, consisting of 339 contributions, your post is ranked at #293.

Evaluation of your UA score:
  • Only a few people are following you, try to convince more people with good work.
  • The readers appreciate your great work!
  • Try to work on user engagement: the more people that interact with you via the comments, the higher your UA score!

Feel free to join our @steem-ua Discord server

Hey, @immanuel94!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

Coin Marketplace

STEEM 0.19
TRX 0.15
JST 0.029
BTC 64349.20
ETH 2673.53
USDT 1.00
SBD 2.83