[Mod] Minor Redefinitions [redef]

Post Reply
User avatar
Linuxdirk
Member
Posts: 3217
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

[Mod] Minor Redefinitions [redef]

by Linuxdirk » Post

The Minor Redefinitions mod redefines (“fixes”) smaller things that are issues for either Minetest or Minetest Game, and some well-known mods that are technically fixable but won’t be fixed due to several non-technical reasons.

Redefinitions

All definitions are enabled by default.

3D Ladders Redefining the 2D ladders so that they use a 3D model. No new textures are needed since he normal textures are used. Only works properly if using the 16x16 default textures or texture packs that use the same size and shape for the ladders.

Image

Maximum Stack Size It changes the maximum stack size of all registered things whose stack size is 99 to the given redef_stack_max value. Unfortunately the maximum stack size of 99 is hardcoded in some places and can’t be changed using a mod.

Image

Grass Box Height Make grass selection box x/16 high for easy building or punching through regardless of actual height of the box. By default 2/16 is used.

Image

Aligned textures This fixes the texture orientation of stairs and slabs regardless of how they were defined to achieve a clean look. This redefinition also world-alignes moreblocks nodes that are nodeboxes (world-alignment of textures only works on nodeboxes).

Image

Automatic Proper Rotation A long-term issue of – for example – Moreblocks is that it completely breaks the automatic rotation of stairs and slabs (everything is just placed sideways). This redefinition fixes that for stairs and slabs.

Image

Show Steps Some mods might hide stairs and slabs from creative inventory for some reason and have no way to unhide them or crash when trying to do so. This redefinition shows them independent of mod by simply removing the group that hides the nodes.

Image

Feel free to suggest more minor things over at GitLab!

Mod Meta

License: MIT License for code, CC0 for media
Dependencies: default
Download latest version: main.tar.gz
Source/issues/etc.: git.0x7be.net
Content DB: Minor Redefinitions
Last edited by Linuxdirk on Sun Jul 16, 2023 19:39, edited 5 times in total.

User avatar
ElCeejo
Member
Posts: 210
Joined: Thu Feb 28, 2019 23:29
GitHub: ElCeejo
In-game: ElCeejo
Location: Your Mother's house

Re: [Mod] Minor Redefinitions [redef]

by ElCeejo » Post

Cool Idea, I'll have to try this out.

User avatar
pampogokiraly
Member
Posts: 293
Joined: Wed Jan 08, 2020 22:21
In-game: i_love_mesecon

Re: [Mod] Minor Redefinitions [redef]

by pampogokiraly » Post

+10
Just what i wanted! Really nice mod.
All praise the Bacon God! The one and only god in MineTest

User avatar
Lone_Wolf
Member
Posts: 2576
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: [Mod] Minor Redefinitions [redef]

by Lone_Wolf » Post

This looks neat. The grass part isn't too clear though, does it reduce the height of the selectionbox?
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

User avatar
Linuxdirk
Member
Posts: 3217
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Minor Redefinitions [redef]

by Linuxdirk » Post

Lone_Wolf wrote:This looks neat. The grass part isn't too clear though, does it reduce the height of the selectionbox?
Yes, exactly. By default it’s like in the screenshot on the left. When enabled it is reduced to x/16 if it is above x/16. By default x is 2. So all Grass types where the selection box is higher than 2 it gets reduced to 2 which allows punching through the grass. So for removing grass you need to punch its bottom.

I updated the screenshot to make it clearer.

User avatar
texmex
Member
Posts: 1753
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Minor Redefinitions [redef]

by texmex » Post

Coherence. Nice.

Sporax
Member
Posts: 149
Joined: Mon Jul 11, 2016 16:33
GitHub: Sporax
IRC: Sporax
In-game: Sporax
Location: France

Re: [Mod] Minor Redefinitions [redef]

by Sporax » Post

Nice usefull mod!
I've sent an issue about adding 3D system (like ladders) for rails!

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: [Mod] Minor Redefinitions [redef]

by rubenwardy » Post

Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Linuxdirk
Member
Posts: 3217
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Minor Redefinitions [redef]

by Linuxdirk » Post

rubenwardy wrote:I've added this mod to the modpack I use when playing Minetest
Yaay :) Glad you like it!

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: [Mod] Minor Redefinitions [redef]

by runs » Post

Why these fixes not already included in Minetest Game yet???

User avatar
pampogokiraly
Member
Posts: 293
Joined: Wed Jan 08, 2020 22:21
In-game: i_love_mesecon

Re: [Mod] Minor Redefinitions [redef]

by pampogokiraly » Post

runs wrote:Why these fixes not already included in Minetest Game yet???
Good question :D
All praise the Bacon God! The one and only god in MineTest

User avatar
Linuxdirk
Member
Posts: 3217
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Minor Redefinitions [redef]

by Linuxdirk » Post

