10243 Commits

Author SHA1 Message Date
PrairieWind
3d89b14a04 Add Lily of the Valley Flower
Awesome Lily Texture by Nicu
2023-04-24 19:27:54 +00:00
PrairieWind
35656338bf Add campfires to the list of working item APIs 2023-04-24 09:37:42 -06:00
PrairieWind
a49261bc4e Campfire API 2023-04-24 09:35:05 -06:00
cora
68ff8a2d8d Don't remove leaves if there is a tree trunk again 2023-04-23 19:38:00 +00:00
kabou
c5e1b3ee3f Mangrove roots are not leaves and some trivia.
* Remove `leaves` group from mangrove roots node registration.  Mangrove
  roots should not decay like leaves do.
* Fix some formatting weirdness.
* Add a "fixme" comment to some duplicated code that causes luacheck to
  complain.
2023-04-23 19:38:00 +00:00
kabou
c6b977590e Add compostability group to mangrove leaves. 2023-04-23 19:38:00 +00:00
kabou
8ee5504a1f Remove duplicate callback registration.
* `on_place` was registered twice in mangrove tree trunk node
  registration.  Remove one.
2023-04-23 19:38:00 +00:00
kabou
c6d7e4a603 Remove unused leafdecay group.
* This group is no longer used and is removed from leaves node groups.
* Since it was never added to GROUPS.md, nothing needs changed there.
* Remove the `leafdecay_distance` parameter from node registrations.
2023-04-23 19:38:00 +00:00
kabou
4ef86f5124 Refactor leaf decay ABM.
* The leaf decay ABM no longer scans all leaves nodes.  Now only
  "orphaned" leaves are decayed.  These nodes are placed by callbacks
  in tree trunk nodes upon their destruction.
* This commit also removes the tree trunk node caching system and an
  abm throttling mechanism and its associated globalstep function.
2023-04-23 19:38:00 +00:00
kabou
aece57dd56 Add "orphaned" leaves nodes.
* Add "orphaned" leaves nodes, these are copies of the regular leaves
  nodes whose sole purpose is to replace leaves nodes when no more tree
  trunks are present nearby.  The orphaned nodes are swapped in by a
  callback on destruction of tree trunk nodes and will be decayed by a
  dedicated abm that processes all nodes in `group:leaves_orphan`.
* Add `mcl_core.update_leaves()` function, a `after_destruct` callback
  handler for tree trunk nodes.  The function finds leaves nodes nearby
  destroyed tree trunk nodes and swaps these for orphaned leaves nodes
  if no other tree trunk nodes remain near them.
* Add `after_destruct` callbacks to tree trunk node registrations in
  mcl_core/nodes_trees.lua and mcl_mangrove/init.lua to update orphaned
  leaves.
* Add entry for group `leaves_orphan` to GROUPS.md
* Also add entry for group `leaves` to GROUPS.md (it was missing).
2023-04-23 19:38:00 +00:00
Lizzy Fleckenstein
ad49898df4 Remove all v6 mapgen support code 2023-04-23 17:39:59 +00:00
FossFanatic
a602ea1942 Make cocoa pods use 3d models instead of node boxes
squashed from https://git.minetest.land/MineClone2/MineClone2/pulls/2974
2023-04-23 17:27:57 +00:00
Lizzy Fleckenstein
7a4a09c206
Remove mcl_ver_info japanese translation (Fixes crash) 2023-04-23 17:10:41 +02:00
Lizzy Fleckenstein
6590e8eb99 Remove japanese hamburger translation (fixes crash). 2023-04-23 15:07:01 +00:00
Lizzy Fleckenstein
0dd20c9063 Fix sweet berry death message 2023-04-23 15:05:09 +00:00
FossFanatic
57df9b153a Add seagrass item texture
Add seagrass item texture
2023-04-23 14:31:11 +00:00
FossFanatic
41cb253f51 Add blackstone top texture 2023-04-23 14:29:45 +00:00
FossFanatic
bbde441960 Add blackstone side texture 2023-04-23 14:29:45 +00:00
FossFanatic
51db56e7e5 Delete 'mods/ITEMS/mcl_blackstone/textures/mcl_blackstone.png' 2023-04-23 14:29:45 +00:00
FossFanatic
a8f8305e68 Add seperate gilded blackstone texture 2023-04-23 14:29:45 +00:00
FossFanatic
10aa255c34 Allow for both top/bottom and side textures 2023-04-23 14:29:45 +00:00
FossFanatic
6426eaa617 Add seperate nether gold ore texture 2023-04-23 14:29:45 +00:00
3raven
45798568f7 Fix the disapearance of christmas texture of the ender chest once it is placed
Fix the disapearance of christmas texture of the ender chest once it is placed
2023-04-23 14:29:18 +00:00
kabou
4dfd173b1a Remove FIXME about slimes spawning in swamps.
* This has been fixed.
2023-04-23 14:26:56 +00:00
kabou
adc4428451 Limit size of cow herds spawning.
* Cows should spawn in herds of max 4, not 8.
2023-04-23 14:26:56 +00:00
kabou
2b625c7fe5 Make slimes spawn at night in swamps.
* Adds spawn definitions for large, small and tiny slimes to spawn in
  Swampland and MangroveSwamp biomes when light levels are less than 7.
