Commit graph

4476 commits

Author SHA1 Message Date
Brandon
2c6f62354b pull potions out of init.lua to better organize 2020-06-17 17:50:18 -04:00
Brandon
7c0996b03c Correct issue with drinking potion not resulting in an empty bottle 2020-06-17 17:44:03 -04:00
Brandon
454a9c231e Correct issues with splash potions disappearing immediately when thrown. 2020-06-17 17:36:15 -04:00
Brandon
b8256cd447 remove redundant code and add lingering potions -TODO: Add lingering effect 2020-06-17 17:05:44 -04:00
Brandon
021492994a Update the available perturbations of brewing. Include splash enhancement. 2020-06-17 16:49:52 -04:00
Brandon
9fe15c7e12 Add invisibility II brewing and correct inversion table (no such thing as slowness +). Add poison to harming inversion. Reduced splash stack max. 2020-06-16 22:29:35 -04:00
bzoss
54c1be724d Increase collision box to fix issues with splash potions not breaking at feet. 2020-06-16 08:25:42 -04:00
bzoss
724ff56bbf Fix a missed call to mcl_potions:invisible. 2020-06-16 08:13:10 -04:00
Wuzzy
d0678d33f8 Use dungeons flag in mg_dungeons for MCL2 dungeons 2020-06-16 02:33:51 +02:00
Wuzzy
2394809649 Respect player's choice of mg_flags 2020-06-16 01:46:07 +02:00
Wuzzy
dded403409 Mapgen: Set biomes flag explicitly 2020-06-16 00:20:13 +02:00
Wuzzy
4524aee758 Fix controls mod crashing in 5.3.0-dev 2020-06-15 23:32:32 +02:00
bzoss
7766368f64 Change splash effect with distance. 2020-06-13 17:50:33 -04:00
kay27
528c19302f Russian translation: mcl_core, mcl_craftguide 2020-06-13 18:58:59 +02:00
bzoss
7b4ded46f9 Rearrange the code structure. 2020-06-12 19:54:45 -04:00
bzoss
2c322977a6 Add invisibility potion - includes splash and plus 2020-06-12 19:11:06 -04:00
Wuzzy
8ecc96fff2 Fix crash when spawning firey explosion 2020-06-12 12:30:45 +02:00
bzoss
b674e74387 Correct redstone alias and Add poison and regeneration potions - THESE DON'T CURRENTLY WORK 2020-06-09 20:09:32 -04:00
bzoss
eea6f6aee9 Correct alias issue. 2020-06-09 19:05:51 -04:00
Wuzzy
cb2a16e7a3 Update jukebox translation files after typo fix 2020-06-10 00:04:06 +02:00
Li0n
4af5b90030 Fix typo in music disc description 2020-06-10 00:01:09 +02:00
bzoss
a5dc19cd7c Initial commit to correct branch... 2020-06-08 17:47:53 -04:00
Wuzzy
7ff7b64ad0 Fix air holes in desert temple 2020-06-08 17:18:19 +02:00
Wuzzy
e14fe15d26 Add is_ground_content=false to all liquids 2020-06-07 21:32:55 +02:00
Wuzzy
6a6e294c19 Fix blast not removing chorus plant 2020-06-07 21:31:52 +02:00
Elias Åström
455f490b4e Remove TNT node when it is ignited by an explosion
After 6f12adcb TNT nodes would not be removed when ignited by
explosions, this fixes that.
2020-06-07 20:44:17 +02:00
Wuzzy
6f12adcb03 Fix broken blast handling for chest/shulkerbox 2020-06-06 16:57:19 +02:00
Wuzzy
83055d18e2 Mark paintings as WIP 2020-06-06 16:22:07 +02:00
Wuzzy
505f853e54 Fix bucket not being able to pick up liquids 2020-06-06 16:16:39 +02:00
Wuzzy
2d6e0a99af Check more nodes for falling after explosion 2020-06-04 23:43:17 +02:00
Wuzzy
56d49e08b8 Delay before calling get_connected_players 2020-06-04 16:36:53 +02:00
Wuzzy
28710bb819 Add label to observer ABM 2020-06-04 16:04:46 +02:00
Wuzzy
546ee09e6f Check for falling after explosion 2020-06-04 14:17:04 +02:00
Wuzzy
2f9e5d302e Fix explosion API not calling on_[con|de]struct 2020-06-04 14:02:18 +02:00
Wuzzy
a08152d8fb Localize some variables in mcl_core 2020-06-03 20:19:27 +02:00
Wuzzy
5dab09c874 Merge branch 'master' of https://git.minetest.land/Wuzzy/MineClone2 2020-06-03 19:57:42 +02:00
Wuzzy
15f2960e34 Remove legacy village schematic 2020-06-03 19:57:04 +02:00
Wuzzy
a25f7652f6 New desert temple schematic 2020-06-03 19:30:29 +02:00
Elias Åström
13b941fdbf Merge branch 'treecheck' 2020-06-02 20:13:30 +02:00
Wuzzy
828473c205 Remove useless playerphysics file 2020-06-02 15:51:50 +02:00
Wuzzy
f184c84241 Fix flowlib README header 2020-05-30 20:17:04 +02:00
Wuzzy
02540a5193 Blaze powder is no fuel 2020-05-29 02:50:14 +02:00
Wuzzy
f6ccf1fe41 Mark brewing stuff as WIP 2020-05-29 02:49:39 +02:00
Wuzzy
ffb67966bc Remove dead code in mcl_brewing 2020-05-29 02:28:44 +02:00
Wuzzy
014f15b643 Clean up mcl_brewing file formats 2020-05-29 02:27:55 +02:00
Wuzzy
f759699d34 Merge https://git.minetest.land/bzoss/MineClone2_brewing_stand into bzoss_brew 2020-05-29 02:15:00 +02:00
bzoss
bcdb37800d Shift to table lookup for brewing combinations. Fix issue with brewing only if all slots filled. 2020-05-27 21:15:46 -04:00
bzoss
861aedbfa3 Updated potion offering - moved alchemy matrix to mcl_potions 2020-05-27 18:36:10 -04:00
bzoss
2ad28f1fac Update with sounds, and turn on some potion items. 2020-05-26 21:16:52 -04:00
bzoss
36ce478361 Comment some broken bits. 2020-05-26 21:07:07 -04:00
bzoss
c9ff19d02a Some small doc string updates. 2020-05-26 18:15:50 -04:00
bzoss
cae4940e70 Updated a few simple potions. TODO: Stop fuel burn once the potion is complete. 2020-05-26 18:10:20 -04:00
bzoss
b5b0020997 Laid the framework to brew potions...TODO make it actually swap for the potion. 2020-05-25 15:31:35 -04:00
bzoss
0df8bb94f9 Remove "active" stand node definition 2020-05-25 09:29:23 -04:00
bzoss
190eb32ac2 Update brew timer...will reset if any bottle is changed 2020-05-25 09:28:23 -04:00
bzoss
5c4cc99621 Fixed for burning only blaze powder. 2020-05-25 09:08:37 -04:00
bzoss
4eb1bf05d3 Updated Formspec background. Established initial brewing timer framework. 2020-05-23 16:39:55 -04:00
Elias Åström
2e79f1f0ed Check if there is room for tree to grow
Previously tree saplings would grow regardless of the blocks above it.
This could be abused to destroy bedrock and other nodes.

