Commit Graph

5469 Commits

Author SHA1 Message Date
cora 37a9d268ab move weatherdef to top 2021-09-28 03:10:28 +02:00
cora cff2d445f7 don't stop weather twice 2021-09-28 03:10:02 +02:00
cora 336c188ab7 fix weather cycle 2021-09-28 03:09:26 +02:00
cora 2ed3e01179 fix sound never stopping 2021-09-28 03:01:23 +02:00
cora 8f619ab5c3 fix thunder/lightning never stopping 2021-09-27 23:03:28 +02:00
cora e854be9f0f add correct mc conditions for snow 2021-09-27 23:02:49 +02:00
cora 590abfeb0f add correct minecraft conditions for rain 2021-09-27 23:02:17 +02:00
cora f2b399cbbd clean up tick logic 2021-09-27 23:00:46 +02:00
cora 4a582ba5fb take individual weather into account when changing 2021-09-27 22:59:34 +02:00
cora 5ad46bd9a3 Update readme 2021-09-27 03:23:04 +02:00
cora 5e8d8a7e9b add /biome chatcommand (weather priv) 2021-09-27 02:32:43 +02:00
cora f98058a853 support for weathers to change according to pos 2021-09-27 02:31:46 +02:00
cora cd67354725 fix various little errors 2021-09-27 02:31:18 +02:00
cora 53603050c0 add dynamic per player change 2021-09-26 15:48:18 +02:00
cora c6ba41e6e8 tweak particle spawner values 2021-09-26 15:47:35 +02:00
cora d68acad0fd add logging on chat command 2021-09-26 15:46:35 +02:00
cora 015b29aa60 add weather depending on position/biome 2021-09-26 06:08:01 +02:00
cora 7bd4d75c3f add missing translator include 2021-09-26 04:28:44 +02:00
cora 62f950cb3c remove debug code 2021-09-26 03:45:45 +02:00
cora f6fa977664 remove newline 2021-09-26 03:45:05 +02:00
cora c6d9ac9b89 refactor pos_has_weather 2021-09-26 03:44:06 +02:00
cora 2c372684ce readd old chat commands and priv 2021-09-26 03:43:18 +02:00
cora dbbecc94d0 fix typos 2021-09-26 03:27:14 +02:00
cora b5b249b722 fix incompatibility with old mcl_weather 2021-09-26 03:26:41 +02:00
cora bb0f33e21b update readme 2021-09-26 03:07:35 +02:00
cora b8f3c1a175 add nether dust to new weather 2021-09-26 03:07:25 +02:00
cora 01ddbe06bc add thunder to new weather 2021-09-26 03:07:09 +02:00
cora a0fc6f682d add snow to new weather 2021-09-26 03:06:53 +02:00
cora 6f2aae82df add rain to new weather 2021-09-26 03:06:14 +02:00
cora d59a0101f4 add lightning to hard dependencies 2021-09-26 03:05:23 +02:00
cora 6fa1b1dd81 rewrite mcl_weather core mechanics
the old weather mod used individual particles which create lag and
unneccessary globalstep action for known intervals.

this replaces the weather core mechanics with an event based model using
particlespawners.
2021-09-26 03:03:18 +02:00
cora eee94658e7 mcl_maps: send hud_flags only if actually changed 2021-09-13 14:15:32 +02:00
NO11 3759d50344
Add german translation for stripped wood 2021-09-07 00:48:40 +02:00
NO11 50e913b370
Add template for stripped wood translation 2021-09-07 00:48:39 +02:00
NO11 508b08dfd3
Add specific help text for stripped wood 2021-09-07 00:48:38 +02:00
NO11 68646b62b3
Add some spaces 2021-09-07 00:48:38 +02:00
NO11 d3348ef8b7
Add stripped trunk / wood textures
Stripped trunk / wood nodes exist for acacia, birch, dark oak, jungle
tree, oak, and spruce. This patch adds the textures for all of these.
2021-09-07 00:48:37 +02:00
NO11 eadb96dd40
Refactor wooden plank crafting
This patch makes it possible to craft planks out of stripped wood.
2021-09-07 00:48:36 +02:00
NO11 616b009452
Add stripped trunk and stripped wood nodes 2021-09-07 00:48:35 +02:00
NO11 a92e1c05a3
Add debarking by right clicking wood using an axe 2021-09-07 00:48:10 +02:00
Nils Dagsson Moskopp 10ce37d887
Fix server crash by client leaving after joining
When a player joins and immediately leaves the game before a function is
called by minetest.after() in mods/PLAYER/wieldview/init.lua, it gets an
invalidated player object. This results in the player methods returning
nil (since Minetest 5.2); perhaps surprisingly, the player is not nil.

Not checking that the result of player:get_pos() is not nil could lead
to a server crash if a client crashed when joining. It has been reported
that a syntax error in a client side mod was enough to trigger that.
2021-08-22 04:21:35 +02:00
Nils Dagsson Moskopp ce6d6c26cc
Add debug command to acquire a written book
The “getwrittenbook” command gives a player that has the “debug” privilege a book
with a configurable amount of characters. This was added as a debug aid, to help
reproducing situations in which items with lots of metadata trigger issues like
heavy lag or server crashes.
2021-07-30 17:22:33 +02:00
Nils Dagsson Moskopp a0c9f11af6
Log warning for non-serializable item entity fix 2021-07-30 17:15:13 +02:00
sfan5 62d5b547a0
Fix non-serializable item entity unload crash
Some items, like shulkers or books, can have so much metadata that the
corresponding item entity can not be serialized by the Minetest engine.

Without this patch, dropping such an item and then moving away crashes
Minetest, as it can not serialize the entity with serializeString16()
when unloading a map block.

The patch resets the overlong metadata of non-serializable item entities.
This avoids a crash and makes it possible to retrieve a “sanitized” item
without metadata when the mapblock containing the item entity is reloaded.

Originally sfan5 guessed the maximum possible item entity serialization size
that would not lead to a crash as 65530 bytes, but anon5 calculated it to be
actually 65487 bytes. This has been experimentally verified by erlehmann.
2021-07-30 17:13:26 +02:00
Nils Dagsson Moskopp 71cff7051f
Generate pig spawners in mineshafts
In Minecraft Java Edition, when the map generator generates a spawner,
it can generates a pig spawner instead of the spawner it should create.
That behaviour is very rare, but has never been removed from Minecraft.

This patch changes 1 in 1000 spawners in a mineshaft to be a pig spawner
instead of a cave spider spawner.
2021-07-23 04:11:33 +02:00
Wuzzy 280aed484c
Do not send useless HUDCHANGE packets
Several mods set or unset the visibility of a HUD bar way too often (e.g.
in a globalstep handler), causing the server to send a lot of superfluous
HUDCHANGE packets to each client. Returning from hb.hide_hudbar() early
if HUD bar visibility would not change prevents sending these packets.
2021-07-21 10:28:04 +02:00
Lizzy Fleckenstein 920ca96764
Make dragon egg teleport on punching 2021-07-13 09:11:48 +02:00
Nils Dagsson Moskopp 76e3a00e18
Make potion arrows able to hit end crystals 2021-07-12 22:21:15 +02:00
Nils Dagsson Moskopp 2033a9bf1d
Refactor potion arrow flight time calculation 2021-07-12 16:07:20 +02:00
Nils Dagsson Moskopp 99ebf08873
Refactor regular arrow flight time calculation 2021-07-12 16:06:44 +02:00