2023-04-23 14:26:56 +00:00
kabou
b7d245747e Refactor spawn registrations.
* Unduplicate spawnable biome lists for slimes and magma cubes.
* Rename min and max spawndepth identifiers.
2023-04-23 14:26:56 +00:00
kabou
fb914b4df3 Add missing biome to slime spawn list.
* Add "MangroveSwamp_underground" to the lists of spawnable biomes for
  big, small and tiny slimes.
2023-04-23 14:26:56 +00:00
kabou
3278a98b23 Remove stray dependency.
While mobs_mc_gameconfig was deleted at some point during the mob
refactoring, it was still listed in mobs_mc's mod.conf.
2023-04-23 14:26:56 +00:00
kabou
862ab8b53b Mob spawning chatcommand refactoring.
* Put calculations that are only used conditionally inside the
  related `if` block.
* Make code logic more explicit.
* Take logging statement out of return value assignment.
* Remove duplicate assignment.
* Fix a typo in the function's description.
2023-04-23 14:26:56 +00:00
kabou
c7a00e1937 Use vectors in get_next_mob_spawn_pos() 2023-04-23 14:26:56 +00:00
Elias Åström
f2f992555c Add FIXME notes to slime mob code.
Missing features:
* Slimes should not only spawn in caves, but also at night in swamps.
* Slimes should only spawn on 10% of the map ("slime chunks").
* There are no spawn eggs registered for small and tiny slimes and magma
  cubes.
2023-04-23 14:26:56 +00:00
kabou
7fec88161d Assorted spawn_children_on_die fixes.
* Use proper vector semantics.
* Optimize away superfluous temp variables and repetitive local variable
  declarations.
2023-04-23 14:26:56 +00:00
kabou
67ac4f1655 Change number of children spawned on die.
When a slime or magma cube dies, it should spawn between 2 to 4 smaller
children.  The code was always spawning 4 children (3 for big magma
cubes).  This commit makes the following changes to the function
`spawn_children_on_die`:
* Make the number of children spawned a random number between 2 and 4.
* No longer accept the `children_count` as an argument, because this
  number should always be a random number between 2 and 4 anyway.
* Update all callers accordingly.
2023-04-23 14:26:56 +00:00
CyberMango
5b4961cebb Fix baby mobs cant jump over blocks.
Simply removed a line that specifies they shouldnt do that.
2023-04-23 14:24:56 +00:00
ancientmarinerdev
f183ccdae0 Allow blaze spawners to be deactivated 2023-04-23 14:24:34 +00:00
Michieal
4025583765 Remove "mcl_farming:beetroot_item" from fortune drop, so Fortune only gives seeds. 2023-04-23 14:23:42 +00:00
Michieal
d86d6ecfc8 Fix beetroot seeds not dropping.
Changed drop rate to 1-4.

Added in Fortune drops too. (Per the minecraft wiki.)
2023-04-23 14:23:41 +00:00
Johannes Fritz
cdb562a327 Add rightclick support to pplates 2023-04-23 14:22:56 +00:00
Johannes Fritz
c469447217 Add 1 sec deactivation delay to pplates 2023-04-23 14:22:56 +00:00
Johannes Fritz
14fed56abb Pressure plates check for entity contact 2023-04-23 14:22:56 +00:00
Johannes Fritz
857c6c213a Fix baby zombies going through 1 node high space 2023-04-23 14:22:13 +00:00
b3nderman
799b0c6045 Fix tamed ocelot textures not being set correctly 2023-04-23 14:20:59 +00:00
FossFanatic
c18da558c3 Add sounds to bee nests and beehives 2023-04-23 14:20:44 +00:00
FossFanatic
4c03dcf2ab Fix nylium block sounds 2023-04-23 14:20:44 +00:00
FossFanatic
9e8776b846 Delete 'mods/ENTITIES/mobs_mc/textures/mobs_mc_enderman_block.png' 2023-04-23 14:19:37 +00:00
FossFanatic
8026cd4502 Remove dry grass side texture
The same reason as why the dry grass top texture got removed.
2023-04-23 14:19:37 +00:00
FossFanatic
da40d9cf37 Remove dry grass top texture
This is a remnant of Minetest Game and used to be for dry biomes before colour palettes were a thing in MineClone 2.
2023-04-23 14:19:37 +00:00
FossFanatic
18c5278777 Remove useless amethyst texture
This texture is a remnant of the PixelPerfection resource pack and nowhere in the code does this texture get used.
2023-04-23 14:19:36 +00:00
cora
0bdb872a17 Credit Riu Sakura for translations 2023-04-23 14:19:13 +00:00