[Mod] Minor Redefinitions [redef]

Post Reply
User avatar
Linuxdirk
Member
Posts: 2713
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 Rotation with Moreblocks A long-term issue of 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

Feel free to suggest more minor things over at GitLab!

Mod Meta

License: GPLv3 for code, CC-BY-SA for media
Dependencies: default
Download latest version: redef-master.zip
Source/issues/etc.: GitLab
Content DB: Minor Redefinitions
Last edited by Linuxdirk on Fri Aug 21, 2020 19:34, edited 2 times in total.

User avatar
ElCeejo
Member
Posts: 119
Joined: Thu Feb 28, 2019 23:29
GitHub: ElCeejo
In-game: ElCeejo
Location: In a Dragons Lair

Re: [Mod] Minor Redefinitions [redef]

by ElCeejo » Post

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

User avatar
pampogokiraly
Member
Posts: 247
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.
My mod (a bit old) request: Better enchant. My second mod: Old Broken Castle nodes. Search for aab01 to find my mods!

User avatar
Lone_Wolf
Member
Posts: 2435
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: Lone_Wolf or LoneWolfHT
In-game: Lone_Wolf
Location: Not there, THERE!

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 Voxel Knights -|- Minetest Forums Dark Theme!! (You need it)

User avatar
Linuxdirk
Member
Posts: 2713
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: 1752
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: tacotexmex

Re: [Mod] Minor Redefinitions [redef]

by texmex » Post

Coherence. Nice.
Mods | Support Mesehub: bc1qluuests9rxmlnvpjrhsnyjg9ucwy6z3r0y3srw

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: 6377
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

Re: [Mod] Minor Redefinitions [redef]

by rubenwardy » Post


User avatar
Linuxdirk
Member
Posts: 2713
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: 2072
Joined: Sat Oct 27, 2018 08:32
GitHub: runsy

Re: [Mod] Minor Redefinitions [redef]

by runs » Post

Why these fixes not already included in Minetest Game yet???
🤑 Patreon |Minetest Chat | 👧 Samantha | ⛏️ Juanchi Game | 🐱 Petz

User avatar
pampogokiraly
Member
Posts: 247
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
My mod (a bit old) request: Better enchant. My second mod: Old Broken Castle nodes. Search for aab01 to find my mods!

User avatar
Linuxdirk
Member
Posts: 2713
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: 2713
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: 2713
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.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 4 guests