runs wrote:Why these fixes not already included in Minetest Game yet???
In the readme on GitLab I linked corresponding issues, PRs, and forum posts. Just go and see it for yourself! My personal non-judgemental conclusion is that those things are technically fixable but are not fixed due to several non-technical reasons. This is why this statement is part of the mod’s slogan :)

User avatar
Linuxdirk
Member
Posts: 3217
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Minor Redefinitions [redef]

by Linuxdirk » Post

Just a quick note: The mod is fully compatible with Minetest 5.2.x. An version limits update on CDB will be pushed soon.

User avatar
Linuxdirk
Member
Posts: 3217
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Minor Redefinitions [redef]

by Linuxdirk » Post

Good news everyone!

I slightly expanded the scope of this mod to also cover well-known 3rd-party mods. This allowed me to finally fix the darn rotation issue with stairs and slabs when using the Moreblocks mod.

Fixed, as in: stairs and slabs are not just placed sideways as with Moreblocks but actually being placed depending on placement position and (for slabs) surrounding slabs as it is without Moreblocks.

Just get the latest Git version or wait for the CDB to update and enjoy properly placed slabs and stairs again! :)

Edit: A Quick update was made. Now the slopes introduced by the Moreblocks mod are now handled like stairs and rotate properly on placement instead of all being sideways.

Dragonop
Member
Posts: 1233
Joined: Tue Oct 23, 2012 12:59
GitHub: Dragonop
IRC: Dragonop
In-game: Dragonop
Location: Argentina

Re: [Mod] Minor Redefinitions [redef]

by Dragonop » Post

I absolutely love this mod. I wish these were included by default...

User avatar
Linuxdirk
Member
Posts: 3217
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Minor Redefinitions [redef]

by Linuxdirk » Post

Just a quick update. One of the latest versions of moreblock or bakedclay caused the proper rotation redefinition not being applied to bakedclay nodes.

This is now fixed and the redefinition is generalized to not only specifically fix moreblocks rotation issues but all rotation issues of mods that mess it up. This means that the configuration option changed from redef_moreblocks_rotation to redef_proper_rotation. If you disabled this redefinition you need to change the option name in your minetest.conf file.

The latest version of this mod will be distributed on CDB soon. To get updates instantly directly use the Git version.

I also removed the “rotation API” files because the reason it was introduced does not exist anymore – as a player you do not need to care about this.

User avatar
philipbenr
Member
Posts: 1897
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

Re: [Mod] Minor Redefinitions [redef]

by philipbenr » Post

I am surprised I hadn't seen this mod earlier. This fixed a lot of problems I had with buildings in my world (stairs upsidedown and ladders being hard to see). Instant install.

User avatar
LMD
Member
Posts: 1386
Joined: Sat Apr 08, 2017 08:16
GitHub: appgurueu
IRC: appguru[eu]
In-game: LMD
Location: Germany
Contact:

Re: [Mod] Minor Redefinitions [redef]

by LMD » Post

Good mod.
won’t be fixed due to several non-technical reasons
Won't you consider making pull requests to MTG?
My stuff: Projects - Mods - Website

User avatar
Linuxdirk
Member
Posts: 3217
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Minor Redefinitions [redef]

by Linuxdirk » Post

LMD wrote:
Fri Feb 12, 2021 12:10
Won't you consider making pull requests to MTG?
In the readme I link the relevant issues. Also: MTG is not being developed anymore (bugfixes only).

Dragonop
Member
Posts: 1233
Joined: Tue Oct 23, 2012 12:59
GitHub: Dragonop
IRC: Dragonop
In-game: Dragonop
Location: Argentina

Re: [Mod] Minor Redefinitions [redef]

by Dragonop » Post

Linuxdirk wrote:
Fri Feb 12, 2021 13:19
LMD wrote:
Fri Feb 12, 2021 12:10
Won't you consider making pull requests to MTG?
In the readme I link the relevant issues. Also: MTG is not being developed anymore (bugfixes only).
I believe it's worth it to try anyways, this mod is more about "fixing" rather than "adding"

User avatar
Linuxdirk
Member
Posts: 3217
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Minor Redefinitions [redef]

by Linuxdirk » Post

Feel free to do so. I don’t.

First: Because I don’t use MS GitHub, and second: I stopped caring for MT core development entirely and just be happy with my mods and stuff. Too much drama.

deleted c0a803ab

Re: [Mod] Minor Redefinitions [redef]

by deleted c0a803ab » Post

Great work!

These ladders should be in mtg.

User avatar
Linuxdirk
Member
Posts: 3217
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Mod] Minor Redefinitions [redef]

by Linuxdirk » Post

Update!

Mainly to prevent this from happening the mod now has an option to “forcefully” show all slabs and stairs in creative inventory.

Just pull the Git version or check Content Database updates to get the latest version

Post Reply

Who is online

Users browsing this forum: Nicu and 12 guests