To solve this, checks are added for nodes around the trees.  The volume
checked depends on the tree type.  The volume for each tree has been set
so reject trees where branches would grow into other nodes.  Some nodes
types like torches, plants and wood are ignored in the checks.

Saplings in a 2x2 formation will grow into normal trees if there is no
room for a huge tree.  Oak trees has separate checks for balloon oak
trees and normal oak trees, if there is no room for a balloon oak, it
becomes a normal oak tree.
2020-05-23 19:37:02 +02:00
Wuzzy
d2cacf285d Paintings: Tweak selectionboxes 2020-05-21 04:45:54 +02:00
Wuzzy
3bd160f414 Check protection when placing painting 2020-05-21 04:22:10 +02:00
Wuzzy
f0d511bd4a Paintings: Move closer to wall 2020-05-21 02:16:12 +02:00
Wuzzy
95b3b4a172 Add empty smoke_puff.png 2020-05-21 01:54:55 +02:00
Wuzzy
bfd2f0ebc7 Add paintings 2020-05-21 01:51:52 +02:00
Wuzzy
d1d7c026e1 Buckets are no longer liquids_pointable 2020-05-20 21:59:37 +02:00
bzoss
228fc4b6ea Updated node to add bottles. TODO: Update node for bottle placement. 2020-05-19 17:31:07 -04:00
bzoss
572b43e93c Updated brewing stand node -- needs work. 2020-05-16 19:15:34 -04:00
bzoss
971e666d3e Initial commit to brewing formspec. 2020-05-16 18:22:09 -04:00
Wuzzy
7cfef25dfe Fix undeclared global in mcl_minecarts 2020-05-16 20:13:22 +02:00
Wuzzy
547080bd98 Add a delay before mobs start to suffocate 2020-05-13 22:15:46 +02:00
MysticTempest
a20637f68c Fix redstone dust climbing up doors, and fix redstone dust not turning off when redstone torch is destroyed through the destruction of an attached block 2020-05-13 21:11:17 +02:00
Wuzzy
1a0e979b0c Update incomplete license information and credits 2020-05-11 17:18:04 +02:00
Wuzzy
26b5b45595 Fix crash when creeper explodes 2020-05-10 14:54:43 +02:00
Wuzzy
c156398fb5 Merge branch 'translate-fr' of https://git.minetest.land/lrocher/MineClone2 into translate_fr 2020-05-09 18:57:40 +02:00
Wuzzy
728db50baf Fire doesn't destroy flammable=-1 nodes 2020-05-09 18:55:50 +02:00
Wuzzy
621946546b Ignite TNT by fire 2020-05-09 18:52:03 +02:00
Wuzzy
ffcad31871 Update falling nodes when fire replaces a block 2020-05-09 17:53:32 +02:00
Wuzzy
bfb1e3e447 Add age to of fire to greatly limit fire spread 2020-05-09 17:44:23 +02:00
Wuzzy
d13498e6f9 Rain now also extinguishes neighbor tiles 2020-05-09 16:03:07 +02:00
Wuzzy
0c96e512d7 Remove bogus saddle recipe 2020-05-09 00:40:54 +02:00
Wuzzy
5108f398bb Fix all explosions spawning fire 2020-05-08 18:04:04 +02:00
Wuzzy
2ec66fc61b Fix leaking global in mcl_explosions 2020-05-08 18:01:33 +02:00
Wuzzy
aeb7a6cb8b Disable guardian spawning 2020-05-08 17:44:27 +02:00
Wuzzy
131051b1df Fix code typo in mcl_playerplus 2020-05-08 17:41:09 +02:00
Alexander Minges
ad70a71f8c Fix crash when triggering explosion (type check error) 2020-05-08 17:31:41 +02:00
Wuzzy
fb55d33bfe Fix villager crash when trading w/o inited inv 2020-05-08 17:27:22 +02:00
Wuzzy
94c4256451 Fix crash when standing on unknown node 2020-05-08 17:23:39 +02:00
Rocher Laurent
e058ee8487 Fix some template.txt 2020-05-05 21:02:48 +02:00
Rocher Laurent
c9a37d0dbc Translate In French 2020-05-05 21:02:21 +02:00
Wuzzy
2b4a4f8c60 Merge branch 'master' of https://git.minetest.land/Wuzzy/MineClone2 2020-05-05 02:11:52 +02:00
Rocher Laurent
4957bd1118 Translate In French 2020-05-03 22:39:07 +02:00
Alexander Minges
beace10136 prevent water mobs to classify solid blocks below them as dangerous 2020-05-03 17:43:44 +02:00
Wuzzy
02b2ff7460 Fix mcl_weather crash 2020-05-02 19:08:55 +02:00
Wuzzy
bc740efafe Add fire explosions 2020-05-02 19:05:56 +02:00
Wuzzy
00acbf8a2a Remove unused TNT functions 2020-05-02 18:51:59 +02:00
Wuzzy
56d484f69b Make mobs and bed use mcl_explosions 2020-05-02 18:50:25 +02:00
Wuzzy
6a576c50a0 Add puncher to tnt_explosions 2020-05-02 18:24:53 +02:00
Wuzzy
d4bc7a2f88 Add back the explosion death msg 2020-05-02 18:09:25 +02:00
Wuzzy
7fa8828bd5 Explosions: Use minetest.get_position_from_hash 2020-04-30 21:13:10 +02:00
Wuzzy
026d406d4b Fix indents in mcl_explosions 2020-04-30 21:12:30 +02:00
Wuzzy
679e2b1b70 Explosions: Reduce repeated code 2020-04-30 21:08:42 +02:00
Wuzzy
772ea01aff Explosions: Fix syntax error 2020-04-30 21:00:13 +02:00
Wuzzy
2b5ddbd62d Explosions: Change item drop handler 2020-04-30 20:58:58 +02:00
Wuzzy
9ee0ef5a8d Explosions: Replace some API calls 2020-04-30 20:57:38 +02:00
Wuzzy
58458b2bca mcl_explosions: Rename description.txt 2020-04-30 20:55:49 +02:00
Wuzzy
3087621b11 Merge branch 'mcl_explosions' 2020-04-30 20:55:10 +02:00
Wuzzy
ef20ac54c3 Fix crash when fueling furnace minecart 2020-04-30 18:13:05 +02:00
Wuzzy
eea07f0ce7 Fix incomplete dry grass replacement LBM 2020-04-27 14:05:09 +02:00
Wuzzy
98988b1636 Fix creative search not take transl. into account 2020-04-25 14:31:01 +02:00
Wuzzy
c81a18ac1a Refactor mcl_void_damage 2020-04-22 01:38:41 +02:00
Wuzzy
0929ce4f20 Remove fire below air 2020-04-22 01:31:30 +02:00
Elias Åström
a10dff8421 Use walkable for entity exposure
This makes TNT do full damage under water.
2020-04-19 13:08:36 +02:00
Elias Åström
a62a75c799 Do not drop items in creative mode
It works like this in Minecraft.  This will also reduce lag when playing
with TNT in creative.
2020-04-19 13:08:36 +02:00
Elias Åström
64c767ad8c Make TNT behave like Minecraft
TNT entities are now knocked back by explosions.  When a TNT block
becomes triggered by an explosion, its fuse time is set to a random
value between 0.5 and 1.5 seconds.
2020-04-19 13:08:36 +02:00
Elias Åström
b4ea2afe77 Add tnt_knockback flag for entities
When set to true, entities will be knocked back when affected by TNT
explosions.  Also ignore '__builtin:item' entities to reduce lag, and
replace tabs with spaces in 'mcl_explosions/init.lua'.
2020-04-19 13:08:36 +02:00
Elias Åström
cdea2eeabf Change mcl_mobs to enable knockback in y direction 2020-04-19 13:08:36 +02:00
Elias Åström
92ab90fd1b Add knockback for mobs 2020-04-19 13:08:36 +02:00
Elias Åström
6315490b14 Update the rest of the blast resistance values
The values have been updated according to this list:

https://minecraft.gamepedia.com/Module:Blast_resistance_values
2020-04-19 13:08:36 +02:00
Elias Åström
fd05259202 Make TNT and TNT Minecart use the explosions API
The old api from mcl_tnt is still left in the code, and used by the
mobs.
2020-04-19 13:08:36 +02:00
Elias Åström
ca7c8c23c7 Add entity damage and player knockback
Could not find a way to add knockback to entities.  After adding a
velocity to them they will just slide around indefinitely.  Because of
this, knockback is only enabled on players for now.
2020-04-19 13:08:36 +02:00
Elias Åström
77c95fe8c3 Add particles and sounds from explosions 2020-04-19 13:08:36 +02:00
Wuzzy
e268370452 Add fire metadata to many nodes (unused for now) 2020-04-18 23:24:42 +02:00
Wuzzy
6a77a54034 Increase z_index values to match new convention 2020-04-17 21:27:45 +02:00
Elias Åström
1d5c11f683 Add mcl_explosions for ray traced explosions
Code has been adapted from the Minetest explosions API mod to have
Minecraft-like explosion mechanics and work with MineClone 2.
2020-04-17 20:47:12 +02:00
Elias Åström
063595ac3c Change blast resistance of nodes in mcl_core
The new blast resistance values are copied from the Minecraft wiki.

