Post your modding questions here

User avatar
ch98
Member
 
Posts: 463
Joined: Wed Jan 02, 2013 06:14

by ch98 » Wed Apr 24, 2013 17:37

kaeza wrote:change:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.env.find_node_near

to:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.env:find_node_near


(note the colon ':' instead of the period '.')

Edit: It happens in line 10 and a bit below.

ok. thanks. I only looked at first one so I missed it.
Mudslide mod Click Here
 

Franz
New member
 
Posts: 3
Joined: Tue Apr 23, 2013 11:43

by Franz » Wed Apr 24, 2013 19:09

Can anyone make a treeassist mod?
describtion: when you chop down a woodblock from a tree it will kill the complete tree and you get his items.

is it possible? :D
 

Franz
New member
 
Posts: 3
Joined: Tue Apr 23, 2013 11:43

by Franz » Wed Apr 24, 2013 20:43

k. lemme check it out!
 

User avatar
Pavel_S
Member
 
Posts: 131
Joined: Sat Apr 06, 2013 11:43

by Pavel_S » Thu Apr 25, 2013 04:18

How to replace default torch by model in .x format?
 

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

by PilzAdam » Thu Apr 25, 2013 10:01

Pavel_S wrote:How to replace default torch by model in .x format?

There is currently no drawtype for nodes to use a mesh. RealBadAngel is working on it.
 

User avatar
pandaro
Member
 
Posts: 266
Joined: Sun Jan 08, 2012 21:34
GitHub: pandaro

by pandaro » Thu Apr 25, 2013 10:07

Is there a way to automatically rotate an object placed on the ground? In the same way in which a wheel block dropped from the inventory, without using function "on_step".
sorry for bad english
Linux debian 7 wheezy 64
kde
 

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

by PilzAdam » Thu Apr 25, 2013 10:13

pandaro wrote:Is there a way to automatically rotate an object placed on the ground? In the same way in which a wheel block dropped from the inventory, without using function "on_step".

https://github.com/minetest/minetest/blob/master/doc/lua_api.txt#L1549
builtin/item_entity.lua:54
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
prop.automatic_rotate = math.pi * 0.25
 

User avatar
pandaro
Member
 
Posts: 266
Joined: Sun Jan 08, 2012 21:34
GitHub: pandaro

by pandaro » Thu Apr 25, 2013 15:30

thanks Adam, I wrote only:

automatic_rotate = true,

now it work!
sorry for bad english
Linux debian 7 wheezy 64
kde
 

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

by Likwid H-Craft » Fri Apr 26, 2013 15:24

Hey Adam is there a way, to make the Survival Mode Inventory size different like creative mode how it in a the mod area? since I can't find The survival inventory anywhere and I liked change it just for one game mode, since I liked you only can hold 8 things.
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)
 

User avatar
12Me21
Member
 
Posts: 826
Joined: Tue Mar 05, 2013 00:36

by 12Me21 » Fri Apr 26, 2013 15:28

12Me21 wrote:Is it possible to only have one of a certain type of node generate in the entire map?
This is a signature virus. Add me to your signature so that I can multiply.
Don't ever save anything as a JPEG.
 

User avatar
12Me21
Member
 
Posts: 826
Joined: Tue Mar 05, 2013 00:36

by 12Me21 » Fri Apr 26, 2013 15:29

Pavel_S wrote:How to replace default torch by model in .x format?

you can't but you can use nodeboxes to make torches 3D, like the ones in 3d furniture

edit, you can add this to the code, don't replace the code for the torches that is already there.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_node(':default:torch', {
    description =("Torch"),
    drawtype = "nodebox",
tiles = {
        {name="default_torch_on_floor_animated.png", animation={type="vertical_frames", aspect_w=16, aspect_h=16, length=3.0}},
        selection_box = {
                type = "fixed",
                fixed = { -1/16, -0.5, -1/16, 1/16, 5/32, 1/16 }
        },
        node_box = {
                type = "fixed",
                fixed = { -1/16, -0.5, -1/16, 1/16, 5/32, 1/16 }
        },

    sunlight_propagates = true,
    paramtype = "light",
})
Last edited by 12Me21 on Fri Apr 26, 2013 15:36, edited 1 time in total.
This is a signature virus. Add me to your signature so that I can multiply.
Don't ever save anything as a JPEG.
 

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

by Likwid H-Craft » Fri Apr 26, 2013 15:30

^Yes if you mean like this.

Just water or just stone or whatever.
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)
 

User avatar
12Me21
Member
 
Posts: 826
Joined: Tue Mar 05, 2013 00:36

by 12Me21 » Fri Apr 26, 2013 15:37

Likwid H-Craft wrote:^Yes if you mean like this.

Just water or just stone or whatever.

no I mean like only generating one mese block in the entire map
This is a signature virus. Add me to your signature so that I can multiply.
Don't ever save anything as a JPEG.
 

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

by Likwid H-Craft » Fri Apr 26, 2013 16:04

Oh hmm, I think to do at you will need set it 0, 1, 0 Idk if that how get it work since I don't play around the code for ores, size unless I adding new ones.
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)
 

User avatar
Casimir
Member
 
Posts: 1101
Joined: Fri Aug 03, 2012 16:59

by Casimir » Mon Apr 29, 2013 15:57

12Me21 wrote:no I mean like only generating one mese block in the entire map

Look at the spawn of Minetest-Black.
 

User avatar
Casimir
Member
 
Posts: 1101
Joined: Fri Aug 03, 2012 16:59

by Casimir » Mon Apr 29, 2013 19:16

How to check if a node has "on_rightclick"?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
local node = minetest.env:get_node(pointed_thing.under)
if node.on_rightclick ~= nil then
    -- something
