Search found 81 matches

by LC Creations
Sun May 31, 2020 05:02
Forum: Modding Discussion
Topic: Do something when armor wears out
Replies: 1
Views: 12

Do something when armor wears out

The title. I'm using the armor mod as a depend.
by LC Creations
Sun May 31, 2020 04:59
Forum: Modding Discussion
Topic: Register a function when a tool wears out?
Replies: 2
Views: 58

Re: Register a function when a tool wears out?

Well, I cannot do that since the tool is armor and the wear is being set by set_wear() in the armor mod. I am not going to modify the armor mod so I need a workaround.
by LC Creations
Thu May 28, 2020 12:51
Forum: Modding Discussion
Topic: How do you use yaw to calculate node in front of object or player?
Replies: 1
Views: 30

How do you use yaw to calculate node in front of object or player?

I'm working on a custom mobs mod. To prevent certian mobs from entering water, I want to check if the node in front of the mob is water or not (the next node that would be stepped on). But I need to convert yaw to x and z so I can calculate the node that the mob is facing but I dont know how to calc...
by LC Creations
Thu May 28, 2020 00:43
Forum: Modding Discussion
Topic: No way to check if in creative mode or not
Replies: 3
Views: 72

No way to check if in creative mode or not

I have searched through a lot of questions here, then on the dev wiki, and then I checked in the lua.api by searching for the words "creative", "survival", then the word "mode" and NOTHING. I found nothing that helped me. This should be one of the simplest things yet it is not. Rediculus and what th...
by LC Creations
Wed May 27, 2020 06:52
Forum: Modding Discussion
Topic: Do something when tool wears out
Replies: 0
Views: 31

Do something when tool wears out

I need to run a function when a tool that I created wears out.
by LC Creations
Sun May 24, 2020 03:19
Forum: Modding Discussion
Topic: How to save contents to a external file then load it later
Replies: 2
Views: 72

How to save contents to a external file then load it later

So, I tried this code I got from stack overflow

Code: Select all

file = io.open (filename [, mode])
However, when using this code, minetest runs an error. Minetest client says that it cannot do that becuase it is not safe or something.
by LC Creations
Sun May 24, 2020 03:07
Forum: Modding Discussion
Topic: How to save a table to a string and convert it back to a table
Replies: 3
Views: 69

How to save a table to a string and convert it back to a table

I need to save an entire table to a string then convert it back to a table when the server is opened up.
by LC Creations
Sat May 23, 2020 08:38
Forum: Modding Discussion
Topic: Register a function when a tool wears out?
Replies: 2
Views: 58

Register a function when a tool wears out?

Let's say I created a mod with pink diamond that had a pink diamond pickaxe. I need to register a function that is called when the tool wears out. Is this possible?
by LC Creations
Sat May 23, 2020 03:52
Forum: Modding Discussion
Topic: Why is there not a function on server startup?
Replies: 1
Views: 49

Why is there not a function on server startup?

So, I need to make a function happen when the server is done loading and to my surprise there is only a function on shutdown. Why isnt there a function like minetest.register_after_server_loaded() or something like that.
by LC Creations
Sat May 23, 2020 02:06
Forum: Modding Discussion
Topic: How to get table of positions at top of nearest cave opening
Replies: 0
Views: 50

How to get table of positions at top of nearest cave opening

I want to get a list of positions at the very top of the closest cave opening that is near a specific pos. I know this is nearly impossible and I'm not even sure how this would be accomplished as I know this may not be realistic. I want to make a volcano mod. I want lava to fill an entire cave with ...
by LC Creations
Fri May 22, 2020 23:39
Forum: Modding Discussion
Topic: How to get ground level (pos.y) at x and z
Replies: 1
Views: 71

How to get ground level (pos.y) at x and z

Let's say, there is a player in a cave at pos 0,-327,0. But above me, is a very high moutian. I want to know how I can find the ground level directly above where the player stands inside that cave.
by LC Creations
Fri May 22, 2020 19:11
Forum: Modding Discussion
Topic: How to get the mapgen current height
Replies: 0
Views: 55

How to get the mapgen current height

Hello. I want to make a volcano mod that works. The way I want it to work is by allowing players to place a special lava node inside a cave. The lava will then rise until it reaches the surface of the world and is no longer underground. However, there is no way to get the surface level as it could b...
by LC Creations
Fri May 22, 2020 06:22
Forum: General Discussion
Topic: Minetest should have the ability to choose mapgens
Replies: 12
Views: 273

