Post your modding questions here

Locked
User avatar
Aqua
Member
Posts: 641
Joined: Wed Aug 22, 2012 09:11
Location: Sydney~Singapore
Contact:

Post your modding questions here

by Aqua » Post

Please post any new questions in the Modding Discussion subforum
Last edited by rubenwardy on Sat Dec 02, 2017 20:15, edited 2 times in total.
Reason: lock thread
Hi there ^.~

User avatar
Likwid H-Craft
Member
Posts: 1113
Joined: Sun Jan 06, 2013 14:20
Location: Lost in Crypt

by Likwid H-Craft » Post

Title:How do I upload a Model?

You see I made a model and I like to, inport it on, Minetest but how do I?

And is there a way have the textures to work to like the player.
Last edited by Likwid H-Craft on Sun Feb 03, 2013 03:44, edited 1 time in total.
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)

User avatar
Aqua
Member
Posts: 641
Joined: Wed Aug 22, 2012 09:11
Location: Sydney~Singapore
Contact:

by Aqua » Post

Likwid H-Craft wrote:Title:How do I upload a Model?

You see I made a model and I like to, inport it on, Minetest but how do I?

And is there a way have the textures to work to like the player.
What did you make the model on? Blender? I think you have to import it to a .X file using DirectX or something.
Hi there ^.~

User avatar
Likwid H-Craft
Member
Posts: 1113
Joined: Sun Jan 06, 2013 14:20
Location: Lost in Crypt

by Likwid H-Craft » Post

Yes it on blender.
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)

User avatar
Evergreen
Member
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
Location: A forest in the midwest
Contact:

by Evergreen » Post

How do I make the mod block appear in the creative menu? Also, how do I make it show the name of the block when I hover my cursor over it?
Back from the dead!

User avatar
Casimir
Member
Posts: 1204
Joined: Fri Aug 03, 2012 16:59
GitHub: CasimirKaPazi

by Casimir » Post

2. When registering a block use

Code: Select all

    description = "Name",
1. In the groups make sure there is no "not_in_creative_inventory" group. For example:

Code: Select all

    groups = {crumbly=3},

User avatar
Traxie21
Member
Posts: 753
Joined: Mon Dec 31, 2012 10:48
Location: McKinney, Texas U.S.A.
Contact:

by Traxie21 » Post

Topic: How does one create a seperate inventory and update it with specific items?
Reasons: Making a physical Economy system
More info...
I don't understand formspec very well,
and the InvRef documentation needs help.

1244
Member
Posts: 45
Joined: Fri Jul 13, 2012 16:40
Location: Poland

by 1244 » Post

Can I add metadata to items in inventory?
My mods:
Barrels, Chemistry

User avatar
Evergreen
Member
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
Location: A forest in the midwest
Contact:

by Evergreen » Post

The other problem is the textures glitch, turning black randomly etc.
Last edited by Evergreen on Sun Feb 03, 2013 18:32, edited 1 time in total.
Back from the dead!

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

1244 wrote:Can I add metadata to items in inventory?
Yes: https://github.com/celeron55/minetest/b ... .txt#L1259

User avatar
Evergreen
Member
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
Location: A forest in the midwest
Contact:

by Evergreen » Post

Can anyone post the ABM code for generating trees?
Back from the dead!

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

Evergreen wrote:Can anyone post the ABM code for generating trees?
The default trees arent generated with an abm. They are generated in the mapgen in c++.

User avatar
Evergreen
Member
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
Location: A forest in the midwest
Contact:

by Evergreen » Post

PilzAdam wrote:
Evergreen wrote:Can anyone post the ABM code for generating trees?
The default trees arent generated with an abm. They are generated in the mapgen in c++.
I know it can be done in ABM. Can someone write a code for that?
Back from the dead!

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

If you want them to be ABM-based, look at the original conifers or jungletrees mods, or the first version of moretrees. The former works on almost any version of minetest, but they're both kinda slow. The latter is lightning fast but requires a recent development build from minetest git.

It is not recommended to spawn trees via an ABM except in the case of planting saplings. Doing so will crowd your map and irritate your users.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
Evergreen
Member
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
Location: A forest in the midwest
Contact:

by Evergreen » Post