end

Is not working. I guess because the function returns nothing.
Last edited by Casimir on Mon Apr 29, 2013 19:16, edited 1 time in total.
 

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

by PilzAdam » Mon Apr 29, 2013 20:46

Casimir wrote:How to check if a node has "on_rightclick"?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
local node = minetest.env:get_node(pointed_thing.under)
if node.on_rightclick ~= nil then
    -- something
end

Is not working. I guess because the function returns nothing.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
if minetest.registered_nodes[node.name].rightclick then
Last edited by PilzAdam on Mon Apr 29, 2013 20:46, edited 1 time in total.
 

User avatar
Casimir
Member
 
Posts: 1101
Joined: Fri Aug 03, 2012 16:59

by Casimir » Mon Apr 29, 2013 21:22

Thank you. Works perfect.
 

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

by Likwid H-Craft » Mon Apr 29, 2013 21:31

Ok I am making somewhat a useful Mod but I don't know if possible do some stuff.

1.Is it possible make a item glow when holding it, like give off light?

2.How do change the light it give off something else? E.g. Blue Green...

Ok it a Official I tell you my mod I am making a Glow Stick It texture and most of it finish but the craft and such...
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

by PilzAdam » Mon Apr 29, 2013 22:16

Likwid H-Craft wrote:Ok I am making somewhat a useful Mod but I don't know if possible do some stuff.

1.Is it possible make a item glow when holding it, like give off light?

2.How do change the light it give off something else? E.g. Blue Green...

Ok it a Official I tell you my mod I am making a Glow Stick It texture and most of it finish but the craft and such...

Neither of your questions is possible.
 

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

by Likwid H-Craft » Mon Apr 29, 2013 22:18

So never? or maybe in later builds we can?
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)
 

User avatar
ch98
Member
 
Posts: 463
Joined: Wed Jan 02, 2013 06:14

by ch98 » Mon Apr 29, 2013 22:19

is it possible to have a modpack within a modpack?
Mudslide mod Click Here
 

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

by Likwid H-Craft » Mon Apr 29, 2013 23:41

I think so...

Btw I found out what Likwid Stands for!

Likwid: Like I know what I doing
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)
 

User avatar
ch98
Member
 
Posts: 463
Joined: Wed Jan 02, 2013 06:14

by ch98 » Mon Apr 29, 2013 23:45

PilzAdam wrote:
Likwid H-Craft wrote:Ok I am making somewhat a useful Mod but I don't know if possible do some stuff.

1.Is it possible make a item glow when holding it, like give off light?

2.How do change the light it give off something else? E.g. Blue Green...

Ok it a Official I tell you my mod I am making a Glow Stick It texture and most of it finish but the craft and such...

Neither of your questions is possible.

Is it also possible to make player glow? It might work that way.
Mudslide mod Click Here
 

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

by PilzAdam » Tue Apr 30, 2013 10:14

ch98 wrote:is it possible to have a modpack within a modpack?

No.

ch98 wrote:
PilzAdam wrote:
Likwid H-Craft wrote:Ok I am making somewhat a useful Mod but I don't know if possible do some stuff.

1.Is it possible make a item glow when holding it, like give off light?

2.How do change the light it give off something else? E.g. Blue Green...

Ok it a Official I tell you my mod I am making a Glow Stick It texture and most of it finish but the craft and such...

Neither of your questions is possible.

Is it also possible to make player glow? It might work that way.

No.
 

kpo
Member
 
Posts: 38
Joined: Sun Mar 31, 2013 19:01

by kpo » Tue Apr 30, 2013 20:06

Franz wrote:Can anyone make a treeassist mod?
describtion: when you chop down a woodblock from a tree it will kill the complete tree and you get his items.

is it possible? :D


It is indeed possible. Take a look at the technic mod and add my chainsaw modifications to it.
http://forum.minetest.net/viewtopic.php?pid=86747#p86747
 

deivan
Member
 
Posts: 452
Joined: Fri Feb 15, 2013 10:16

by deivan » Tue Apr 30, 2013 22:09

Likwid H-Craft, The walking light mod have a code similar of this description, but cause some delay when is operating...
-*-
Franz, the timber mod is doing it, and now the technic to.
Last edited by deivan on Tue Apr 30, 2013 22:11, edited 1 time in total.
 

User avatar
ShadowNinja
Member
 
Posts: 194
Joined: Tue Jan 22, 2013 22:35
GitHub: ShadowNinja
IRC: ShadowNinja
In-game: ShadowNinja

by ShadowNinja » Thu May 02, 2013 03:50

PilzAdam wrote:
ch98 wrote:is it possible to have a modpack within a modpack?

No.

Actualy it is possible, as long as they all have a modpack.txt(I use this feature for organization).
I play on my Minetest server and VanessaE's.
The best way to contact me is usually IRC (InchraNet, freenode).
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48

by Traxie21 » Thu May 02, 2013 11:43

It is also possible to have a mod turn into a modpack. That is how my AutoUpdater mod works.
 

User avatar
pandaro
Member
 
Posts: 266
Joined: Sun Jan 08, 2012 21:34
GitHub: pandaro

by pandaro » Thu May 02, 2013 17:11

I tried to do something with minetest.register_on_joinplayer:

minetest.register_on_joinplayer(function(player)
print("hello")
minetest.env:place_node(player:getpos(),{name="default:stone"})

end)


is correctly printed "hello",but the node is not placed
What's wrong?
Last edited by pandaro on Thu May 02, 2013 17:11, edited 1 time in total.
sorry for bad english
Linux debian 7 wheezy 64
kde
 

PreviousNext

Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron