0
0
Fork 0

Compare commits

...

95 Commits

Author SHA1 Message Date
the-real-herowl 59ad110e6b Merge pull request 'Fix mcl_shields is_blocking crash when object not found under player' (#4134) from Impulse/MineClone2:mcl-shields-crash-fix into master
Reviewed-on: MineClone2/MineClone2#4134
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2024-01-15 14:22:33 +00:00
James Clarke ee24b24c68 Fix indentation 2024-01-15 14:19:51 +00:00
James Clarke f94e7fc52f Fix mcl_shields is_blocking crash when object not found under player 2024-01-15 14:19:51 +00:00
the-real-herowl c70ae8e535 Merge pull request 'Add hunger debug setting' (#4127) from add-hunger-debug-setting into master
Reviewed-on: MineClone2/MineClone2#4127
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2024-01-13 03:47:41 +00:00
𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 c1115c9cef Merge pull request 'Fixed an invalid player object crash' (#4131) from player_crash_fix into master
Reviewed-on: MineClone2/MineClone2#4131
Reviewed-by: 𝕵𝖔𝖍𝖆𝖓𝖓𝖊𝖘 𝕱𝖗𝖎𝖙𝖟 <mrrar@noreply.git.minetest.land>
2024-01-11 20:00:02 +00:00
the-real-herowl 12b3e34f88 Fix a crash
Defensive check for nonexistent player
2024-01-11 03:45:10 +00:00
the-real-herowl 59c5d54cbe Merge pull request 'Add and fix some german translations' (#4132) from Tuxilio/MineClone2:german-translation into master
Reviewed-on: MineClone2/MineClone2#4132
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2024-01-08 13:54:55 +00:00
tuxilio 4b5afee4bb Add and fix some german translations 2024-01-08 13:35:41 +00:00
the-real-herowl 3c2247d7c8 Merge pull request 'mobs:piglin: use (alt) zombified piglin sounds' (#4083) from Bakawun/MineClone2:piglin_sounds into master
Reviewed-on: MineClone2/MineClone2#4083
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2024-01-08 08:47:16 +00:00
the-real-herowl 324fd0dc4a Merge pull request 'Add missing Hoglin/Zoglin sounds' (#4082) from Bakawun/MineClone2:hoglin_sounds into master
Reviewed-on: MineClone2/MineClone2#4082
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2024-01-08 08:45:33 +00:00
bakawun cd033aa4ff mobs:zoglin:sounds: adress review comment 2024-01-08 09:30:12 +01:00
bakawun 1f3c7913dd mobs:piglin:sounds: adress review comment 2024-01-08 09:26:03 +01:00
the-real-herowl 18db66c431 Merge pull request 'Changes in mcl_util.rotate_axis_and_place and bamboo on_place callback' (#4123) from JoseDouglas26/MineClone2:bamboo_rotation into master
Reviewed-on: MineClone2/MineClone2#4123
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2024-01-08 07:14:12 +00:00
JoseDouglas26 cc3f092185 Changes in rotation code and bamboo rotation 2024-01-08 05:55:36 +00:00
the-real-herowl 9f64facbf9 Merge pull request 'Nylium can be turned into netherrack' (#4124) from JoseDouglas26/MineClone2:nylium_into_netherrack into master 2024-01-08 03:12:54 +01:00
JoseDouglas26 6694babbde nylium can be turned into netherrack 2024-01-08 03:08:56 +01:00
SmokeyDope fc204c8717 Merge pull request 'Fix typo in pumpkin.lua' (#4122) from fix_pumpkin_typo_pumkin into master
Reviewed-on: MineClone2/MineClone2#4122
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2024-01-08 02:02:20 +00:00
SmokeyDope c664216104 Merge pull request 'Compressed Cobblestone' (#4119) from mcl_compressed_blocks into master
Reviewed-on: MineClone2/MineClone2#4119
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2024-01-08 01:20:14 +00:00
SmokeyDope cd3426b5ce Adjust hardness & blast resistance for compressed cobblestone blocks 2024-01-08 01:07:46 +00:00
the-real-herowl 9867c73eb3 Merge pull request 'Added colored end rod variants' (#4111) from end_rods_variants into master
Reviewed-on: MineClone2/MineClone2#4111
2024-01-08 00:57:31 +00:00
the-real-herowl 3db02bb022 Merge pull request 'Added colored redstone lamps' (#4115) from redstone_lamp_variants into master
Reviewed-on: MineClone2/MineClone2#4115
2024-01-08 00:56:36 +00:00
SmokeyDope 3c7597b75e Add hunger debug to settingtypes.txt 2024-01-06 22:50:40 +00:00
SmokeyDope 7bf3fbf13c Fix typo in pumpkin.lua 2024-01-05 17:06:22 +00:00
SmokeyDope fc7133f1a8 compressed cobblestone textures pt 2 2024-01-03 18:23:17 +00:00
SmokeyDope 05eb3bb8aa compressed cobblestone textures pt 1 2024-01-03 18:22:47 +00:00
SmokeyDope 7583caca9b mcl_compressed_blocks initial comit 2024-01-03 18:21:51 +00:00
the-real-herowl 882531b9fc Refactored end rod coloring code 2024-01-01 02:53:20 +01:00
the-real-herowl 0b5c15d05f Updated translation files 2024-01-01 02:18:01 +01:00
the-real-herowl cd930365b0 Added colored redstone lamps 2024-01-01 02:07:06 +01:00
the-real-herowl ce56f396b1 Merge pull request 'Fix translation files syntax errors' (#4092) from megustanlosfrijoles/frijolesclone2:fix-translation-files-syntax-errors into master
Reviewed-on: MineClone2/MineClone2#4092
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-12-30 23:25:49 +00:00
the-real-herowl ba297001b4 Merge pull request 'mcl_tt Spanish translation' (#4093) from megustanlosfrijoles/frijolesclone2:mcl_tt-spanish-translation into master
Reviewed-on: MineClone2/MineClone2#4093
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-12-30 23:23:53 +00:00
the-real-herowl 24eca01c3f Added translations for colored end rods 2023-12-31 00:20:15 +01:00
the-real-herowl 4e3cf9e04b Added colored end rod variants 2023-12-31 00:07:16 +01:00
the-real-herowl d285a48fed Merge pull request 'release/0.86.2' (#4110) from release/0.86.2 into master
Reviewed-on: MineClone2/MineClone2#4110
2023-12-30 04:38:49 +00:00
the-real-herowl d3d1bdf8d2 Post-hotfix revert game.conf to SNAPSHOT version 2023-12-30 05:34:24 +01:00
the-real-herowl f306d3768e Update game.conf for hotfix release 0.86.2 2023-12-30 05:33:27 +01:00
the-real-herowl 7463b97c69 Added hotfix notes to the release notes for 0.86 2023-12-30 05:32:10 +01:00
the-real-herowl d11526f8e8 Merge pull request 'Finish PVP Combat Parity with the rest + PVP Tweaks' (#4078) from Eliy21/MineClone2:combat_fixes into master
Reviewed-on: MineClone2/MineClone2#4078
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-12-30 04:21:18 +00:00
the-real-herowl 8021a6a723 Merge pull request 'Hotfix 0.86.2' (#4109) from hotfix_0_86_2_branch into master
Reviewed-on: MineClone2/MineClone2#4109
2023-12-30 04:01:05 +00:00
the-real-herowl 1bad5659cf Fixed a cryptic error message
Migrated it to mcl_log and maded it clearer
2023-12-30 04:53:17 +01:00
the-real-herowl befd98b83e Fixed XP orb texture breaking randomly
It used undefined engine behaviour.
It's unclear how it even worked *sometimes*.
2023-12-30 04:13:13 +01:00
the-real-herowl 13341df20b Optimized some textures for size 2023-12-29 13:50:22 +01:00
José M 4a407679c0 Translate mcl_tt to spanish 2023-12-25 23:41:49 -06:00
cora 29d40ef553 Mix down new mob sounds to mono 2023-12-23 09:39:12 +01:00
Eliy21 10dcdb7d6b Remove unnecessary player vector magnitude calculation 2023-12-21 15:52:26 +00:00
José M ec8f3f5530 Start the beggining of the mcl_tt spanish translation 2023-12-21 00:18:40 -06:00
José M 74ab3ffeee Add missing placeholder(s) in doc_items.pt.tr translation: '@1' 2023-12-20 23:55:39 -06:00
José M 9d62c4ca5e Fix missing placeholder(s) in mesecons_commandblock.es.tr translation: '@1' '@2' 2023-12-20 23:46:30 -06:00
José M c9d221976b Escape equals signs in translation file mcl_doc_basics.it.tr 2023-12-20 23:40:33 -06:00
José M 0d1a6d91e9 Remove an unescaped equals sign in mcl_info.fr.tr translation 2023-12-20 23:24:03 -06:00
José M 0f82c623d5 Add missing placeholder(s) in mcl_farming.fr.tr translation: '@1' 2023-12-20 23:15:12 -06:00
Eliy21 96fa6c251e Counteract self forward velocity when hit by players in pvp 2023-12-20 15:50:37 +00:00
Eliy21 e19de85990 Adjust the difference between sprinting & walking knockbacks for a more seemless transition 2023-12-19 17:19:09 +00:00
Eliy21 76bff2b540 Add minimum pvp knockbacks to other meele weapons 2023-12-19 16:49:48 +00:00
Eliy21 ff882707de Rework moving majority of the added velocity knockbacks into sprinting 2023-12-19 16:15:41 +00:00
Eliy21 d7ed37ef25 Remove redundant knockback limiter 2023-12-19 15:31:29 +00:00
Eliy21 44c656502f Add a prevention in case players get stuck with the damage animation 2023-12-18 22:04:12 +00:00
Eliy21 fe90424ee4 Add pvp knockback reduction when moving towards player while attacking 2023-12-18 21:42:26 +00:00
Eliy21 14cec16c63 Increase enchanted bow knockback 2023-12-18 21:31:38 +00:00
bakawun cc470b9d88 mobs:hoglin: fix conversion of tabs to spaces 2023-12-18 11:08:09 +01:00
bakawun ee51a500b2 mobs:piglin: use (alt) zombified piglin sounds 2023-12-18 10:57:39 +01:00
bakawun 7f823f0155 mobs:hoglin:add licence information 2023-12-18 10:38:23 +01:00
bakawun f5ba0b7981 mobs:zoglin: use hoglin sound .2 2023-12-18 10:31:08 +01:00
bakawun e202f20869 mobs:hoglin: use sound .1 for random and
reuse hurt sound for death
2023-12-18 09:58:37 +01:00
bakawun 692b101212 mobs:hoglin: add missing sounds
these were made by epCode and lincenced under
LGPL-3.0.
downloaded from
49a838e733
2023-12-18 09:51:58 +01:00
Eliy21 12109e7f44 Add player damage animation 2023-12-17 21:18:57 +00:00
Eliy21 200f7451eb Remove unnecessary invul code & add damage animation code 2023-12-17 21:15:55 +00:00
Eliy21 c39e55e2d4 Add minimum knockback to crossbow 2023-12-17 20:01:35 +00:00
Eliy21 6d7ae8ba2d Add minimum unenchanted knockback to bow 2023-12-17 19:59:18 +00:00
Eliy21 8612350fa7 Make vertical pvp knockback floatiness reduction include moving hits 2023-12-17 17:48:39 +00:00
Eliy21 0a8874ecad Make vertical pvp knockbacks less floaty 2023-12-17 16:39:04 +00:00
Eliy21 e8ee9c4463 Remove obsolete work-around code 2023-12-16 12:58:58 +00:00
Eliy21 32e91b45ae Add vertical pvp knockbacks from downward hits & reduce pvp kb on half block angled upward hits 2023-12-16 11:48:16 +00:00
Eliy21 8fbd72c142 Optimize code by calling get_enchantment function only once 2023-12-16 09:46:18 +00:00
Eliy21 cfab59d68a Rebalanced moving pvp knockbacks 2023-12-16 09:20:29 +00:00
Eliy21 33e8337bbb Finish remaining excessive vertical pvp knockback prevention adjustments when hit from below 2023-12-16 07:58:26 +00:00
Eliy21 f799596db9 Make vertical pvp knockbacks respect attack reach limit & complete excess vertical kb prevention 2023-12-15 22:56:02 +00:00
Eliy21 9b9747b3d8 Prevent excessive vertical knockbacks if hit by a player from below 2023-12-15 21:02:07 +00:00
Eliy21 c9692c6224 Fix player invulnerability not getting disabled permanently bug 2023-12-15 19:49:04 +00:00
Eliy21 cd83305f07 Make the vertical lift on pvp knockback similar to MC 2023-12-15 18:17:15 +00:00
Eliy21 d7b10d18d8 Fix not being able to give minimum knockback to players when both near and lower than them 2023-12-15 16:27:09 +00:00
Eliy21 8e2c5249f5 Fix comment on player invul code 2023-12-15 15:59:08 +00:00
Eliy21 ca556c052f Prevent pvp knockbacks when invulnerable 2023-12-15 15:52:26 +00:00
Eliy21 60367cdbe0 Revert unreliable bugfix
There are times when the continuous damage when punching players does not happen so will not fix at the moment as using other weapons does still work.
2023-12-15 15:42:49 +00:00
Eliy21 6b439fd1de Add maximum pvp knockback limit & approximate enchant knockback distance to be similar to MC 2023-12-14 11:57:55 +00:00
Eliy21 bf9e487fa9 Adjust minimum pvp knockback to be closer to MC 2023-12-14 09:27:28 +00:00
Eliy21 49af5d2013 Rebalance minimum pvp knockback to account for added knockbacks when moving 2023-12-14 08:51:34 +00:00
Eliy21 ed507d8509 Remove unnecessary space in the attack reach limit on mobs code 2023-12-14 08:15:55 +00:00
Eliy21 b2507c3640 Make fire aspect enchant respect attack reach limit 2023-12-14 08:12:13 +00:00
Eliy21 85b1f5247a Add vertical lift & minimum pvp knockback 2023-12-14 07:46:16 +00:00
Eliy21 2b71462c1e Prevent knockback if player is beyond attack reach limit 2023-12-13 20:36:54 +00:00
Eliy21 b0e33793ec Fix a potential bug that could bypass attack reach limit when a stronger attack breaches the invul 2023-12-13 20:04:15 +00:00
Eliy21 96aaf89036 Readjust pvp enchant knockback to make the running knockback difference more pronounced 2023-12-13 18:49:08 +00:00
Eliy21 a8c2d4534a Nerf long pvp enchanted knockbacks especially when running 2023-12-13 17:42:42 +00:00
Eliy21 a8806fe04e Add player invulnerability & fix not continuously damaging players when holding the attack key
Player invulnerability is the same as Minecraft's Damage Immunity https://minecraft.wiki/w/Damage#Immunity

The old code for some reason only allows a few damage by holding and does not continuously damage other players after a few hits
2023-12-13 17:34:42 +00:00
88 changed files with 742 additions and 106 deletions

View File

@ -160,7 +160,7 @@ function mcl_util.rotate_axis_and_place(itemstack, placer, pointed_thing, infini
return
end
local undef = minetest.registered_nodes[unode.name]
if undef and undef.on_rightclick then
if undef and undef.on_rightclick and not invert_wall then
undef.on_rightclick(pointed_thing.under, unode, placer,
itemstack, pointed_thing)
return
@ -198,25 +198,11 @@ function mcl_util.rotate_axis_and_place(itemstack, placer, pointed_thing, infini
local p2
if is_y then
if invert_wall then
if fdir == 3 or fdir == 1 then
p2 = 12
else
p2 = 6
end
end
p2 = 0
elseif is_x then
if invert_wall then
p2 = 0
else
p2 = 12
end
p2 = 12
elseif is_z then
if invert_wall then
p2 = 0
else
p2 = 6
end
p2 = 6
end
minetest.set_node(pos, {name = wield_name, param2 = p2})
@ -1075,7 +1061,7 @@ function mcl_util.move_list(src_inv, src_listname, out_inv, out_listname, pos, d
v.y = v.y * 4 + 2
v.z = v.z * 4
obj:set_velocity(v)
minetest.log("error", vector.to_string(v))
mcl_util.mcl_log("item velocity calculated "..vector.to_string(v), "[mcl_util]")
end
if not insta_collect then
obj:get_luaentity()._insta_collect = false

View File

@ -522,7 +522,7 @@ function mob_class:on_punch(hitter, tflp, tool_capabilities, dir)
if is_player then
-- is mob out of reach?
if vector.distance(mob_pos, player_pos) > 3 then
if vector.distance(mob_pos, player_pos) > 3 then
return
end
-- is mob protected?

View File

@ -305,6 +305,9 @@ Origin of those models:
* `mobs_mc_rabbit_random.*.ogg` (CC0)
* Changes were made.
* Source: <https://freesound.org/people/Alshred/>
* [epCode]
* `extra_mobs_hoglin*.ogg` (LGPL 3.0)
* Source: <https://git.minetest.land/epCode/extra_mobs/src/branch/master/sounds>
Note: Many of these sounds have been more or less modified to fit the game.

View File

@ -31,8 +31,9 @@ local hoglin = {
} },
visual_size = {x=3, y=3},
sounds = {
random = "extra_mobs_hoglin",
random = "extra_mobs_hoglin.1",
damage = "extra_mobs_hoglin_hurt",
death = "extra_mobs_hoglin_hurt",
distance = 16,
},
jump = true,
@ -92,6 +93,12 @@ local zoglin = table.copy(hoglin)
zoglin.description = S("Zoglin")
zoglin.fire_resistant = 1
zoglin.textures = {"extra_mobs_zoglin.png"}
sounds = {
random = "extra_mobs_hoglin.2",
damage = "extra_mobs_hoglin_hurt",
death = "extra_mobs_hoglin_hurt",
distance = 16,
}
zoglin.do_custom = function()
return
end

View File

@ -61,8 +61,10 @@ local piglin = {
} },
visual_size = {x=1, y=1},
sounds = {
random = "extra_mobs_piglin",
damage = "extra_mobs_piglin_hurt",
random = "mobs_mc_zombiepig_random",
war_cry = "mobs_mc_zombiepig_war_cry", death = "mobs_mc_zombiepig_death",
damage = "mobs_mc_zombiepig_hurt.2",
death = "mobs_mc_zombiepig_death.2",
distance = 16,
},
jump = true,

Binary file not shown.

Binary file not shown.

View File

@ -53,8 +53,8 @@ Range: 4=Range: 4
Rating @1=Classificação @1
# @1 is minimal rating, @2 is maximum rating
Rating @1-@2=Classificação @1-@2
The fall damage on this block is increased by @1%.=O dano por queda nesse bloco é aumentado em @ 1%.
The fall damage on this block is reduced by @1%.=O dano por queda nesse bloco é reduzido em @ 1%.
The fall damage on this block is increased by @1%.=O dano por queda nesse bloco é aumentado em @1%.
The fall damage on this block is reduced by @1%.=O dano por queda nesse bloco é reduzido em @1%.
This block allows light to propagate with a small loss of brightness, and sunlight can even go through losslessly.=Esse bloco permite que a luz se propague com uma pequena perda de brilho, e a luz solar pode até passar sem perdas.
This block allows light to propagate with a small loss of brightness.=Esse bloco permite que a luz se propague com uma pequena perda de brilho.
This block allows sunlight to propagate without loss in brightness.=Esse bloco permite que a luz solar se propague sem perda de brilho.
@ -78,7 +78,7 @@ This block connects to this block: @1.=Esse bloco se conecta a esse bloco: @1.
This block decreases your breath and causes a drowning damage of @1 hit point every 2 seconds.=Esse bloco diminui a sua respiração e causa um dano por afogamento de @1 ponto de vida a cada 2 segundos.
This block decreases your breath and causes a drowning damage of @1 hit points every 2 seconds.=Esse bloco diminui a sua respiração e causa um dano por afogamento de @1 pontos de vida a cada 2 segundos.
This block is a light source with a light level of @1.=Esse bloco é uma fonte de luz com um nível de luz de @1.
This block glows faintly with a light level of @1.=Esse bloco tem um brilho fraco com um nível de luz de @ 1.
This block glows faintly with a light level of @1.=Esse bloco tem um brilho fraco com um nível de luz de @1.
This block is a building block for creating various buildings.=Esse bloco é um bloco de construção para criar vários edifícios.
This block is a liquid with these properties:=Esse bloco é um líquido com as seguintes propriedades:
This block is affected by gravity and can fall.=Esse bloco é afetado pela gravidade e pode cair.
@ -123,7 +123,7 @@ any level=qualquer nível
level 0=nível 0
level 0-@1=nivel 0-@1
unknown=desconhecido
Unknown item (@1)=Item desconhecido
Unknown item (@1)=Item desconhecido (@1)
• @1: @2=
• @1: @2 HP=
• @1: @2, @3=

View File

@ -25,7 +25,7 @@ Minetest is a free software game engine for games based on voxel gameplay, inspi
The player is thrown into a huge world made out of cubes or blocks. These cubes usually make the landscape they blocks can be removed and placed almost entirely freely. Using the collected items, new tools and other items can be crafted. Games in Minetest (also called “subgames”) can, however, be much more complex than this.=L'utente è gettat* in un enorme mondo fatto di cubi o blocchi. Questi cubi normalmente compongono il panorama e possono essere tolti o messi quasi completamente liberamente. Usando gli oggetti raccolti, si possono assemblare nuovi strumenti e altri oggetti. I giochi in Minetest (chiamati anche "subgame") possono, comunque, essere molto più complessi.
A core feature of Minetest is the built-in modding capability. Mods modify existing gameplay. They can be as simple as adding a few decorational blocks or be very complex by e.g. introducing completely new gameplay concepts, generating a completely different kind of world, and many other things.=Una caratteristica centrale di Minetest è la capacità integrata di usare moduli. I moduli modificano l'esperienza di gioco esistente. Possono essere tanto semplici da aggiungere qualche blocco decorativo o essere molto complessi, per esempio introducendo concetti di gioco totalmente nuovi, generare un tipo di mondo completamente diverso, e molte altre cose.
Minetest can be played alone or online together with multiple players. Online play will work out of the box with any mods, with no need for additional software as they are entirely provided by the server.=Minetest può essere giocato localmente o in rete assieme a più utenti. Il gioco in rete funzionerà immediatamente senza nessun modulo, senza bisogno di programmi aggiuntivi perché interamente forniti dal server.
Minetest is usually bundled with a simple default game, named “Minetest Game” (shown in images 1 and 2). You probably already have it. Other games for Minetest can be downloaded from the official Minetest forums <https://forum.minetest.net/viewforum.php?f=48>.=Minetest generalmente include un gioco predefinito semplice, chiamato "Minetest Game" (mostrato nelle immagini 1 e 2). Probabilmente lo avete già. Altri giochi per Minetest possono essere scaricati dai forum ufficiali di Minetest <https://forum.minetest.net/viewforum.php?f=48>.
Minetest is usually bundled with a simple default game, named “Minetest Game” (shown in images 1 and 2). You probably already have it. Other games for Minetest can be downloaded from the official Minetest forums <https://forum.minetest.net/viewforum.php?f@=48>.=Minetest generalmente include un gioco predefinito semplice, chiamato "Minetest Game" (mostrato nelle immagini 1 e 2). Probabilmente lo avete già. Altri giochi per Minetest possono essere scaricati dai forum ufficiali di Minetest <https://forum.minetest.net/viewforum.php?f@=48>.
Sneaking=Strisciare
Sneaking makes you walk slower and prevents you from falling off the edge of a block.=Strisciare vi fa camminare più lentamente e vi impedisce di cadere dal bordo di un blocco.
To sneak, hold down the sneak key (default: [Shift]). When you release it, you stop sneaking. Careful: When you release the sneak key at a ledge, you might fall!=Per strisciare, tenete premuto il tasto per strisciare (predefinito [Maiusc]). Quando lo rilasciate, smettete di strisciare. Fate attenzione: quando rilasciate il tasto per strisciare vicino a un orlo, potreste cadere!
@ -396,7 +396,7 @@ Note that “transparency” here only means that the block is able to carry bri
Coordinates=Coordinate
The Minetest world is a large cube. And because of this, a position in the world can be easily expressed with Cartesian coordinates. That is, for each position in the world, there are 3 values X, Y and Z.=Il mondo di Minetest è un grande cubo. E per questo, una posizione nel mondo può essere facilmente espressa tramite coordinate Cartesiane. Cioè, per ogni posizione nel mondo, esistono tre valori: X, Y e Z.
Like this: (5, 45, -12)=Come questi: (5, 45, -12)
This refers to the position where X=5, Y=45 and Z=-12. The 3 letters are called “axes”: Y is for the height. X and Z are for the horizontal position.=Ciò si riferisce alla posizione dove X=5 (si legga “X vale 5”, NdT), Y=45 e Z=-12. Le tre lettere sono chiamate “assi”: Y si riferisce all'altezza. X e Z si riferiscono alla posizione orizzontale.
This refers to the position where X@=5, Y@=45 and Z@=-12. The 3 letters are called “axes”: Y is for the height. X and Z are for the horizontal position.=Ciò si riferisce alla posizione dove X@=5 (si legga “X vale 5”, NdT), Y@=45 e Z@=-12. Le tre lettere sono chiamate “assi”: Y si riferisce all'altezza. X e Z si riferiscono alla posizione orizzontale.
The values for X, Y and Z work like this:=I valori di X, Y e Z funzionano così:
• If you go up, Y increases=• Se salite, Y aumenta
• If you go down, Y decreases=• Se scendete, Y diminuisce

View File

@ -0,0 +1,48 @@
# textdomain: mcl_tt
Head armor=Armadura para la cabeza
Torso armor=Armadura para el torso
Legs armor=Armadura para las piernas
Feet armor=Armadura para los pies
Armor points: @1=Puntos de armadura: @1
Armor durability: @1=Durabilidad de armadura: @1
Protection: @1%=Protección: @1%
Hunger points: +@1=Puntos de hambre: +@1
Saturation points: +@1=Puntos de saturación: +@1
Deals damage when falling=Causa daño al caer
Grows on grass blocks or dirt=Crece sobre bloques de pasto o tierra
Grows on grass blocks, podzol, dirt or coarse dirt=Crece sobre bloques de pasto, podsol, tierra o tierra estéril
Flammable=Inflamable
Zombie view range: -50%=Rango de visión zombie: -50%
Skeleton view range: -50%=Rango de visión de esqueleto: -50%
Creeper view range: -50%=Rango de visión de creeper: -50%
Damage: @1=Daño: @1
Damage (@1): @2=Daño (@1): @2
Healing: @1=Curación: @1
Healing (@1): @2=Curación (@1): @2
Full punch interval: @1s=Intervalo de golpe completo: @1s
Contact damage: @1 per second=Daño por contacto: @1 por segundo
Contact healing: @1 per second=Curación por contacto: @1 por segundo
Drowning damage: @1=Dañor por ahogamiento: @1
Bouncy (@1%)=Rebota (@1%)
Luminance: @1=Luminancia: @1
Slippery=Resbaladizo
Climbable=Escalable
Climbable (only downwards)=Escalable (solo hacia abajo)
No jumping=No saltar
No swimming upwards=No nadar hacia arriba
No rising=No levantar
Fall damage: @1%=Daño por caída: @1%
Fall damage: +@1%=Daño por caída: @1%
No fall damage=Sin daño por caída
Mining speed: @1=Velocidad de minado: @1
Very fast=Muy rápido
Extremely fast=Extremadamente rápido
Fast=Rápido
Slow=Lento
Very slow=Muy lento
Painfully slow=Dolorosamente lento
Mining durability: @1=Durabilidad de minería: @1
Block breaking strength: @1=Fuerza para romper bloques: @1
@1 uses=@1 usos
Unlimited uses=Usos ilimitados
Durability: @1=Durabilidad: @1

View File

@ -155,7 +155,7 @@ minetest.register_entity("mcl_experience:orb", {
collisionbox = {-0.2, -0.2, -0.2, 0.2, 0.2, 0.2},
visual = "sprite",
visual_size = {x = 0.4, y = 0.4},
textures = {name="mcl_experience_orb.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=2.0}},
textures = {"mcl_experience_orb.png"},
spritediv = {x = 1, y = 14},
initial_sprite_basepos = {x = 0, y = 0},
is_visible = true,

View File

@ -1,4 +1,4 @@
# textdomain: mcl_info
Set debug bit mask: 0 @= disable, 1 @= biome name, 2 @= coordinates, 3 @= all=Régler le masque de bits pour débuguer : 0 @= pour désactiver, 1 @= nom du biome, 2 @= coordonnées, 3 @= tout=
Set debug bit mask: 0 @= disable, 1 @= biome name, 2 @= coordinates, 3 @= all=Régler le masque de bits pour débuguer : 0 @= pour désactiver, 1 @= nom du biome, 2 @= coordonnées, 3 @= tout
Error! Possible values are integer numbers from @1 to @2=Erreur ! Les valeurs possibles sont des nombres entiers de @1 à @2
Debug bit mask set to @1=Masque de bits de débuguage réglé à @1

View File

@ -1,7 +1,7 @@
# textdomain: mesecons_commandblock
Error: The command “@1” does not exist; your command block has not been changed. Use the “help” chat command for a list of available commands.=Error: el comando "@1" no existe; su bloque de comando no ha sido cambiado. Utilice el comando de chat "help" para obtener una lista de los comandos disponibles.
Error: The command “@1” does not exist; your command block has not been changed. Use the “help” chat command for a list of available commands. Hint: Try to remove the leading slash.=Error: el comando "@1" no existe; su bloque de comando no ha sido cambiado. Utilice el comando de chat "help" para obtener una lista de los comandos disponibles. Sugerencia: intente eliminar la barra diagonal inicial.
Error: You have insufficient privileges to use the command “@1” (missing privilege: @2)! The command block has not been changed.=Error: ¡No tiene suficientes privilegios para usar el comando “@ 1” (faltan privilegios: @ 2)! El bloque de comando no ha sido cambiado.
Error: You have insufficient privileges to use the command “@1” (missing privilege: @2)! The command block has not been changed.=Error: ¡No tiene suficientes privilegios para usar el comando “@1” (faltan privilegios: @2)! El bloque de comando no ha sido cambiado.
Error: No commander! Block must be replaced.=Error: ¡Sin dueño! El bloque debe ser reemplazado.
Commander: @1=Dueño: @1
Submit=Aceptar

View File

@ -2,7 +2,24 @@ local S = minetest.get_translator(minetest.get_current_modname())
local light = minetest.LIGHT_MAX
minetest.register_node("mesecons_lightstone:lightstone_off", {
local function generate_action_on(color)
local n = "mesecons_lightstone:lightstone_on"
if color then n = n .. "_" .. color end
return function(pos, node)
minetest.swap_node(pos, {name=n, param2 = node.param2})
end
end
local function generate_action_off(color)
local n = "mesecons_lightstone:lightstone_off"
if color then n = n .. "_" .. color end
return function(pos, node)
minetest.swap_node(pos, {name=n, param2 = node.param2})
end
end
local ls_off_name = "mesecons_lightstone:lightstone_off"
local ls_off_def = {
tiles = {"jeija_lightstone_gray_off.png"},
groups = {handy=1, mesecon_effector_off = 1, mesecon = 2},
is_ground_content = false,
@ -11,16 +28,16 @@ minetest.register_node("mesecons_lightstone:lightstone_off", {
_doc_items_longdesc = S("Redstone lamps are simple redstone components which glow brightly (light level @1) when they receive redstone power.", light),
sounds = mcl_sounds.node_sound_glass_defaults(),
mesecons = {effector = {
action_on = function(pos, node)
minetest.swap_node(pos, {name="mesecons_lightstone:lightstone_on", param2 = node.param2})
end,
action_on = generate_action_on(),
rules = mesecon.rules.alldirs,
}},
_mcl_blast_resistance = 0.3,
_mcl_hardness = 0.3,
})
}
minetest.register_node(ls_off_name, ls_off_def)
minetest.register_node("mesecons_lightstone:lightstone_on", {
local ls_on_name = "mesecons_lightstone:lightstone_on"
local ls_on_def = {
tiles = {"jeija_lightstone_gray_on.png"},
groups = {handy=1, not_in_creative_inventory=1, mesecon = 2, opaque = 1},
drop = "node mesecons_lightstone:lightstone_off",
@ -29,14 +46,59 @@ minetest.register_node("mesecons_lightstone:lightstone_on", {
light_source = light,
sounds = mcl_sounds.node_sound_glass_defaults(),
mesecons = {effector = {
action_off = function(pos, node)
minetest.swap_node(pos, {name="mesecons_lightstone:lightstone_off", param2 = node.param2})
end,
action_off = generate_action_off(),
rules = mesecon.rules.alldirs,
}},
_mcl_blast_resistance = 0.3,
_mcl_hardness = 0.3,
})
}
minetest.register_node(ls_on_name, ls_on_def)
local colored_lamps = {
{"white", S("White Redstone Lamp"), "white"},
{"grey", S("Grey Redstone Lamp"), "dark_grey"},
{"silver", S("Light Grey Redstone Lamp"), "grey"},
{"black", S("Black Redstone Lamp"), "black"},
{"red", S("Red Redstone Lamp"), "red"},
{"yellow", S("Yellow Redstone Lamp"), "yellow"},
{"green", S("Green Redstone Lamp"), "dark_green"},
{"cyan", S("Cyan Redstone Lamp"), "cyan"},
{"blue", S("Blue Redstone Lamp"), "blue"},
{"magenta", S("Magenta Redstone Lamp"), "magenta"},
{"orange", S("Orange Redstone Lamp"), "orange"},
{"purple", S("Purple Redstone Lamp"), "violet"},
{"brown", S("Brown Redstone Lamp"), "brown"},
{"pink", S("Pink Redstone Lamp"), "pink"},
{"lime", S("Lime Redstone Lamp"), "green"},
{"lightblue", S("Light Blue Redstone Lamp"), "lightblue"},
}
for _, row in ipairs(colored_lamps) do
local name = row[1]
local desc = row[2]
local dye = row[3]
local mask = "^[hsl:0:-100^(mcl_lightstone_mask.png^[multiply:" .. name .. "^[opacity:100)"
if name == "lightblue" then
mask = "^[hsl:0:-100^(mcl_lightstone_mask.png^[multiply:" .. name .. "^[hsl:0:200^[opacity:100)"
end
local name_off = ls_off_name .. "_" .. name
local def_off = table.copy(ls_off_def)
def_off.description = desc
def_off._doc_items_longdesc = nil
def_off._doc_items_create_entry = false
def_off.mesecons.effector.action_on = generate_action_on(name)
def_off.tiles[1] = def_off.tiles[1] .. mask
local def_on = table.copy(ls_on_def)
def_on.drop = name_off
def_on.tiles[1] = def_on.tiles[1] .. mask
def_on.mesecons.effector.action_off = generate_action_off(name)
minetest.register_node(name_off, def_off)
minetest.register_node(ls_on_name.."_"..name, def_on)
minetest.register_craft({
type = "shapeless",
output = name_off,
recipe = {ls_off_name, "mcl_dye:" .. dye}
})
end
minetest.register_craft({
output = "mesecons_lightstone:lightstone_off",

View File

@ -2,3 +2,19 @@
Redstone Lamp=Redstonelampe
Redstone lamps are simple redstone components which glow brightly (light level @1) when they receive redstone power.=Redstonelampen sind einfache Redstonekomponenten, die hell aufleuchten (Helligkeitspegel von @1), wenn sie Redstoneenergie erhalten.
Glows when powered by redstone power=Leuchtet, wenn mit Redstoneenergie versorgt
White Redstone Lamp=Weiße Redstonelampe
Grey Redstone Lamp=Graue Redstonelampe
Light Grey Redstone Lamp=Hellgraue Redstonelampe
Black Redstone Lamp=Schwartze Redstonelampe
Red Redstone Lamp=Rote Redstonelampe
Yellow Redstone Lamp=Gelbe Redstonelampe
Green Redstone Lamp=Grüne Redstonelampe
Cyan Redstone Lamp=Türkise Redstonelampe
Blue Redstone Lamp=Blaue Redstonelampe
Magenta Redstone Lamp=Magenta Redstonelampe
Orange Redstone Lamp=Orange Redstonelampe
Purple Redstone Lamp=Violette Redstonelampe
Brown Redstone Lamp=Braune Redstonelampe
Pink Redstone Lamp=Rosa Redstonelampe
Lime Redstone Lamp=Lindgrüne Redstonelampe
Light Blue Redstone Lamp=Hellblaue Redstonelampe

View File

@ -2,3 +2,19 @@
Redstone Lamp=Lampa czerwienitowa
Redstone lamps are simple redstone components which glow brightly (light level @1) when they receive redstone power.=Lampy czerwienitowe to mechanizmy czerwienitowe, które jasno świecą (poziom światła @1), gdy są zasilone energią czerwienitową.
Glows when powered by redstone power=Świeci gdy zasilana czerwienitem
White Redstone Lamp=Biała lampa czerwienitowa
Grey Redstone Lamp=Szara lampa czerwienitowa
Light Grey Redstone Lamp=Jasnoszara lampa czerwienitowa
Black Redstone Lamp=Czarna lampa czerwienitowa
Red Redstone Lamp=Czerwona lampa czerwienitowa
Yellow Redstone Lamp=Żółta lampa czerwienitowa
Green Redstone Lamp=Zielona lampa czerwienitowa
Cyan Redstone Lamp=Błękitna lampa czerwienitowa
Blue Redstone Lamp=Niebieska lampa czerwienitowa
Magenta Redstone Lamp=Karmazynowa lampa czerwienitowa
Orange Redstone Lamp=Pomarańczowa lampa czerwienitowa
Purple Redstone Lamp=Fioletowa lampa czerwienitowa
Brown Redstone Lamp=Brązowa lampa czerwienitowa
Pink Redstone Lamp=Różowa lampa czerwienitowa
Lime Redstone Lamp=Jasnozielona lampa czerwienitowa
Light Blue Redstone Lamp=Jasnoniebieska lampa czerwienitowa

View File

@ -2,3 +2,19 @@
Redstone Lamp=
Redstone lamps are simple redstone components which glow brightly (light level @1) when they receive redstone power.=
Glows when powered by redstone power=
White Redstone Lamp=
Grey Redstone Lamp=
Light Grey Redstone Lamp=
Black Redstone Lamp=
Red Redstone Lamp=
Yellow Redstone Lamp=
Green Redstone Lamp=
Cyan Redstone Lamp=
Blue Redstone Lamp=
Magenta Redstone Lamp=
Orange Redstone Lamp=
Purple Redstone Lamp=
Brown Redstone Lamp=
Pink Redstone Lamp=
Lime Redstone Lamp=
Light Blue Redstone Lamp=

View File

@ -0,0 +1,19 @@
# textdomain: mcl_amethyst
Amethyst Cluster=Amethysthaufen
Amethyst Cluster is the final growth of amethyst bud.=Der Amethysthaufen ist das endgültige Wachstum der Amethystknospe.
Amethyst Shard=Amethystsplitter
An amethyst shard is a crystalline mineral.=Ein Amethystsplitter ist ein kristallines Mineral.
Block of Amethyst=Amethystblock
Budding Amethyst=Amethystknospe
Calcite=Kalzit
Calcite can be found as part of amethyst geodes.=Kalzit kann als Teil von Amethystgeoden gefunden werden.
Large Amethyst Bud=Große Amethystknospe
Large Amethyst Bud is the third growth of amethyst bud.=Die große Amethystknospe ist die dritte Wachstumsstufe der Amethystknospe.
Medium Amethyst Bud=Mittelgroße Amethystknospe
Medium Amethyst Bud is the second growth of amethyst bud.=Die mittelgroße Amethystknospe ist die zweite Wachstumsstufe der Amethystknospe.
Small Amethyst Bud=Kleine Amethystknospe
Small Amethyst Bud is the first growth of amethyst bud.=Die kleine Amethystknospe ist die erste Wachstumsstufe der Amethystknospe.
The Block of Amethyst is a decoration block crafted from amethyst shards.=Der Amethystblock ist ein aus Amethystsplittern gefertigter Dekorationsblock.
The Budding Amethyst can grow amethyst=Knospender Amethyst kann Amethyst wachsen lassen.
Tinted Glass=Getöntes Glas
Tinted Glass is a type of glass which blocks lights while it is visually transparent.=Getöntes Glas ist eine Art von Glas, das Licht blockiert, während es visuell transparent ist.

View File

@ -1,6 +1,6 @@
# textdomain: mcl_armor
This is a piece of equippable armor which reduces the amount of damage you receive.=Dies ist ein Teil einer tragbaren Rüstung, die die Menge an Schaden, den Sie erleiden, reduziert.
To equip it, put it on the corresponding armor slot in your inventory menu.=Um es zu tragen, legen Sie es in den passenden Rüstungsplatz in ihrem Inventarmenü.
To equip it, put it on the corresponding armor slot in your inventory menu.=Um es zu tragen, legen Sie es in den passenden Rüstungsplatz in Ihrem Inventarmenü.
Leather Cap=Lederkappe
Iron Helmet=Eisenhelm
Golden Helmet=Goldhelm

View File

@ -280,31 +280,7 @@ local bamboo_block_def = {
_mcl_blast_resistance = 3,
_mcl_hardness = 2,
_mcl_stripped_variant = "mcl_bamboo:bamboo_block_stripped", -- this allows us to use the built in Axe's strip block.
on_place = function(itemstack, placer, pointed_thing)
if not pointed_thing then
return itemstack
end
if pointed_thing.type ~= "node" then -- make sure that pointed_thing is not null and is pointing at a node.
return itemstack
end
local pos = pointed_thing.under
if mcl_bamboo.is_protected(pos, placer) then
return
end
-- Use pointed node's on_rightclick function first, if present
local node = minetest.get_node(pointed_thing.under)
if placer and not placer:get_player_control().sneak then
if minetest.registered_nodes[node.name] and minetest.registered_nodes[node.name].on_rightclick then
return minetest.registered_nodes[node.name].on_rightclick(pointed_thing.under, node, placer, itemstack) or itemstack
end
end
return minetest.item_place(itemstack, placer, pointed_thing, minetest.dir_to_facedir(vector.direction(pointed_thing.above, pointed_thing.under)))
end,
on_place = mcl_util.rotate_axis,
}
minetest.register_node("mcl_bamboo:bamboo_block", bamboo_block_def)

View File

@ -57,7 +57,9 @@ function mcl_bows.shoot_arrow(arrow_item, pos, dir, yaw, shooter, power, damage,
damage = damage + (enchantments.power + 1) / 4
end
if enchantments.punch then
knockback = enchantments.punch * 21
knockback = enchantments.punch * 24
else
knockback = 4.875
end
if enchantments.flame then
mcl_burning.set_on_fire(obj, math.huge)

View File

@ -48,7 +48,7 @@ function mcl_bows_s.shoot_arrow_crossbow(arrow_item, pos, dir, yaw, shooter, pow
if damage == nil then
damage = 3
end
local knockback
local knockback = 4.875
if crossbow_stack then
local enchantments = mcl_enchanting.get_enchantments(crossbow_stack)
if enchantments.piercing then

View File

@ -0,0 +1,5 @@
local modname = minetest.get_current_modname()
local modpath = minetest.get_modpath(modname)
dofile(modpath.."/nodes.lua")
dofile(modpath.."/recipes.lua")

View File

@ -0,0 +1,5 @@
name = mcl_compressed_blocks
depends = mcl_core
description = adds compressed blocks to mineclone2

View File

@ -0,0 +1,121 @@
--Compressed Cobblestone
minetest.register_node("mcl_compressed_blocks:compressed_cobblestone", {
description = "Compressed Cobblestone",
_doc_items_longdesc = ("Compressed Cobblestone is a decorative block made from 9 Cobblestone. It is useful for saving space in your inventories."),
_doc_items_hidden = false,
tiles = {"mcl_compressed_blocks_compressed_cobblestone.png"},
is_ground_content = true,
stack_max = 64,
groups = {pickaxey=1, stone=1, building_block=1},
sounds = mcl_sounds.node_sound_stone_defaults(),
_mcl_blast_resistance = 11,
_mcl_hardness = 3,
})
--Double Compressed Cobble
minetest.register_node("mcl_compressed_blocks:double_compressed_cobblestone", {
description = "Double Compressed Cobblestone",
_doc_items_longdesc = ("Double Compressed Cobblestone is a decorative block made from 9 Compressed Cobblestone. It is useful for saving space in your inventories."),
_doc_items_hidden = false,
tiles = {"mcl_compressed_blocks_double_compressed_cobblestone.png"},
is_ground_content = true,
stack_max = 64,
groups = {pickaxey=1, stone=1, building_block=1},
sounds = mcl_sounds.node_sound_stone_defaults(),
_mcl_blast_resistance = 19,
_mcl_hardness = 4,
})
--Triple Compressed Cobble
minetest.register_node("mcl_compressed_blocks:triple_compressed_cobblestone", {
description = "Triple Compressed Cobblestone",
_doc_items_longdesc = ("Triple Compressed Cobblestone is a decorative block made from 9 Double Compressed Cobblestone. It is useful for saving space in your inventories."),
_doc_items_hidden = false,
tiles = {"mcl_compressed_blocks_triple_compressed_cobblestone.png"},
is_ground_content = true,
stack_max = 64,
groups = {pickaxey=1, stone=1, building_block=1},
sounds = mcl_sounds.node_sound_stone_defaults(),
_mcl_blast_resistance = 33,
_mcl_hardness = 5,
})
--Quadruple Compressed Cobble
minetest.register_node("mcl_compressed_blocks:quadruple_compressed_cobblestone", {
description = "Quadruple Compressed Cobblestone",
_doc_items_longdesc = ("Quadruple Compressed Cobblestone is a decorative block made from 9 Triple Compressed Cobblestone. It is useful for saving space in your inventories."),
_doc_items_hidden = false,
tiles = {"mcl_compressed_blocks_quadruple_compressed_cobblestone.png"},
is_ground_content = true,
stack_max = 64,
groups = {pickaxey=1, stone=1, building_block=1},
sounds = mcl_sounds.node_sound_stone_defaults(),
_mcl_blast_resistance = 58,
_mcl_hardness = 7,
})
--Quintuple Compressed Cobble
minetest.register_node("mcl_compressed_blocks:quintuple_compressed_cobblestone", {
description = "Quintuple Compressed Cobblestone",
_doc_items_longdesc = ("Quintuple Compressed Cobblestone is a decorative block made from 9 Quadruple Compressed Cobblestone. It is useful for saving space in your inventories."),
_doc_items_hidden = false,
tiles = {"mcl_compressed_blocks_quintuple_compressed_cobblestone.png"},
is_ground_content = true,
stack_max = 64,
groups = {pickaxey=1, stone=1, building_block=1},
sounds = mcl_sounds.node_sound_stone_defaults(),
_mcl_blast_resistance = 102,
_mcl_hardness = 9,
})
--Sextuple Compressed Cobble
minetest.register_node("mcl_compressed_blocks:sextuple_compressed_cobblestone", {
description = "Sextuple Compressed Cobblestone",
_doc_items_longdesc = ("Sextuple Compressed Cobblestone is a decorative block made from 9 Quintuple Compressed Cobblestone. It is useful for saving space in your inventories."),
_doc_items_hidden = false,
tiles = {"mcl_compressed_blocks_sextuple_compressed_cobblestone.png"},
is_ground_content = true,
stack_max = 64,
groups = {pickaxey=1, stone=1, building_block=1},
sounds = mcl_sounds.node_sound_stone_defaults(),
_mcl_blast_resistance = 179,
_mcl_hardness = 12,
})
--Septuple Compressed Cobble
minetest.register_node("mcl_compressed_blocks:septuple_compressed_cobblestone", {
description = "Septuple Compressed Cobblestone",
_doc_items_longdesc = ("Septuple Compressed Cobblestone is a decorative block made from 9 Sextuple Compressed Cobblestone. It is useful for saving space in your inventories."),
_doc_items_hidden = false,
tiles = {"mcl_compressed_blocks_septuple_compressed_cobblestone.png"},
is_ground_content = true,
stack_max = 64,
groups = {pickaxey=1, stone=1, building_block=1},
sounds = mcl_sounds.node_sound_stone_defaults(),
_mcl_blast_resistance = 313,
_mcl_hardness = 16,
})
--Ocutple Compressed Cobble
minetest.register_node("mcl_compressed_blocks:octuple_compressed_cobblestone", {
description = "Octuple Compressed Cobblestone",
_doc_items_longdesc = ("Octuple Compressed Cobblestone is a decorative block made from 9 Septuple Compressed Cobblestone. It is useful for saving space in your inventories."),
_doc_items_hidden = false,
tiles = {"mcl_compressed_blocks_octuple_compressed_cobblestone.png"},
is_ground_content = true,
stack_max = 64,
groups = {pickaxey=1, stone=1, building_block=1},
drop = {
max_items = 2,
items = {
{items = {"mcl_core:diamond 9"}},
{items = {"mcl_nether:netherite_scrap 18"}},
},
},
sounds = mcl_sounds.node_sound_stone_defaults(),
_mcl_blast_resistance = 548,
_mcl_hardness = 21,
_mcl_silk_touch_drop = true,
})

View File

@ -0,0 +1,127 @@
minetest.register_craft({
output = "mcl_compressed_blocks:compressed_cobblestone",
recipe = {
{ "mcl_core:cobble", "mcl_core:cobble", "mcl_core:cobble" },
{ "mcl_core:cobble", "mcl_core:cobble", "mcl_core:cobble" },
{ "mcl_core:cobble", "mcl_core:cobble", "mcl_core:cobble" },
},
})
minetest.register_craft({
output = "mcl_core:cobble 9",
recipe = {
{ "mcl_compressed_blocks:compressed_cobblestone" },
},
})
minetest.register_craft({
output = "mcl_compressed_blocks:double_compressed_cobblestone",
recipe = {
{ "mcl_compressed_blocks:compressed_cobblestone", "mcl_compressed_blocks:compressed_cobblestone", "mcl_compressed_blocks:compressed_cobblestone" },
{ "mcl_compressed_blocks:compressed_cobblestone", "mcl_compressed_blocks:compressed_cobblestone", "mcl_compressed_blocks:compressed_cobblestone" },
{ "mcl_compressed_blocks:compressed_cobblestone", "mcl_compressed_blocks:compressed_cobblestone", "mcl_compressed_blocks:compressed_cobblestone" },
},
})
minetest.register_craft({
output = "mcl_compressed_blocks:compressed_cobblestone 9",
recipe = {
{ "mcl_compressed_blocks:double_compressed_cobblestone" },
},
})
minetest.register_craft({
output = "mcl_compressed_blocks:triple_compressed_cobblestone",
recipe = {
{ "mcl_compressed_blocks:double_compressed_cobblestone", "mcl_compressed_blocks:double_compressed_cobblestone", "mcl_compressed_blocks:double_compressed_cobblestone" },
{ "mcl_compressed_blocks:double_compressed_cobblestone", "mcl_compressed_blocks:double_compressed_cobblestone", "mcl_compressed_blocks:double_compressed_cobblestone" },
{ "mcl_compressed_blocks:double_compressed_cobblestone", "mcl_compressed_blocks:double_compressed_cobblestone", "mcl_compressed_blocks:double_compressed_cobblestone" },
},
})
minetest.register_craft({
output = "mcl_compressed_blocks:double_compressed_cobblestone 9",
recipe = {
{ "mcl_compressed_blocks:triple_compressed_cobblestone" },
},
})
minetest.register_craft({
output = "mcl_compressed_blocks:quadruple_compressed_cobblestone",
recipe = {
{ "mcl_compressed_blocks:triple_compressed_cobblestone", "mcl_compressed_blocks:triple_compressed_cobblestone", "mcl_compressed_blocks:triple_compressed_cobblestone" },
{ "mcl_compressed_blocks:triple_compressed_cobblestone", "mcl_compressed_blocks:triple_compressed_cobblestone", "mcl_compressed_blocks:triple_compressed_cobblestone" },
{ "mcl_compressed_blocks:triple_compressed_cobblestone", "mcl_compressed_blocks:triple_compressed_cobblestone", "mcl_compressed_blocks:triple_compressed_cobblestone" },
},
})
minetest.register_craft({
output = "mcl_compressed_blocks:triple_compressed_cobblestone 9",
recipe = {
{ "mcl_compressed_blocks:quadruple_compressed_cobblestone" },
},
})
minetest.register_craft({
output = "mcl_compressed_blocks:quintuple_compressed_cobblestone",
recipe = {
{ "mcl_compressed_blocks:quadruple_compressed_cobblestone", "mcl_compressed_blocks:quadruple_compressed_cobblestone", "mcl_compressed_blocks:quadruple_compressed_cobblestone" },
{ "mcl_compressed_blocks:quadruple_compressed_cobblestone", "mcl_compressed_blocks:quadruple_compressed_cobblestone", "mcl_compressed_blocks:quadruple_compressed_cobblestone" },
{ "mcl_compressed_blocks:quadruple_compressed_cobblestone", "mcl_compressed_blocks:quadruple_compressed_cobblestone", "mcl_compressed_blocks:quadruple_compressed_cobblestone" },
},
})
minetest.register_craft({
output = "mcl_compressed_blocks:quadruple_compressed_cobblestone 9",
recipe = {
{ "mcl_compressed_blocks:quintuple_compressed_cobblestone" },
},
})
minetest.register_craft({
output = "mcl_compressed_blocks:sextuple_compressed_cobblestone",
recipe = {
{ "mcl_compressed_blocks:quintuple_compressed_cobblestone", "mcl_compressed_blocks:quintuple_compressed_cobblestone", "mcl_compressed_blocks:quintuple_compressed_cobblestone" },
{ "mcl_compressed_blocks:quintuple_compressed_cobblestone", "mcl_compressed_blocks:quintuple_compressed_cobblestone", "mcl_compressed_blocks:quintuple_compressed_cobblestone" },
{ "mcl_compressed_blocks:quintuple_compressed_cobblestone", "mcl_compressed_blocks:quintuple_compressed_cobblestone", "mcl_compressed_blocks:quintuple_compressed_cobblestone" },
},
})
minetest.register_craft({
output = "mcl_compressed_blocks:quintuple_compressed_cobblestone 9",
recipe = {
{ "mcl_compressed_blocks:sextuple_compressed_cobblestone" },
},
})
minetest.register_craft({
output = "mcl_compressed_blocks:septuple_compressed_cobblestone",
recipe = {
{ "mcl_compressed_blocks:sextuple_compressed_cobblestone", "mcl_compressed_blocks:sextuple_compressed_cobblestone", "mcl_compressed_blocks:sextuple_compressed_cobblestone" },
{ "mcl_compressed_blocks:sextuple_compressed_cobblestone", "mcl_compressed_blocks:sextuple_compressed_cobblestone", "mcl_compressed_blocks:sextuple_compressed_cobblestone" },
{ "mcl_compressed_blocks:sextuple_compressed_cobblestone", "mcl_compressed_blocks:sextuple_compressed_cobblestone", "mcl_compressed_blocks:sextuple_compressed_cobblestone" },
},
})
minetest.register_craft({
output = "mcl_compressed_blocks:sextuple_compressed_cobblestone 9",
recipe = {
{ "mcl_compressed_blocks:septuple_compressed_cobblestone" },
},
})
minetest.register_craft({
output = "mcl_compressed_blocks:octuple_compressed_cobblestone",
recipe = {
{ "mcl_compressed_blocks:septuple_compressed_cobblestone", "mcl_compressed_blocks:septuple_compressed_cobblestone", "mcl_compressed_blocks:septuple_compressed_cobblestone" },
{ "mcl_compressed_blocks:septuple_compressed_cobblestone", "mcl_compressed_blocks:septuple_compressed_cobblestone", "mcl_compressed_blocks:septuple_compressed_cobblestone" },
{ "mcl_compressed_blocks:septuple_compressed_cobblestone", "mcl_compressed_blocks:septuple_compressed_cobblestone", "mcl_compressed_blocks:septuple_compressed_cobblestone" },
},
})
minetest.register_craft({
output = "mcl_compressed_blocks:septuple_compressed_cobblestone 9",
recipe = {
{ "mcl_compressed_blocks:octuple_compressed_cobblestone" },
},
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 217 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 173 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 296 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 B

View File

@ -663,6 +663,22 @@ mcl_dye.register_on_bone_meal_apply(function(pt,user)
end
end)
minetest.register_abm({
label = "Turn Crimson Nylium and Warped Nylium below solid block into Netherrack",
nodenames = {"mcl_crimson:crimson_nylium","mcl_crimson:warped_nylium"},
neighbors = {"group:solid"},
interval = 8,
chance = 50,
action = function(pos, node)
local above = {x = pos.x, y = pos.y + 1, z = pos.z}
local name = minetest.get_node(above).name
local nodedef = minetest.registered_nodes[name]
if name ~= "ignore" and nodedef and (nodedef.groups and nodedef.groups.solid) then
minetest.set_node(pos, {name = "mcl_nether:netherrack"})
end
end
})
mcl_doors:register_door("mcl_crimson:crimson_door", {
description = S("Crimson Door"),
_doc_items_longdesc = S("Wooden doors are 2-block high barriers which can be opened or closed by hand and by a redstone signal."),
@ -808,4 +824,4 @@ minetest.register_craft({
}
})
dofile(modpath.."/alias.lua")
dofile(modpath.."/alias.lua")

View File

@ -1,5 +1,5 @@
# textdomain: mcl_dye
White Dye=Biały farba
White Dye=Biała farba
Light Grey Dye=Jasnoszara farba
Grey Dye=Szara farba
Black Dye=Czarny farba

View File

@ -133,7 +133,11 @@ minetest.register_on_punchplayer(function(player, hitter, time_from_last_punch,
if wielditem then
local fire_aspect_level = mcl_enchanting.get_enchantment(wielditem, "fire_aspect")
if fire_aspect_level > 0 then
mcl_burning.set_on_fire(player, fire_aspect_level * 4)
local player_pos = player:get_pos()
local hitter_pos = hitter:get_pos()
if vector.distance(hitter_pos, player_pos) <= 3 then
mcl_burning.set_on_fire(player, fire_aspect_level * 4)
end
end
end
end
@ -276,15 +280,65 @@ function minetest.calculate_knockback(player, hitter, time_from_last_punch, tool
if hitter then
luaentity = hitter:get_luaentity()
end
if hitter and hitter:is_player() then
if hitter and hitter:is_player() and distance <= 3 then
local wielditem = hitter:get_wielded_item()
knockback = knockback + 5 * mcl_enchanting.get_enchantment(wielditem, "knockback")
--knockback = knockback + 3 * mcl_enchanting.get_enchantment(wielditem, "knockback")
local enchant = mcl_enchanting.get_enchantment(wielditem, "knockback")
knockback = knockback + 3.22 * enchant
-- add vertical lift to knockback
local v = player:get_velocity()
local added_v = 0
local invul = player:get_meta():get_int("mcl_damage:invulnerable")
if v and v.y <= 0.01 and v.y >= -0.01 and invul == 0 then
local regular_v = 6.4
local enchant_v = 7
regular_v = regular_v * math.abs(dir.y - 1)
enchant_v = enchant_v * math.abs(dir.y - 1)
if enchant == 0 then
player:add_velocity({x = 0, y = regular_v, z = 0})
added_v = regular_v
else
player:add_velocity({x = 0, y = enchant_v, z = 0})
added_v = enchant_v
end
-- add minimum knockback
if knockback <= 1.5 then
knockback = knockback + 4.875
elseif knockback <= 6.19 then
knockback = knockback + 0.609375
end
end
-- counteract forward velocity when hit
local self_dir_dot = (v.x * dir.x) + (v.z * dir.z)
if self_dir_dot < 0 then
player:add_velocity({x = v.x * -1, y = 0, z = v.z * -1})
end
-- add player velocity to knockback
local h_name = hitter:get_player_name()
local hv = hitter:get_velocity()
local dir_dot = (hv.x * dir.x) + (hv.z * dir.z)
if dir_dot > 0 then
knockback = knockback + dir_dot * 2
local hitter_mag = math.sqrt((hv.x * hv.x) + (hv.z * hv.z))
if dir_dot > 0 and mcl_sprint.is_sprinting(h_name) then
knockback = knockback + hitter_mag * 0.6875
elseif dir_dot > 0 then
knockback = knockback + hitter_mag * 0.515625
end
-- reduce floatiness
minetest.after(0.25, function()
player:add_velocity({x = 0, y = (v.y + added_v) * -0.375, z = 0})
end)
-- reduce knockback when moving towards hitter while attacking
local self_dir_dot = (v.x * dir.x) + (v.z * dir.z)
local control = player:get_player_control()
if self_dir_dot < -4.3 and control.up and control.LMB then
knockback = knockback * 0.6
end
-- remove knockback if invulnerable
if invul > 0 then
knockback = 0
end
elseif hitter and hitter:is_player() and distance > 3 then
knockback = 0
elseif luaentity and luaentity._knockback then
local kb = knockback + luaentity._knockback / 4
local punch_dir = dir

View File

@ -59,16 +59,18 @@ minetest.register_node("mcl_end:purpur_pillar", {
_mcl_hardness = 1.5,
})
minetest.register_node("mcl_end:end_rod", {
local end_rod_name = "mcl_end:end_rod"
local end_rod_side_tex = "mcl_end_end_rod_side.png"
local end_rod_def = {
description = S("End Rod"),
_doc_items_longdesc = S("End rods are decorative light sources."),
tiles = {
"mcl_end_end_rod_top.png",
"mcl_end_end_rod_bottom.png",
"mcl_end_end_rod_side.png",
"mcl_end_end_rod_side.png",
"mcl_end_end_rod_side.png",
"mcl_end_end_rod_side.png",
end_rod_side_tex,
end_rod_side_tex,
end_rod_side_tex,
end_rod_side_tex,
},
drawtype = "nodebox",
is_ground_content = false,
@ -76,7 +78,7 @@ minetest.register_node("mcl_end:end_rod", {
paramtype2 = "facedir",
light_source = minetest.LIGHT_MAX,
sunlight_propagates = true,
groups = { dig_immediate=3, deco_block=1, destroy_by_lava_flow=1, },
groups = { dig_immediate=3, deco_block=1, destroy_by_lava_flow=1, end_rod=1 },
node_box = {
type = "fixed",
fixed = {
@ -132,7 +134,58 @@ minetest.register_node("mcl_end:end_rod", {
sounds = mcl_sounds.node_sound_glass_defaults(),
_mcl_blast_resistance = 0,
})
}
minetest.register_node(end_rod_name, end_rod_def)
-- register colored end_rods
local colored_end_rods = {
{"white", S("White End Rod"), "white"},
{"grey", S("Grey End Rod"), "dark_grey"},
{"silver", S("Light Grey End Rod"), "grey"},
{"black", S("Black End Rod"), "black"},
{"red", S("Red End Rod"), "red"},
{"yellow", S("Yellow End Rod"), "yellow"},
{"green", S("Green End Rod"), "dark_green"},
{"cyan", S("Cyan End Rod"), "cyan"},
{"blue", S("Blue End Rod"), "blue"},
{"magenta", S("Magenta End Rod"), "magenta"},
{"orange", S("Orange End Rod"), "orange"},
{"purple", S("Purple End Rod"), "violet"},
{"brown", S("Brown End Rod"), "brown"},
{"pink", S("Pink End Rod"), "pink"},
{"lime", S("Lime End Rod"), "green"},
{"lightblue", S("Light Blue End Rod"), "lightblue"},
}
local top_mask = "^[mask:mobs_mc_empty.png\\^[fill\\:2x2\\:7,7\\:white"
local side_mask = "^[mask:mobs_mc_empty.png\\^[fill\\:16x15\\:0,0\\:white"
for num, row in ipairs(colored_end_rods) do
local name = row[1]
local desc = row[2]
local dye = row[3]
local def = table.copy(end_rod_def)
def.description = desc
def._doc_items_longdesc = nil
def._doc_items_create_entry = false
local side_tex
if name == "pink" then
def.tiles[1] = def.tiles[1] .. "^(" .. def.tiles[1] .. top_mask .. "^[multiply:" .. name .. "^[hsl:0:300)"
side_tex = end_rod_side_tex .. "^(" .. end_rod_side_tex .. side_mask .. "^[multiply:" .. name .. "^[hsl:0:300)"
elseif num > 4 then
def.tiles[1] = def.tiles[1] .. "^(" .. def.tiles[1] .. top_mask .. "^[multiply:" .. name .. "^[hsl:0:300^[opacity:120)"
side_tex = end_rod_side_tex .. "^(" .. end_rod_side_tex .. side_mask .. "^[multiply:" .. name .. "^[hsl:0:300^[opacity:120)"
else
def.tiles[1] = def.tiles[1] .. "^(" .. def.tiles[1] .. top_mask .. "^[multiply:" .. name .. "^[hsl:0:-100^[opacity:170)"
side_tex = end_rod_side_tex .. "^(" .. end_rod_side_tex .. side_mask .. "^[multiply:" .. name .. "^[hsl:0:-100^[opacity:170)"
end
for i=3, 6 do def.tiles[i] = side_tex end
minetest.register_node(end_rod_name.."_"..name, def)
minetest.register_craft({
type = "shapeless",
output = end_rod_name.."_"..name,
recipe = {"group:end_rod", "mcl_dye:"..dye}
})
end
minetest.register_node("mcl_end:dragon_egg", {
description = S("Dragon Egg"),

View File

@ -5,6 +5,22 @@ Purpur Block=Purpurblock
Purpur Pillar=Purpursäule
End Rod=Endstab
End rods are decorative light sources.=Endstäbe sind dekorative Lichtquellen.
White End Rod=Weißer Endstab
Grey End Rod=Grauer Endstab
Light Grey End Rod=Hellgrauer Endstab
Black End Rod=Schwarzer Endstab
Red End Rod=Roter Endstab
Yellow End Rod=Gelber Endstab
Green End Rod=Grüner Endstab
Cyan End Rod=Türkiser Endstab
Blue End Rod=Blauer Endstab
Magenta End Rod=Magenta Endstab
Orange End Rod=Orange Endstab
Purple End Rod=Violetter Endstab
Brown End Rod=Brauner Endstab
Pink End Rod=Rosa Endstab
Lime End Rod=Lindgrüner Endstab
Light Blue End Rod=Hellblauer Endstab
Dragon Egg=Drachenei
A dragon egg is a decorative item which can be placed.=Ein Drahenei ist ein dekorativer, platzierbarer Gegenstand.
Chorus Flower=Chorusblume

View File

@ -5,6 +5,22 @@ Purpur Block=Blok purpury
Purpur Pillar=Filar purpury
End Rod=Różdżka Kresu
End rods are decorative light sources.=Różdżki Kresu są dekoracyjnymi źródłami światła.
White End Rod=Biała Różdżka Kresu
Grey End Rod=Szara Różdżka Kresu
Light Grey End Rod=Jasnoszara Różdżka Kresu
Black End Rod=Czarna Różdżka Kresu
Red End Rod=Czerwona Różdżka Kresu
Yellow End Rod=Żółta Różdżka Kresu
Green End Rod=Zielona Różdżka Kresu
Cyan End Rod=Błękitna Różdżka Kresu
Blue End Rod=Niebieska Różdżka Kresu
Magenta End Rod=Karmazynowa Różdżka Kresu
Orange End Rod=Pomarańczowa Różdżka Kresu
Purple End Rod=Fioletowa Różdżka Kresu
Brown End Rod=Brązowa Różdżka Kresu
Pink End Rod=Różowa Różdżka Kresu
Lime End Rod=Jasnozielona Różdżka Kresu
Light Blue End Rod=Jasnoniebieska Różdżka Kresu
Dragon Egg=Jajo smoka
A dragon egg is a decorative item which can be placed.=Jajo smoka jest przedmiotem dekoracyjnym, który można postawić.
Chorus Flower=Kwiat refrenusu

View File

@ -5,6 +5,22 @@ Purpur Block=
Purpur Pillar=
End Rod=
End rods are decorative light sources.=
White End Rod=
Grey End Rod=
Light Grey End Rod=
Black End Rod=
Red End Rod=
Yellow End Rod=
Green End Rod=
Cyan End Rod=
Blue End Rod=
Magenta End Rod=
Orange End Rod=
Purple End Rod=
Brown End Rod=
Pink End Rod=
Lime End Rod=
Light Blue End Rod=
Dragon Egg=
A dragon egg is a decorative item which can be placed.=
Chorus Flower=

View File

@ -101,5 +101,5 @@ Turns block into farmland=Transforme un bloc en terres agricoles
Surface for crops=Surface pour les cultures
Can become wet=Peut devenir humide
Uses: @1=Utilisations : @1
Sweet Berry Bush (Stage @1)=Buisson de baies sucrées (étape 1)
Sweet Berry Bush (Stage @1)=Buisson de baies sucrées (étape @1)
Sweet Berry=Baie sucrée

View File

@ -38,7 +38,7 @@ local stem_drop = {
{ items = {"mcl_farming:pumpkin_seeds 2"}, rarity = 31 },
-- 3 seeds: 1/125 chance
{ items = {"mcl_farming:pumkin_seeds 3"}, rarity = 125 },
{ items = {"mcl_farming:pumpkin_seeds 3"}, rarity = 125 },
},
}

View File

@ -112,16 +112,18 @@ end
function mcl_shields.is_blocking(obj)
if not obj:is_player() then return end
local blocking = mcl_shields.players[obj].blocking
if blocking <= 0 then
return
end
if mcl_shields.players[obj] then
local blocking = mcl_shields.players[obj].blocking
if blocking <= 0 then
return
end
local shieldstack = obj:get_wielded_item()
if blocking == 1 then
shieldstack = obj:get_inventory():get_stack("offhand", 1)
local shieldstack = obj:get_wielded_item()
if blocking == 1 then
shieldstack = obj:get_inventory():get_stack("offhand", 1)
end
return blocking, shieldstack
end
return blocking, shieldstack
end
mcl_damage.register_modifier(function(obj, damage, reason)

View File

@ -0,0 +1,4 @@
# textdomain: mcl_stonecutter
Stone Cutter=Steinsäge
Used to cut stone like materials.=Wird zum Schneiden von steinähnlichen Materialien verwendet.
Stonecutters are used to create stairs and slabs from stone like materials. It is also the jobsite for the Stone Mason Villager.=Steinsägen stellen Treppen und Platten aus steinähnlichen Materialien her. Diese sind auch der Arbeitsplatz für den Steinmetz-Dorfbewohner.

View File

@ -228,6 +228,14 @@ minetest.register_globalstep(function(dtime)
-- Apply animations based on what the player is doing
if player:get_hp() == 0 then
player_set_animation(player, "die")
elseif player:get_meta():get_int("mcl_damage:damage_animation") > 0 then
player_set_animation(player, "walk", animation_speed_mod)
local name = player:get_player_name()
minetest.after(0.5, function()
local player = minetest.get_player_by_name(name)
if not player then return end
player:get_meta():set_int("mcl_damage:damage_animation", 0)
end)
elseif mcl_playerplus.elytra[player] and mcl_playerplus.elytra[player].active then
player_set_animation(player, "stand")
elseif walking and velocity.x > 0.35

View File

@ -663,6 +663,8 @@ minetest.register_on_joinplayer(function(player)
lastPos = nil,
swimDistance = 0,
jump_cooldown = -1, -- Cooldown timer for jumping, we need this to prevent the jump exhaustion to increase rapidly
last_damage = 0,
invul_timestamp = 0,
}
mcl_playerplus.elytra[player] = {active = false, rocketing = 0, speed = 0}
@ -727,19 +729,43 @@ mcl_damage.register_modifier(function(obj, damage, reason)
end
end, -200)
-- damage invulnerability
mcl_damage.register_modifier(function(obj, damage, reason)
local invul = obj:get_meta():get_int("mcl_damage:invulnerable")
if invul > 0 then
return 0
else
obj:get_meta():set_int("mcl_damage:invulnerable", 1)
minetest.after(0.5, function()
obj:get_meta():set_int("mcl_damage:invulnerable", 0)
end)
return damage
minetest.register_on_punchplayer(function(player, hitter, time_from_last_punch, tool_capabilities, dir, damage)
-- attack reach limit
if hitter and hitter:is_player() then
local player_pos = player:get_pos()
local hitter_pos = hitter:get_pos()
if vector.distance(player_pos, hitter_pos) > 3 then
damage = 0
return damage
end
end
end, -1000)
-- damage invulnerability
if hitter then
local name = player:get_player_name()
local time_now = minetest.get_us_time()
local invul_timestamp = mcl_playerplus_internal[name].invul_timestamp
local time_diff = time_now - invul_timestamp
-- check for invulnerability time in microseconds (0.5 second)
if time_diff <= 500000 and time_diff >= 0 then
player:get_meta():set_int("mcl_damage:invulnerable", 1)
minetest.after(0.5, function()
player:get_meta():set_int("mcl_damage:invulnerable", 0)
end)
damage = damage - mcl_playerplus_internal[name].last_damage
if damage < 0 then
damage = 0
end
return damage
else
mcl_playerplus_internal[name].last_damage = damage
mcl_playerplus_internal[name].invul_timestamp = time_now
player:get_meta():set_int("mcl_damage:damage_animation", 1)
minetest.after(0.5, function()
player:get_meta():set_int("mcl_damage:damage_animation", 0)
end)
end
end
end)
minetest.register_on_respawnplayer(function(player)
local pos = player:get_pos()

View File

@ -37,3 +37,14 @@ The setting disabling deepslate generation now works properly thanks to Zasco.
### Crash fixes
* Villager trading UI crash by JoseDouglas26
* Piston related crash by cora
## 0.86.1 hotfix
* Implemented a fix to a graphical glitch regression introduced in release 0.86, which had been fixed but wasn't loaded into the tag.
* Added a workaround to enable mobile players to use bows, crossbows and spyglasses by using zoom key (they can't *hold* `place`).
(both fixes by Herowl)
## 0.86.2 hotfix
* Implemented refactorization of player-related combat code by Eliy21. This fixes a critical bug which can cause players to become invulnerable indefinitely.
* Optimized some textures for size.
* Fixed XP orbs breaking randomly (by Herowl).
* Fixed a cryptic error message (by Herowl).

View File

@ -98,6 +98,9 @@ mcl_creative_dig_speed (Creative mode dig speed) float 0.2
# If enabled the hunger mechanic will be active
mcl_enable_hunger (Hunger mechanic) bool true
# Enables hunger debug
mcl_hunger_debug (Hunger debug) bool false
# Health regeneration delay when hunger bar is full
# Default: 0.5 s
mcl_health_regen_delay (Health regen delay) float 0.5 0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 93 KiB

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.0 KiB

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 KiB

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 60 KiB

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 413 B

After

Width:  |  Height:  |  Size: 250 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 489 B

After

Width:  |  Height:  |  Size: 306 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 120 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 244 B

After

Width:  |  Height:  |  Size: 208 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 279 B

After

Width:  |  Height:  |  Size: 277 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 302 B

After

Width:  |  Height:  |  Size: 268 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 617 B

After

Width:  |  Height:  |  Size: 539 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 529 B

After

Width:  |  Height:  |  Size: 451 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 238 B

After

Width:  |  Height:  |  Size: 235 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 310 B

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 390 B

After

Width:  |  Height:  |  Size: 316 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 321 B

After

Width:  |  Height:  |  Size: 277 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 232 B