Commit Graph

81 Commits

Author SHA1 Message Date
BONNe1704
8093bbbf6c Upgrade to BentoBox 1.5.0-SNAPSHOT changes.
Remove DataObject from Settings class.
2019-05-09 12:25:43 +03:00
tastybento
a119181b46 Startup (#21)
* Fixed for BentoBox 1.5.0 API

Enables dedicated caveblock world operation

* Added island near command.

* Update pom.xml
2019-05-05 10:41:57 +03:00
BONNe1704
418eb7bef2 Fix issue when alternative teleports did not work. (#4).
There was a mistake with checking if position is changed in Y coordinate. It took from position and compare it to from position, so always fails.
This issue has been fixed now.

Also to improve ability to change these settings on the fly, I add them as world protection flags, so admins can enable and disable them via config.
2019-04-24 17:39:10 +03:00
BONNe
ef8343546f Improve performance for a bit...
Like... some nanoseconds :)
2019-03-28 23:38:42 +02:00
BONNe
989b3fc65c Add IslandExpelCommand. 2019-03-28 23:37:16 +02:00
tastybento
4592043b4e Merge branch 'develop' of https://github.com/BentoBoxWorld/CaveBlock.git
into develop
2019-03-23 16:00:42 -07:00
tastybento
7753565a8c Updated to BentoBox 1.4.0 API 2019-03-23 15:58:37 -07:00
BONNe
a720f7097c Remove BeaconEnabler as it is not necessary.
Beacon can shine through bedrock.

Update pom as Challenges addon.
2019-03-05 11:22:09 +02:00
BONNe1704
f301e56ea6 Add BentoBox 1.3.0 admin commands 2019-02-25 16:37:52 +02:00
BONNe1704
d9d79a1ca9 Implement ability to change user and admin command in config. 2019-02-15 16:41:08 +02:00
tastybento
f42c15e225 Removes extraneous settings
https://github.com/BentoBoxWorld/BentoBox/issues/531
2019-02-08 17:51:50 -08:00
tastybento
168cbe1ebc Adds error checking for MATERIALs in config.yml
MATERIALs must be blocks otherwise the world populator will throw errors
and crash the server. This commit checks that all imported materials are
blocks and if they are not logs the error.

Updated config.yml to use correct 1.13 material names for blocks.

https://github.com/BentoBoxWorld/CaveBlock/issues/11
2019-02-06 17:42:06 -08:00
BONNe
b4e4a57097 Init 0.1.0 release
Fix codding style errors.
2019-02-03 17:25:53 +02:00
BONNe
f5090c91eb Disable teleports for players if target location is on top of the world. (#3) 2019-02-03 16:26:53 +02:00
BONNe
b3e7cf9faf Add ability to enable beacon even if roof is made of bedrock. (#5)
- Add multiple event listeners that detects if blocks should be replaced or not.
- Add new config option, that allows to enable/disable beacon enabling.
2019-02-03 16:08:27 +02:00
BONNe
beccadd7d4 Create custom listener that process player movement.
Add ability to deny players from walking over world roof. (#3)
Add ability to teleport players to other worlds by falling into void. (#4)
2019-02-03 02:45:35 +02:00
tastybento
215f8efb69 Enables entity setting and config reloading
Tweaks to config.yml to be more cave-y.

Entities are set to not despawn. Probabilities of materials and entities
can have decimals and be sub 1% if required. For some entities, 1% was
too high a rate.

Adds a debug setting in config.yml that will enable you to see where
entities have been spawned. It can be removed at some point.
2019-02-02 11:47:48 -08:00
tastybento
f6c1bc7d7f Makes chunk population more efficient
Adds locale text.
2019-02-01 12:29:28 -08:00
BONNe
68061d64b8 Fix issue when some blocks were generated outside world bounds if first position was on top or bottom block. 2019-02-01 00:08:42 +02:00
BONNe1704
31ab3fd865 Add better comments for variables and methods. 2019-01-31 11:34:55 +02:00
BONNe1704
a346e3964a Reserve correct space for 2 high mobs.
Used for shulkers.
2019-01-31 10:56:34 +02:00
BONNe1704
60a83bfa9b Add method that checks if there is enough space for entity. 2019-01-30 18:03:46 +02:00
BONNe1704
bcdbdef1ae Add NumberOfBlockGenerationTries - variable that indicate how many times generator should try to place block. 2019-01-30 17:12:41 +02:00
BONNe1704
dc83823da5 Fix an issue when when roof and floor was not generated.
Move block and entity generation to populators.
2019-01-30 17:12:04 +02:00
BONNe1704
ce76e9ecfc Add BlockPopulators.
- EntitiesPopulator - add entity populator.
- MaterialPopulator - add block populator.
2019-01-30 17:10:10 +02:00
BONNe
3854617fca Change Map structure:
- It will return Integer to pair...
2019-01-30 09:03:19 +02:00
BONNe
2db3f0ddfa Add methods that will transform String of blocks into material with its rarity and amount in pack. 2019-01-30 00:45:41 +02:00
BONNe
d9168a38b7 Add needsRestart tag 2019-01-29 23:37:36 +02:00
BONNe
0564663bc4 Add extra settings in Cave Block 2019-01-29 23:25:16 +02:00
BONNe1704
5f24c4de29 Improve chunk generator options.
Split chunk populators for overworld, nether and the end.
2019-01-29 16:38:38 +02:00
BONNe
0b79dcc503 Initial CaveBlock addon. 2019-01-28 08:27:44 +02:00