VanessaE wrote:If you want them to be ABM-based, look at the original conifers or jungletrees mods, or the first version of moretrees. The former works on almost any version of minetest, but they're both kinda slow. The latter is lightning fast but requires a recent development build from minetest git.

It is not recommended to spawn trees via an ABM except in the case of planting saplings. Doing so will crowd your map and irritate your users.
Then how do I make different trees spawn?
Which file do I edit?

(hint, I am making a birch tree mod.)

I also need to know how to not have those strange texture glitches appear at random.
Back from the dead!

Test&Mine
New member
Posts: 8
Joined: Sun Feb 03, 2013 12:47

by Test&Mine » Post

Title: How I make.

Yes how do I make a way, to have two Items show... EG... Like have a pickaxe on one, side and a Gun on the other?

User avatar
Likwid H-Craft
Member
Posts: 1113
Joined: Sun Jan 06, 2013 14:20
Location: Lost in Crypt

by Likwid H-Craft » Post

I think you use this, ^ and have X90 maybe at the end of it.
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

Test&Mine wrote:Title: How I make.

Yes how do I make a way, to have two Items show... EG... Like have a pickaxe on one, side and a Gun on the other?
You mean one item per hand? This is not possible in the Lua API. You need to edit the engine code.

User avatar
Traxie21
Member
Posts: 753
Joined: Mon Dec 31, 2012 10:48
Location: McKinney, Texas U.S.A.
Contact:

by Traxie21 » Post

Minetest players are severely right-handed. They drop anything in their left hand. Fact of life.

User avatar
Evergreen
Member
Posts: 2135
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen
Location: A forest in the midwest
Contact:

by Evergreen » Post

PilzAdam wrote:
Test&Mine wrote:Title: How I make.

Yes how do I make a way, to have two Items show... EG... Like have a pickaxe on one, side and a Gun on the other?
You mean one item per hand? This is not possible in the Lua API. You need to edit the engine code.
Can you please answer my question about what file the map generation of trees is in? I also want to know how to fix those wierd texture glitches.
Back from the dead!

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

Evergreen wrote:
PilzAdam wrote:
Test&Mine wrote:Title: How I make.

Yes how do I make a way, to have two Items show... EG... Like have a pickaxe on one, side and a Gun on the other?
You mean one item per hand? This is not possible in the Lua API. You need to edit the engine code.
Can you please answer my question about what file the map generation of trees is in? I also want to know how to fix those wierd texture glitches.
There are currently two files for that: The method in mapgen_v6.cpp is used currently.

User avatar
Likwid H-Craft
Member
Posts: 1113
Joined: Sun Jan 06, 2013 14:20
Location: Lost in Crypt

by Likwid H-Craft » Post

How do I make the, Version hidden, and change it?

And can I make Mouse 2 Click to do something just for, one item in the init.lua?
Last edited by Likwid H-Craft on Mon Feb 04, 2013 18:01, edited 1 time in total.
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)

User avatar
Traxie21
Member
Posts: 753
Joined: Mon Dec 31, 2012 10:48
Location: McKinney, Texas U.S.A.
Contact:

by Traxie21 » Post

Title: Does anyone understand how to use minetest.get_pointed_thing_position()?

here's what I'm trying to do:

Code: Select all

local pos = minetest.get_pointed_thing_position(pointed, true)
minetest.env:remove_node(pos)


User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

Traxie21 wrote:Title: Does anyone understand how to use minetest.get_pointed_thing_position()?

here's what I'm trying to do:

Code: Select all

local pos = minetest.get_pointed_thing_position(pointed, true)
minetest.env:remove_node(pos)

  • If pointing at a node & above -> return pointed_thing.above
  • If pointing at a node & not above -> return pointed_thing.under
  • If pointing at a objec & object exists -> return object
  • If pointing at a objec & object doesn exists -> return nil
  • If none of the above -> return nil

User avatar
Likwid H-Craft
Member
Posts: 1113
Joined: Sun Jan 06, 2013 14:20
Location: Lost in Crypt

by Likwid H-Craft » Post

How do I make the, Version hidden, and change it?

And can I make Mouse 2 Click to do something just for, one item in the init.lua?
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)

Locked

Who is online

Users browsing this forum: No registered users and 2 guests