Commit Graph

149 Commits

Author SHA1 Message Date
tastybento
87fb333753 Better structures. 2023-03-11 21:37:21 -08:00
tastybento
c30841440b Load all known templates when loading. 2023-03-10 18:53:52 -08:00
tastybento
4ea09eab68 Lots of improvements on structures 2023-03-10 11:21:51 -08:00
tastybento
d80035b8f2 Handle NBT items and with more structures placed 2023-03-05 14:38:04 -08:00
tastybento
af2ec9c483 Support rotation on loading 2023-03-05 08:15:16 -08:00
tastybento
8915ef18f1 Better structures 2023-03-04 22:35:44 -08:00
tastybento
a359f097b9 Added new admin command to place and record structures
This command will save the structure in the structures.yml file so that
it can be made when players make a new Box. Note that the server needs
to know about these before they can be loaded (API bug?) by issuing the
/place command or having had them load sometime previously in the
server, e.g., by going into a biome. Just needs to be done once.
2023-03-04 18:44:10 -08:00
tastybento
161b254d77 Remove Jigsaw blocks after pasting. 2023-03-04 16:38:35 -08:00
tastybento
c3e5d09283 Past structures when new area is made
WIP - needs to address Jigsaw blocks that are also pasted.
2023-03-04 09:53:16 -08:00
tastybento
77f182355e Merge branch 'develop' of https://github.com/BentoBoxWorld/Boxed.git
into develop
2023-02-11 08:32:58 -08:00
tastybento
b69206e032 Fix out of bounds error 2023-02-11 08:30:19 -08:00
tastybento
999a2cbb89 Shifted debug to warnings or errors 2023-01-29 22:23:16 -08:00
tastybento
e8033dc18f Fixed bugs. Currently only works with seed-start at 0,0 2023-01-29 22:20:58 -08:00
tastybento
54a559fc79 Removed debug 2023-01-02 20:25:15 -08:00
tastybento
af40f5e816 Added Nether Fortress advancement giver 2023-01-02 20:25:07 -08:00
tastybento
36a776945c Custom biomes and updated blueprint. 2022-12-24 10:37:57 -08:00
tastybento
f8e8656b86 Import cleanup 2022-12-21 20:43:59 -08:00
tastybento
8392af1913 Fix water below y=0 issue 2022-12-21 20:43:05 -08:00
tastybento
52a5aea3e0 Reorganizing generator classes 2022-12-21 11:11:50 -08:00
tastybento
4a675e0433 Custom biomes and vanilla biomes mixed
This covers the overworld. Next is to do the nether.
2022-12-21 11:09:16 -08:00
tastybento
c7880b355d WIP. 2022-12-17 08:39:27 -08:00
tastybento
d730ba725a Now with a block populator.
This helps copy over the blocks from the seed world that need extra
settings and also populates entities.
2022-12-11 10:31:43 -08:00
tastybento
739b1d5eab Performs nether 2022-12-09 20:22:06 -08:00
tastybento
e6026dca4f Copies directly from seed world and places structures 2022-12-03 21:41:56 -08:00
tastybento
12e1568c75 Added structure pasting - WIP
Does not work if chunks around the paste point are not loaded.
2022-12-03 09:40:08 -08:00
tastybento
29121d6fdb
Update to 1.19.2 with new custom world generator (#44)
* Baseline world gen. Random.

* Work in progress - noise gen needs fixing.

* WIP

* WIP - redesign to use new world gen API

Work still to do - handle island deletion (may not be supported) and
test with multiple players. Clean up config.

* Bug fixes

Added better handling of aquatic elements. Avoid informing players of
revoked achievements if the score is zero. Added the mangrove boat
recipe to be ignored.

* Add default score of unknown recipes

* Fixed some biomes

* Now with correct math for repeating islands

* Java 17 workflow for Github

* Put back what was accidentally removed.

* Code cleanup. Remove debug.

* Double for int calcs

* More code cleanup and using new switch syntax
2022-11-26 23:53:32 -08:00
tastybento
8b8dcfa236 Add an option to revoke visitor advancements or not
https://github.com/BentoBoxWorld/Boxed/issues/38
2021-12-11 16:31:47 -08:00
Katorly
9e300914d4
Create zh-CN.yml (#34)
Added zh(CN) language support for the plugin.
2021-10-04 22:43:21 -07:00
tastybento
3607c4bd60 Use correct API for setting home locations. 2021-10-01 19:13:53 -07:00
tastybento
e99802ba33
Version 1.2.1 (#32)
* Version 1.2.1

* Added null checks.

* Added null checks.

* Added tests for Settings.

* Improve code smells

* Updated .gitignore

* Made fields local

* JavaDoc fixes

* Make fields final

* Removed exception

* Renamed plugin Pladdon

* Enderpearls were moving islandd centers in other worlds

https://github.com/BentoBoxWorld/Boxed/issues/31
2021-09-16 17:38:06 -07:00
tastybento
4d0046fcdc Enderpearls were moving islandd centers in other worlds
https://github.com/BentoBoxWorld/Boxed/issues/31
2021-09-16 16:58:11 -07:00
tastybento
764402bdeb Renamed plugin Pladdon 2021-08-12 18:50:00 -07:00
tastybento
8ecc106f75 Removed exception 2021-07-31 11:05:55 -07:00
tastybento
2c6c59e4aa Make fields final 2021-07-31 11:05:40 -07:00
tastybento
2fe7df2824 JavaDoc fixes 2021-07-31 11:05:16 -07:00
tastybento
1c55fea7d5 Made fields local 2021-07-31 11:03:15 -07:00
tastybento
ec25abdea4 Improve code smells 2021-07-30 22:17:04 -07:00
tastybento
229dff6c55 Added tests for Settings. 2021-07-24 21:20:45 -07:00
tastybento
4b83e9b770 Added null checks. 2021-07-24 21:13:46 -07:00
tastybento
b897a71cd2 Added null checks. 2021-07-24 14:20:24 -07:00
tastybento
3077329848 Convert to Pladdon 2021-06-27 09:13:36 -07:00
tastybento
3b4dddf040 Java 16, BentoBox 1.17.0 2021-06-27 09:04:23 -07:00
tastybento
8747e9a6db Work with 1.17 WorldGeneratorAPI 2021-06-26 07:51:44 -07:00
tastybento
bde1fa97d6 Fixes issue where advancements were synced in the wrong world
When teleporting, the advancements were synced before the teleport
completed. This uses a different event.

https://github.com/BentoBoxWorld/Boxed/issues/26
2021-04-28 20:26:50 -07:00
tastybento
92d3a57362 Fixes issue where players lost a box size increment.
All boxes start with a minimum size of 1. This was not being included in
the box size calculation, so players were erroneously losing one box
size when they logged in or teleported.
2021-04-25 18:08:36 -07:00
tastybento
eb361a8579 Added spawn_here sign for nether blueprint. 2021-04-25 16:39:49 -07:00
tastybento
4079f2bdc0 Add two placeholders that list the number of advancements done for a box
%boxed_island_advancements% - the number of advancements for a
particular user
%boxed_visited_island_advancements% - the number of advancements based
on where the user is located.

If there is no box, the return value is "". Values are still given if
the player is outside the protected area but inside the overall
potential box size.

Only advancements that were not automatically given are counted.


https://github.com/BentoBoxWorld/Boxed/issues/20
2021-04-25 16:03:37 -07:00
tastybento
d30502c72b Save settings after loading.
https://github.com/BentoBoxWorld/BSkyBlock/issues/401
2021-04-25 11:12:07 -07:00
tastybento
c404c9a1ae Fixes bug where new boxes had their protection size reduced to 0 2021-04-24 08:15:32 -07:00
tastybento
19356d6e68 Adds a check that will run on login and other times to set the box size
Runs through the advancements that island has and corrects the size of
the box. This enables admins to adjust the value of advancements after
the fact and players will still benefit (or be nerfed) from the changes.
2021-04-18 15:40:51 -07:00
tastybento
e8aeb0b31d Fixed bug where team members did not yield advancements immediately.
After teleporting back to the island, the team would get them.

https://github.com/BentoBoxWorld/Boxed/issues/19
2021-04-18 14:36:52 -07:00
tastybento
d997b391a9 Exploit fix. Coops could gift advancements to others.
Fixes https://github.com/BentoBoxWorld/Boxed/issues/18
2021-04-09 22:24:52 -07:00
tastybento
1e962f93d0 Code smell reduction. 2021-03-28 20:59:51 -07:00
tastybento
04ab9ae381 Enable Nether biomes via biomes.yml config. 2021-03-28 17:12:50 -07:00
tastybento
8f109d57ff Moved overworld biome placement definition to biome.yml config file 2021-03-28 14:04:25 -07:00
tastybento
48d6850731 Fix bug where structures were not made like Bastions and villages
Extended default island distance to 1000 radius to increase chance of
players getting these structures.
2021-03-28 12:56:46 -07:00
tastybento
acd2fc1ad3 Make the edges Nether Wastes 2021-03-28 08:52:56 -07:00
tastybento
d49b9dc9cd More attractive nether. 2021-03-27 19:07:55 -07:00
tastybento
7b345253c7 Initial Nether implementation. 2021-03-23 21:45:52 -07:00
tastybento
769d4af4bd Correct version reference. 2021-03-21 16:13:33 -07:00
tastybento
1e65b76ccf Added option to broadcast advancement completion to online players. 2021-03-21 09:33:54 -07:00
tastybento
c39ded9e16 Handles default root advancement scoring and better presentation. 2021-03-20 10:20:21 -07:00
tastybento
c7473785df Adds a default box change setting for unknown advancements.
Makes adding custom advancement datapacks easier because the default
advancement reward will be to increase the box by 1.
2021-03-20 09:49:34 -07:00
tastybento
cac0c64654 Require BentoBox 1.16.1 2021-03-20 09:38:52 -07:00
tastybento
253fcf6483 Use BentoBox 1.16.1
Removed unused class.
2021-03-20 08:09:52 -07:00
BONNe
8971755bf0
Expose BentoBox 1.14 onRespawnCommands (#14)
* Expose BentoBox 1.14 onRespawnCommands
BentoBoxWorld/BentoBox#1719

* Update Settings.java
2021-03-16 12:34:53 -07:00
BONNe
9f4ac86fb4
Expose BentoBox 1.16 portal generation mechanics. (#13)
BentoBoxWorld/BentoBox#1718
2021-03-16 12:34:37 -07:00
tastybento
7a32465512 Fixes incompatibility with Multiverse.
Fixes https://github.com/BentoBoxWorld/Boxed/issues/12
2021-03-14 15:12:13 -07:00
tastybento
734bdc3eba Optimized the advancement recognition code. 2021-03-14 14:38:35 -07:00
tastybento
4cc5068bb8 Resets statistics as well as advancements.
https://github.com/BentoBoxWorld/Boxed/issues/8
Some advancements can be triggered by statistics so those need to be
reset as well.
2021-03-13 18:16:02 -08:00
tastybento
9354382f76 Sets island spawn point to new enderpearl location.
https://github.com/BentoBoxWorld/Boxed/issues/4
2021-03-13 15:39:50 -08:00
tastybento
9a586ed762 Syncs team mate advancements to island
https://github.com/BentoBoxWorld/Boxed/issues/8
2021-03-13 15:35:15 -08:00
tastybento
11b44af4c3 Windows is case sensitive to addon names.
Fixes https://github.com/BentoBoxWorld/Boxed/issues/11
2021-03-13 15:02:45 -08:00
tastybento
49fd7282b7 Turn off mob spawning outside the box by default. 2021-03-13 14:12:44 -08:00
tastybento
37c5f59518 Merge branch 'develop' of https://github.com/BentoBoxWorld/Boxed.git into develop 2021-03-13 11:37:31 -08:00
tastybento
d7a52d2103 Clears and sets advancements programaticaly.
https://github.com/BentoBoxWorld/Boxed/issues/7
2021-03-13 11:36:55 -08:00
tastybento
5e536dfa63 Some work around trying to reset advancements
only when a player starts an island.
2021-03-13 10:18:32 -08:00
Huynh Tien
dda6fd1813
Add Vietnamese (#6) 2021-03-09 08:01:30 -08:00
tastybento
493289dc54 Remove flag from loaded check. 2021-03-07 14:00:35 -08:00
tastybento
d33f932c5d Added protection around no WorldGeneratorAPI plugin 2021-03-04 08:17:40 -08:00
tastybento
9c714e10ba Code cleanup. 2021-03-03 20:51:31 -08:00
tastybento
816e1e86be Added settings for structures and stronghold generation. 2021-03-03 20:46:22 -08:00
tastybento
e9ae0d7a98 Casted ints to doubles in BasicWorldGenerator 2021-03-03 08:52:52 -08:00
tastybento
36fc149135 Added missing locale string for husbandry root 2021-02-28 21:25:27 -08:00
tastybento
af4cc022bb Added MOVE_BOX flag to enable lower rank players to move the box. 2021-02-28 21:22:00 -08:00
tastybento
1032f4078d Improved the starting blueprint - added chest and book. 2021-02-28 16:53:47 -08:00
tastybento
58e4358268 Make method non-public 2021-02-28 15:37:40 -08:00
tastybento
c483bd1766 Do not check blocks when looking for a new island spot 2021-02-28 15:37:28 -08:00
tastybento
ae02b7970a Manual fire nether and end advancements
Use locale for advancement announcements.
2021-02-21 16:12:08 -08:00
tastybento
78aeeec5c8 Move world border when there is an achievement done. 2021-02-21 11:49:08 -08:00
tastybento
09038aa266 Fixed locales, removed debug. 2021-02-20 18:25:32 -08:00
tastybento
40147eeb2a Added world generation settings for biomes 2021-02-20 10:19:05 -08:00
tastybento
60b9b227b8 Fix enderpearl moving. 2021-02-17 17:52:57 -08:00
tastybento
2446ed5340 Added biomes 2021-02-15 17:40:19 -08:00
tastybento
f022d072c3 Added basic enderpearl island moving. 2021-02-15 15:58:15 -08:00
tastybento
92c4c05e04 Improved config.yml from play testing. 2021-02-06 09:25:28 -08:00
tastybento
f0806310ba Areas are now deleted from a world copy
The world is duplicated and the back-up copy is used to replace areas
that are deleted. This is not as efficient as it could be right now, but
it works. The main issue is that lighting updates do not occur due to
NMS fast pasting, so dark areas can occur on the landscape.
2021-02-05 19:13:26 -08:00
tastybento
df58768b2c Added Advancement manager and advancement scoring 2021-02-03 19:28:55 -08:00
tastybento
6e69cfbc0d Initial commit. 2021-01-30 09:59:42 -08:00