Re: Minetest should have the ability to choose mapgens

What about if there was a modpack that has all of the default biomes and a 'minetest game' with a flat biome as the only registered biome by default. If there are any registered biomes from the modpack, then the flat biome does not get registered.
by LC Creations
Thu May 21, 2020 19:16
Forum: General Discussion
Topic: Minetest should have the ability to choose mapgens
Replies: 12
Views: 273

Minetest should have the ability to choose mapgens

I think like minecraft, minetest should provide the ability to disable and enable registered mapgen biomes per world. Since minetest enables the mapgens when configuring the world via main menu, I'm not sure how this would be done but there has got to be a way other than making a separate minetest g...
by LC Creations
Sun May 17, 2020 23:53
Forum: Modding Discussion
Topic: How to use raycast to get position before intersection
Replies: 1
Views: 55

How to use raycast to get position before intersection

So, I know that in minetest you can use raycast. What know is that raycast returns false if between the two positions you provide there is a node that cuts off the players further visibility. I want to get the node pos before the other node that cuts off the players visibility so I can manipulate th...
by LC Creations
Sat May 16, 2020 22:54
Forum: Modding Discussion
Topic: Add player velocity in their look direction.
Replies: 1
Views: 46

Add player velocity in their look direction.

I want to add player velocity on x and z by the number "1" in their look direction but only on the x and z axis. I do not want the player to go up but I dont know of the player direction for either x or z is negative or positive so I do not know when to add a negative number to x or z or a positive ...
by LC Creations
Sat May 16, 2020 03:25
Forum: Modding Discussion
Topic: How to make something like mesecons?
Replies: 4
Views: 121

How to make something like mesecons?

So, I want to make something like mesecons. That is, when a node touches a certian type of other node, all the nodes connected to it, light up to represent that it is connected to that main node that is sending out power, and if somewhere along the line of those nodes a node is taken out, then only ...
by LC Creations
Sat May 16, 2020 00:41
Forum: Modding Discussion
Topic: A mesecon question.
Replies: 0
Views: 67

A mesecon question.

Hello. I'm making a mod that uses mesecon. I have a node called "mymod:tubething_on/off" that is a conductor obviosly with on and off nodes. I also have a receptor that would be called "mymod:pump". But, I only want "tubething" to be actived by the pump and nothing else mesecon related but I also wa...
by LC Creations
Tue May 12, 2020 19:25
Forum: Modding Discussion
Topic: How to create a custom definition for a ref
Replies: 0
Views: 62

How to create a custom definition for a ref

I have a power rangers mod. Currently, it does not actually register a "ranger". All it does is uses a function that is called like register_ranger(name, description, strength) . All the function does is registers armor using the armor mod. But, I dont just want to register armor, I want to create a...
by LC Creations
Mon May 11, 2020 03:45
Forum: Modding Discussion
Topic: How to make a world with ONLY jungle?
Replies: 5
Views: 110

Re: How to make a world with ONLY jungle?

I think that the second comment by nathan. By the way hi I didnt know you were on the forums, is the right option, as i have used admist for a long time and it takes a long time to use admist to find the right world. Also, yes... I'm dead set on jungle for a specific project. I may just create a gam...
by LC Creations
Mon May 11, 2020 01:22
Forum: Modding Discussion
Topic: How to make a world with ONLY jungle?
Replies: 5
Views: 110

How to make a world with ONLY jungle?

How can one obtain a world with only a single biome, for me, preferably rainforest/jungle? In minecraft, you can choose exactly what you want and you can tell the game which biomes are allowed to generate. In minetest you just get what you get and dont throw a fit... but... I'm throwing a fit haha. ...
by LC Creations
Sun May 10, 2020 02:31
Forum: Modding Discussion
Topic: How to go about creating a custom mob engine
Replies: 3
Views: 170

How to go about creating a custom mob engine

So, I know there are a lot of mob api's out there. But, I really want to learn and I also want to not use another person's api as much as possible. So directing me to an api is not the answer I'm looking for. I'm also not trying to get anyone to write me any code. What I am asking is how to go about...
by LC Creations
Sun May 10, 2020 01:08
Forum: Modding Discussion
Topic: I want to manually punch an ObjectRef is punch() the right way?
Replies: 3
Views: 64

Re: I want to manually punch an ObjectRef is punch() the right way?

It works now. The tool capabilities were not strong enough.