Commit Graph

872 Commits

Author SHA1 Message Date
Elias Åström b50addac55 Make changes to the mcl_autogroup API
Group levels are now specified as a list of names when registering a
digging group.  Digging groups which do not have specified levels will
support tools having two levels, 0 and 1 where 0 means the tool can dig
but not harvest the node and 1 means it can also harvest the node.  If
more levels are required one has to specifiy them when registering the
digging group.
2021-04-16 22:33:55 +02:00
Elias Åström 012e150b59 Rewrite mcl_autogroup
These changes are primarly made to make mcl_autogroup more efficient.
Previously enchanted tools required storing around 21 kB of metadata due
to the way the previous version of the mod was implemented.  This caused
a lot of lag and a huge amount of network traffic.  With the changes
enchanted tools won't require more than 1 kB of metadata.

The mod is also rewritten to use an API to register digging groups and
compute the groupcaps for tools.  This will make it easier for modders
to register custom digging groups.

The mod is now split up into two parts.  One part called "mcl_autogroup"
to implement the API for registering custom digging groups, and the
other part called "_mcl_autogroup" which contains most of the code which
has to be loaded after most mods.
2021-04-16 22:31:42 +02:00
Elias Fleckenstein f5b590901e Merge branch 'master' of https://git.minetest.land/Wuzzy/MineClone2 2021-03-01 10:52:07 +01:00
Elias Fleckenstein 95b0a495bc Fix #1152 2021-03-01 10:51:57 +01:00
kay27 8af76f835d Slightly tweak minecarts to be more MC-like 2021-03-01 01:43:00 +04:00
Elias Fleckenstein 8d5b2ff714 Make boats less annoying on ice 2021-02-27 14:38:53 +01:00
MysticTempest 2ace4ccc68 Fix endermen teleporting in the rain in the end per issue #1169. 2021-02-25 21:48:37 -06:00
kay27 44d3f25767 Leave minecart by Pressing Sneak, https://git.minetest.land/MineClone2/MineClone2/issues/567 2021-02-26 00:26:27 +04:00
Elias Fleckenstein f04a5a4cc9 Prevent Ender dragon and Wither from despawning 2021-02-25 12:48:17 +01:00
Elias Fleckenstein 0c3ab5843d Make boats go super fast on ice and slightly faster on land 2021-02-24 10:38:49 +01:00
Elias Fleckenstein 0d2950228a Implement #1057 2021-02-24 09:31:27 +01:00
Elias Fleckenstein 2d4b8a8232 Replace usages of get_node_group by get_item_group 2021-02-23 10:25:17 +01:00
Elias Fleckenstein 2d0612fa81 Make boats regenerate health and shake when damaged 2021-02-22 12:43:29 +01:00
Elias Fleckenstein 5de9d90569 Simplify mcl_burning API 2021-02-22 10:55:14 +01:00
kay27 0ba7e4fc4d Fix Runtime error: attempt to index a nil value (api.lua:399 <- is_node_dangerous <- is_at_cliff_or_danger <- on_step_old <- void_damage:16) 2021-02-22 13:40:40 +04:00
epCode 512765a37d Make use_texture_alpha an mobs_mc.entity setting 2021-02-21 17:10:04 -08:00
epCode af89b95316 Remove unessesary code in slime+magma_cube.lua 2021-02-19 13:25:53 -08:00
epCode 393bc195fb Enable alpha for mobs 2021-02-19 13:11:18 -08:00
Elias Fleckenstein c9e589b931 Add mcl_burning damage interval 2021-02-18 14:47:35 +01:00
Elias Fleckenstein aeb7078c05 Update use_texture_alpha to the minetest 5.4 conventions 2021-02-18 14:00:17 +01:00
Elias Fleckenstein eddef41e6b Fix #1132 2021-02-18 09:41:06 +01:00
Elias Fleckenstein 574ced80a3 Give charged creeper an explosion strength of 6 2021-02-16 09:55:36 +01:00
epCode 903a29f949 Add charged creeper 2021-02-12 16:48:46 -08:00
MysticTempest 0ec64189dc Partial creeper explode distance fix, and fix to stop punching mobs into the air. 2021-02-11 17:27:55 -06:00
kay27 ba9ad48114 Protect paintings, fix https://git.minetest.land/MineClone2/MineClone2/issues/1080 2021-02-09 23:34:04 +00:00
MysticTempest dc9ca16321 Enable villager spawning. 2021-02-09 06:06:19 -06:00
epCode 6f8d728035 Merge pull request 'master' (#6) from MineClone2/MineClone2:master into master
Reviewed-on: https://git.minetest.land/epCode/MineClone2/pulls/6
2021-02-06 00:10:00 +00:00
kay27 696ae8e6fe Merge pull request 'Fix Mobs not taking knockback on the Y-axis' (#1061) from Code-Sploit/MineClone2:master into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/1061
2021-02-05 21:41:38 +00:00
kay27 fa3e37c604 A mob does not drop XP unless it dies within 5 s of an attack registered as a player hit, https://git.minetest.land/MineClone2/MineClone2/issues/1021#issuecomment-13894 2021-02-05 16:34:49 +04:00
Code-Sploit 95b0a27213 Fix Mobs not taking knockback on the Y-axis 2021-02-05 10:36:48 +00:00
epCode e0ad09900c Merge pull request 'master' (#5) from MineClone2/MineClone2:master into master
Reviewed-on: https://git.minetest.land/epCode/MineClone2/pulls/5
2021-02-02 22:19:58 +00:00
MysticTempest e716ebd911 Make enderman grief less frequently, enable pseudobiome villages by default, and disable natural village generation in singlenode. 2021-02-01 15:45:22 -06:00
Elias Fleckenstein 9956e267aa Allow for 2 drivers in a boat 2021-01-31 12:54:40 +01:00
Elias Fleckenstein e66d66caf9 Fix #399 2021-01-28 19:02:44 +01:00
Elias Fleckenstein 89ce072621 Sneak to dismount when in boat 2021-01-28 17:44:55 +01:00
HimbeerserverDE a3ccb54376 Merge branch 'master' of https://git.minetest.land/Wuzzy/MineClone2 2021-01-27 20:13:16 +01:00
HimbeerserverDE 00df587bf7 Add flame enchantment 2021-01-27 20:11:02 +01:00
kay27 7210dfcc1c Make mobs only drop XP orbs when they're killed by hit, attempt to fix https://git.minetest.land/Wuzzy/MineClone2/issues/978 2021-01-27 16:12:34 +04:00
Elias Fleckenstein 97594c89fb Fix #968 2021-01-26 18:51:18 +01:00
Elias Fleckenstein e05576b3f3 Don't despawn villagers 2021-01-26 18:40:16 +01:00
Elias Åström 174a3a2968 Fix creeper explosions only doing 1/2 heart damage
The solution was to move the creeper explosions to originate from the
center of the creepers collisionbox and not its entity position.
2021-01-26 14:13:30 +01:00
Elias Fleckenstein 0022c9902b Merge branch 'master' of https://git.minetest.land/Wuzzy/MineClone2 2021-01-25 16:33:41 +01:00
MysticTempest c1c5ed4869 Fix crash in 'mcl_spawn' in v6,flat,singlenode mapgens; and fix mobs despawning when attacking/following players. 2021-01-24 17:47:28 -06:00
Elias Fleckenstein a514b97880 Make cleric sell experience bottle 2021-01-24 19:55:33 +01:00
Elias Fleckenstein 76bd139f1b Rise mob spawning distance to 24 (Closes #982) 2021-01-24 19:07:56 +01:00
Elias Fleckenstein eb01c8e9f8 Give boats HP (Closes #991) 2021-01-24 16:27:04 +01:00
Elias Fleckenstein f9a82aab05 Implement curing zombie villagers 2021-01-23 15:40:12 +01:00
Elias Fleckenstein b7c3096364 Spawn villager zombies like in Minecraft 2021-01-22 20:31:58 +01:00
kay27 2e898b3113 Decrease player burn time in Creative mode 2021-01-22 20:03:55 +04:00
MysticTempest 689e6edac2 Make 'mcl_burning' support other texture packs. 2021-01-22 03:07:21 -06:00