Commit Graph

10 Commits

Author SHA1 Message Date
BONNe 42a9cf9c7e Rework entity populator.
The new world populator on some engines are multi-threaded, however, minecraft does not allow to remove entities outside main-thread. As entity populator spawned entity and then removed when there were no spot for it, servers crashed.

The issue should be fixed now as I add custom entity bounding box calculator before it is spawned to check if there is place for entity.

Fixes #86
2022-11-20 09:56:06 +02:00
Huynh Tien 7824c7bf71
Optional Generators (#67)
* old generators in new api

* add NewMaterialPopulator

* forgot to prevent physics loop

* I see... the new generator creates caves

* apply getMinHeight and getMaxHeight

* getMinHeight and getMaxHeight for populators too

* summarize

* general reformat on populators

* small typos

* comment sections

* small reformat

* warning on config

* apply new API on BlockPopulator p.1

* apply new API on BlockPopulator p.2

* apply new API on BlockPopulator p.3 (final)

* hasAI option
2021-12-13 20:00:54 -08:00
tastybento 8bda6b8849 Fix for mobs in negative coords.
Fixes https://github.com/BentoBoxWorld/CaveBlock/issues/59
2021-08-15 11:19:28 -07:00
BONNe b4e4a57097 Init 0.1.0 release
Fix codding style errors.
2019-02-03 17:25:53 +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 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 ce76e9ecfc Add BlockPopulators.
- EntitiesPopulator - add entity populator.
- MaterialPopulator - add block populator.
2019-01-30 17:10:10 +02:00