https://minecraft.gamepedia.com/Explosion
2020-04-17 20:47:12 +02:00
Wuzzy
3803dba233 Fix invalid portal node names in spawn code 2020-04-16 12:39:18 +02:00
Wuzzy
24ab3e8f84 Fix LBM typos 2020-04-16 12:22:50 +02:00
Wuzzy
1db34821a0 Mobs: Fix crash when mob dies to fall or light dmg 2020-04-12 23:11:18 +02:00
Wuzzy
081366855d Tweak appearance of snowflakes 2020-04-11 04:06:37 +02:00
Wuzzy
ab56d592ae Add snow particles on snowball impact 2020-04-11 04:06:24 +02:00
Wuzzy
a2785041dd Remove mod startup debug messages 2020-04-11 02:56:46 +02:00
Wuzzy
47cda09073 Implement per-class mob cap 2020-04-11 02:46:03 +02:00
Wuzzy
8e06e4e8b2 Reduce mob_specific mob caps 2020-04-11 01:35:44 +02:00
Wuzzy
a33bd015f5 Reduce max_object_per_block default to 64 2020-04-11 01:14:14 +02:00
Wuzzy
0c271a2af9 Randomize initial moon phase 2020-04-08 22:07:05 +02:00
Wuzzy
32ae6b3140 Add moon phases 2020-04-08 21:32:37 +02:00
Wuzzy
88927c8a6b Remove furnace craftguide btn cuz MT weirdness 2020-04-08 17:23:12 +02:00
Wuzzy
5fe8717fca Fix another crash in Mobs mod 2020-04-08 15:03:03 +02:00
Wuzzy
3bd1cded03 Furnace: Fix output slot image being misplaced 2020-04-08 13:29:27 +02:00
Wuzzy
d9cff3ef82 Make bark nodes usable as fuel 2020-04-08 13:15:22 +02:00
Wuzzy
20eba63b94 Fix bark stairs+slabs being not flammable 2020-04-08 13:08:33 +02:00
Wuzzy
8664a5c484 Make mobs vulnerable to TNT explosions 2020-04-08 12:41:52 +02:00
Wuzzy
71c9d20fff Use larger wield scale for tools 2020-04-08 04:07:16 +02:00
Wuzzy
a1ea41e760 Lava: Don't ignite 2 blocks above if 1 layer above is blocked 2020-04-08 03:17:34 +02:00
Wuzzy
21d5b93baa Remove explicit stepheight from most mobs 2020-04-08 02:35:20 +02:00
Wuzzy
31b367eb83 Fix horse-related crash 2020-04-08 02:29:12 +02:00
Wuzzy
f27615d77e Add z_index to HUD elements 2020-04-07 13:03:10 +02:00
Wuzzy
17f611567c Spawn rain and snow particles higher 2020-04-07 02:41:40 +02:00
Wuzzy
c9cc3651df Fix bad sky color definitions 2020-04-07 01:51:53 +02:00
Wuzzy
c5e4ec5e27 Use ephemeral sounds 2020-04-07 00:55:45 +02:00
Wuzzy
b2c75acd68 Use new set_sky API 2020-04-07 00:39:19 +02:00