788 Commits

Author SHA1 Message Date
Elias Åström
6107bafa10 Run update-tr.sh 2024-12-26 23:02:18 +01:00
ryvnf
81eca3f4e6 Import translations from weblate
Co-authored-by: Zozosticot <zozosticot@users.noreply.translate.codeberg.org>
Co-authored-by: Dirk <dirk@users.noreply.translate.codeberg.org>
Co-authored-by: Just Playing <jplay2@users.noreply.translate.codeberg.org>
2024-12-26 22:00:34 +00:00
JoseDouglas26
09ee1052b0
Adopting rarity group for items part 2 2024-12-19 17:44:48 +01:00
Elias Åström
5af3e555ee Run update-tr.sh 2024-12-18 18:45:14 +01:00
ryvnf
9d05fef0d2 Add translations from weblate
Co-authored-by: Zozosticot <Zozosticot@users.noreply.translate.codeberg.org>
Co-authored-by: bright <bright@users.noreply.translate.codeberg.org>
Co-authored-by: Dirk <Dirk@users.noreply.translate.codeberg.org>
2024-12-18 17:42:57 +00:00
Elias Åström
64388c1155 update-tr.sh 2024-12-14 16:02:04 +01:00
ryvnf
93544b6c99 Import translations from weblate
Co-authored-by: bright <bright@users.noreply.translate.codeberg.org>
Co-authored-by: Zozosticot <Zozosticot@users.noreply.translate.codeberg.org>
2024-12-14 14:59:21 +00:00
Elias Åström
8c15a076f1 Fix redstone block missing from creative inv 2024-12-12 15:59:31 +00:00
cora
557901a4a9 Move offhand items normally if offhand is already occupied 2024-12-09 14:07:46 +00:00
Elias Åström
a101525a37 Update credits 2024-11-30 23:50:51 +01:00
Elias Åström
46a0150c2d Fix zh_hant/zh_TW translation files
zh_hant is moved to zh_TW if it has more translations or zh_TW does not
exist. All other zh_hant files are deleted.
2024-11-21 20:51:31 +01:00
Jürgen Rühle
44dadaf59c Merge textdomain hbarmor into mcl_hbarmor
Also delete zh_Hant.
2024-11-21 08:56:59 +01:00
Elias Åström
b329f86184 Fix items not showing up in redstone inv category 2024-11-20 02:31:45 +00:00
Elias Åström
6054726dcb Rewrite redstone 2024-11-20 02:31:45 +00:00
Elias Åström
dbabb00f02 Run new update-tr.sh script 2024-11-18 21:52:22 +01:00
Elias Åström
cd67af73ee Revert "update-tr.sh"
This reverts commit a026bf3eae033657cb866257b60b5e0e57e1d5a0.
2024-11-18 21:44:42 +01:00
Elias Åström
a026bf3eae update-tr.sh 2024-11-18 18:51:49 +01:00
ryvnf
3b9bb8445e Add translations from weblate
Co-authored-by: Oldcoinmania <Oldcoinmania@users.noreply.translate.codeberg.org>
Co-authored-by: XP_42319 <XP_42319@users.noreply.translate.codeberg.org>
Co-authored-by: bramaudi <bramaudi@users.noreply.translate.codeberg.org>
Co-authored-by: metmj <metmj@users.noreply.translate.codeberg.org>
Co-authored-by: phileas <phileas@users.noreply.translate.codeberg.org>
Co-authored-by: Zozosticot <Zozosticot@users.noreply.translate.codeberg.org>
Co-authored-by: Miguel_PL <Miguel_PL@users.noreply.translate.codeberg.org>
Co-authored-by: wilker <wilker@users.noreply.translate.codeberg.org>
Co-authored-by: milklikecomputer <XOX@users.noreply.translate.codeberg.org>
2024-11-18 17:50:10 +00:00
nooneatall
e5ae6c6c80 Clarify trigger issues and note future changes. 2024-11-12 16:34:53 +02:00
nooneatall
f986bbe49a Added wax_on and wax_off achievement triggers. 2024-11-12 16:34:53 +02:00
Elias Åström
af506a6ea1 Update credits 2024-10-19 17:33:54 +02:00
Elias Åström
4556f70546 Update translations 2024-10-19 17:27:47 +02:00
ryvnf
60a1b1661e weblate (#2205)
Co-authored-by: Sotis <Sotis@users.noreply.translate.codeberg.org>
Co-authored-by: Sencyy <Sencyy@users.noreply.translate.codeberg.org>
Co-authored-by: fnetX <otto@codeberg.org>
Co-authored-by: Enlive <Enlive@users.noreply.translate.codeberg.org>
Co-authored-by: Cwpute <Cwpute@users.noreply.translate.codeberg.org>
Co-authored-by: 3raven <3raven@users.noreply.translate.codeberg.org>
Co-authored-by: Benny <Benny@users.noreply.translate.codeberg.org>
Co-authored-by: phileas <phileas@users.noreply.translate.codeberg.org>
Co-authored-by: liulitchi <liulitchi@users.noreply.translate.codeberg.org>
Reviewed-on: https://codeberg.org/mineclonia/mineclonia/pulls/2205
2024-10-19 15:25:58 +00:00
goblin_mode
dc5a63f89d add virtual item API documentation 2024-10-18 17:12:53 +00:00
goblin_mode
355c9c14af implement virtual item API 2024-10-18 17:12:53 +00:00
grorp
6e3ad4f405 Creative inventory: padding[-0.015,-0.015] on mobile
- less wasted screen space
- matches old layout
2024-10-01 17:26:59 +00:00
grorp
3c631c24fc Avoid tab buttons going off-screen with high scaling values 2024-10-01 17:26:59 +00:00
grorp
33209bdafc Creative inventory: Make the whole tab button clickable
Previously, only the tab icon was clickable. Clicking next to the icon would
just close the inventory.
The icon is still kept clickable too since that gives a nicer press animation.
I didn't end up using image_button because that resulted in a different image
size and position, even with the exact same coordinates.
2024-10-01 17:26:59 +00:00
Elias Åström
b9693ebfa5 Update credits 2024-09-21 19:05:08 +02:00
Elias Åström
a7c10019dc Update translations 2024-09-21 18:45:59 +02:00
ryvnf
7d1260f1a8 Update translations from weblate
Co-authored-by: liulitchi <liulitchi@users.noreply.translate.codeberg.org>
Co-authored-by: Gaemy <Gaemy@users.noreply.translate.codeberg.org>
Co-authored-by: phileas <phileas@users.noreply.translate.codeberg.org>
Reviewed-on: https://codeberg.org/mineclonia/mineclonia/pulls/2121
2024-09-21 16:32:04 +00:00
cora
274ab62902
Add missing dependency in mcl_info 2024-09-21 02:09:15 +02:00
cora
127de8e4d6 Move mcl_util.get_wielded_item to mcl_deathmessages 2024-09-14 18:41:19 +00:00
cora
bddb57ed12 Use mcl_util.connected_players iterator throughout codebase 2024-09-14 20:14:14 +02:00
cora
21782cbefb
Fix indentation in mcl_inventory/creative 2024-09-02 14:37:03 +02:00
Po Lu
a696701be0
Slowness, Golden Apple and brewing fixes
Re-enable modifying brewed potions and homogenize slowness
potion durations with Minecraft.

* mods/HELP/mcl_tt/snippets_mcl.lua: Make use of common metric
computation functions.

* mods/HUD/mcl_inventory/creative.lua (set_inv_search):
Guarantee that potion tooltips appear for unmodified potions
also.

* mods/ITEMS/mcl_brewing/init.lua (sort_stack): Permit placing
splash and lingering potions in item stands.

* mods/ITEMS/mcl_core/craftitems.lua (eat_gapple): Enchanted
apples should grant Resistance I, not V.

* mods/ITEMS/mcl_potions/functions.lua (duration_from_details):
Respect potent_factor if provided.

* mods/ITEMS/mcl_potions/init.lua: Update comment.

* mods/ITEMS/mcl_potions/potions.lua (generate_on_use): Use
common metric computation functions.
(register_potion): Accept a `potent_factor' that overrides
POTENT_FACTOR in the context of a single potion effect.  Return
"oral" potions to the `potion' group.
(slowness): Set potent_factor to 4.5, as in Minecraft.
2024-09-02 14:36:08 +02:00
Po Lu
0d37b177c0
Remove luck and further adapt to mcla and Minecraft
* mods/CORE/mcl_damage/API.md: Fix errors in description of
modifier prioritization.

* mods/ENTITIES/mcl_mobs/breeding.lua (feed_tame)
(check_breathing):

* mods/ENTITIES/mcl_mobs/mod.conf: Delete references to luck.

* mods/ENTITIES/mcl_mobs/physics.lua (reset_breath): New
function.

* mods/ENTITIES/mobs_mc/shulker.lua (hit_mob): Fix typo.

* mods/HELP/mcl_tt/snippets_mcl.lua: Remove references to
stackable effects, which don't exist in Minecraft.

* mods/HELP/tt/init.lua (apply_snippets): Delete unused local
variable.
(reload_itemstack_description): Filter original description
through `def._mcl_filter_description' if it exists.  Delete
special case for potions.

* mods/HUD/mcl_experience/bottle.lua (bottle, throw_xp_bottle):

* mods/HUD/mcl_experience/mod.conf: Delete references to luck.

* mods/HUD/mcl_inventory/creative.lua (set_inv_search):
Guarantee that potent and extended variants of potions appear in
search list.

* mods/HUD/mcl_inventory/mod.conf: Render tt a mandatory
dependency.

* mods/ITEMS/mcl_bows/bow.lua:

* mods/ITEMS/mcl_bows/crossbow.lua:

* mods/ITEMS/mcl_bows/mod.conf:

* mods/ITEMS/mcl_end/eye_of_ender.lua (ender_eye):

* mods/ITEMS/mcl_end/mod.conf (depends):

* mods/ITEMS/mcl_fishing/init.lua (mcl_fishing):

* mods/ITEMS/mcl_fishing/mod.conf (description): Delete
references to mcl_luck.

* mods/ITEMS/mcl_potions/API.md: Document on_reject.

* mods/ITEMS/mcl_potions/functions.lua (register_effect): Save
`on_reject' in registered definitions.
(absorption): Enable for mobs as well; implement on_reject to
set a lower bound on absorption health when an inferior effect
is discarded for a better one, but without affecting the
duration of the latter.
(fire_resistance, resistance): Enable for mobs.
(luck, bad_luck): Extricate from mcl_luck.
(level_from_details, duration_from_details): Extract some
copypasta here.
(give_effect): Call on_reject in the abovementioned scenario.
(_extinguish_nearby_fire): Rename to `_water_effect'.
Extinguish nearby burning entities and replenish breath counter
of axolotls.

* mods/ITEMS/mcl_potions/init.lua (water_splash): Delete
function.
(water): Call _water_effect on splash.

* mods/ITEMS/mcl_potions/lingering.lua (lingering_effect_at):
Rename to `lingering_effects_at'.
(potency_to_level): New function.
(add_lingering_effects): New function.  Record a list of active
effects at any position to enable applying multiple effects to
one position.
(def_to_effect_list, particle_texture): New function.
(register_globalstep): Enable overriding the total lifespan of
an area effect cloud.  Restore ability to extinguish nearby
fires and mobs, and adapt to the new area effect representation.
(register_lingering): Set _mcl_filter_description.  Correct
invocation of obsolete function and adapt to the foregoing
changes.

* mods/ITEMS/mcl_potions/potions.lua (generate_on_use)
(register_potion): Effects do not stack in Minecraft, so remove
them from Mineclonia also.  Register implementation of
_mcl_filter_description.
(filter_potion_description): New function.

* mods/ITEMS/mcl_potions/splash.lua (register_splash): Extract
some widely reused code into a common function, and register
implementation of _mcl_filter_description.

* mods/ITEMS/mcl_potions/tipped_arrow.lua (register_arrow):
Likewise.

* mods/ITEMS/mcl_totems/init.lua: Grant user Regeneration, Fire
Resistance and Absorption upon resurrection.

* mods/ITEMS/mcl_totems/mod.conf (depends): Depend on
mcl_potions.

* mods/PLAYER/mcl_criticals/init.lua:

* mods/PLAYER/mcl_criticals/mod.conf: Revert mcl_luck changes.
2024-09-02 14:36:08 +02:00
the-real-herowl
59ce6fcd84
Made some random rolls affected by mcl_luck
* xp bottle
* bow and crossbow crits
* megacrits added for mcl_bows, achievable only by (mcl_)luck
2024-09-02 14:36:06 +02:00
the-real-herowl
aaf4c0ce47
Potions registering API fully works with creative 2024-09-02 14:36:04 +02:00
the-real-herowl
d6015c30b8
Creative inventory using new potions API
-creative inventory utilizes the new potions API
-the new fancy tooltips are used there
2024-09-02 14:36:04 +02:00
Elias Åström
7ffe743910 Add kno10 to credits 2024-08-31 17:38:54 +02:00
Elias Åström
bf3c789a58 mod_translation_updater.py 2024-08-31 17:34:56 +02:00
Elias Åström
4afd4f85d0 mtt_convert.py --po2tr 2024-08-31 17:33:38 +02:00
ryvnf
0a4bc82130 Translations from weblate (#1987)
Co-authored-by: Gaemy <Gaemy@users.noreply.translate.codeberg.org>
Co-authored-by: hugoalh <hugoalh@users.noreply.translate.codeberg.org>
Co-authored-by: liulitchi <liulitchi@users.noreply.translate.codeberg.org>
2024-08-31 15:28:30 +00:00
Po Lu
4b96fd9b4b Record floating-point damage
* mods/CORE/mcl_damage/init.lua (damage_player, heal_player)
(get_hp): New functions.
(register_on_hpchange): Do not apply modifiers to damage
inflicted by damage_player and heal_player.  Otherwise, first
apply the difference to internal damage and compute the engine
hp difference from thence.
(register_on_punchplayer): Inflict punch damage by means of
damage_player.
(register_on_joinplayer): Synchronize player engine health with
internal health counter if nonexistent.
(register_on_dieplayer): Reset internal health counter.

* mods/CORE/mcl_util/init.lua (deal_damage): If dealing damage
to player, invoke mcl_damage.damage_player.
(get_hp): Return fractional health gauge if player.

* mods/ITEMS/mcl_totems/init.lua (register_modifier):

* mods/HUD/mcl_death_messages/init.lua (register_on_damage):
Derive whether damage is lethal from the fractional health gauge
rather than `obj:get_hp'.

* mods/ITEMS/mcl_armor/damage.lua (register_modifier): Do not
compute ceiling of modified damage; return the floating point
value as-is.

* mods/ITEMS/mcl_potions/functions.lua (healing_func)
(register_globalstep): Use heal_player rather than set_hp.

* mods/ITEMS/mcl_throwing/register.lua (pearl_tp):

* mods/MISC/mcl_commands/kill.lua (damage_player):

* mods/PLAYER/mcl_hunger/hunger.lua:

* mods/PLAYER/mcl_hunger/init.lua: As above.
2024-08-31 12:27:17 +00:00
goblin_mode
dcbec262d1 adjust tooltip offset 2024-08-30 15:57:43 +00:00
cora
f096dfb6a8 Add creative pick-block behavior when rightclicking blocks with empty hand 2024-08-27 12:14:56 +00:00
bramaudi
0cc0311d97 Add progress bar texture 2024-08-26 01:17:59 +00:00
Elias Åström
153f0b1d20 mtt_convert --tr2po 2024-08-17 19:15:07 +02:00
Elias Åström
ddb2ae173c mod_translation_updater.py 2024-08-17 18:59:09 +02:00