Search found 124 matches

Return to advanced search

Re: Overlaying a texture onto a node during runtime?

You are correct, you will have to register a new node for it. Minetest doesn't suport dynamic node textures.
by Skamiz Kazzarch
Sun Feb 02, 2020 08:27
 
Forum: Modding Discussion
Topic: Overlaying a texture onto a node during runtime?
Replies: 4
Views: 124

Re: Post your Screenshots of Terrain!

https://forum.minetest.net/download/file.php?mode=view&id=21080&sid=3a30535b2337baf00f830d26a287c804 Hey Skamiz! Thank you for the thorough walkthrough of how you make it. Unfortunately I’m not yet quite there with the VoxelManip skills. Would you be willing to share code? Sorry, but sharin...
by Skamiz Kazzarch
Mon Jan 27, 2020 14:20
 
Forum: General Discussion
Topic: Post your Screenshots of Terrain!
Replies: 137
Views: 8205

Re: Making a node grab the texture of a touching node?

I asume that by: 'local register_node()' you meant to call the registration function which would actualy be: ' minetest.register_node()' Function calls can't be local, only ther declarations. Another thing is that you have way to many end statements. Asuming that you don't mean to declare any new fu...
by Skamiz Kazzarch
Sat Jan 25, 2020 09:46
 
Forum: Modding Discussion
Topic: Making a node grab the texture of a touching node?
Replies: 14
Views: 333

Re: Making a node grab the texture of a touching node?

hmmm, thats unfortunate. it that something hardcoded into the irrlicht engine, or just minetest? For the answer to that you would need a core dev I fear. For what it's worth I think it would be preferable to have unique stone textures and just accept that the ores won't blend in as well, rather the...
by Skamiz Kazzarch
Wed Jan 15, 2020 16:40
 
Forum: Modding Discussion
Topic: Making a node grab the texture of a touching node?
Replies: 14
Views: 333

Re: Making a node grab the texture of a touching node?

Short answer: NO Long answer: Minetest is rather obstuse in that every node gets one look and you can't change it at runtime. There are several issues requesting the feature that you need on github, but no implementation as far as I know. The closest you can get to it for now is something called Har...
by Skamiz Kazzarch
Tue Jan 14, 2020 17:31
 
Forum: Modding Discussion
Topic: Making a node grab the texture of a touching node?
Replies: 14
Views: 333

Re: Is it possible to get callbacks from a specific node?

There is also the option to use global step to iterate through the players, find out what they are standing in and then apply an apropriate physics override. Keep a table of thier current state, so you only have to do something when that state changes. Several mods use this aproach without issue. Se...
by Skamiz Kazzarch
Tue Jan 14, 2020 17:05
 
Forum: Modding Discussion
Topic: Is it possible to get callbacks from a specific node?
Replies: 5
Views: 184

Re: [Mod] Enchantments [enchantment]

Attached is a fixed version of the mod, which fixes all unintentional node duplications. Other changes are: 1) All enchantments now should play nice together, instead of overwriting each other. a) The first one evaluated is `delicate`, if it is on the tool, the drop table will be populated with the ...
by Skamiz Kazzarch
Tue Jan 14, 2020 16:50
 
Forum: WIP Mods
Topic: [Mod] Enchantments [enchantment]
Replies: 23
Views: 4886

Re: [Mod] Enchantments [enchantment]

Fixing the issue in a reliable way is turning out to be more involved than I expected, but for now you can do this: In the init file find the lines 245-249, which look like this: if cook == true or delicate == true then if drop ~= minetest.get_node_drops(oldnode.name, name)[1] then inv:remove_item(&...
by Skamiz Kazzarch
Tue Jan 14, 2020 09:48
 
Forum: WIP Mods
Topic: [Mod] Enchantments [enchantment]
Replies: 23
Views: 4886

Re: Is it possible to get callbacks from a specific node?

Many mod developers have known your pain.
Something to keep in mind: If you don't want people to be abe to swim in your thatch you can add the 'disable_jump' group.
by Skamiz Kazzarch
Mon Jan 13, 2020 22:26
 
Forum: Modding Discussion
Topic: Is it possible to get callbacks from a specific node?
Replies: 5
Views: 184

Re: [Mod] Enchantments [enchantment]

I looked into it, there is a fundamental issue with how this mod works in that it doesn't intercept the original drops, it just adds it's own ones as extra. Which of course results in the exess you observe. Give me a day or two and I will try to get out a fixed version. It's kind of funny that you a...
by Skamiz Kazzarch
Mon Jan 13, 2020 15:56
 
Forum: WIP Mods
Topic: [Mod] Enchantments [enchantment]
Replies: 23
Views: 4886

Re: [Mod] Enchantments [enchantment]

In the init file go to line 439 and change this: local luck = math.random(0,1) to this: local luck = 0 Now no newly enchented item should get the luck enchantment. Alternatively you can go to the lines 216 and 169 which look like this: drop_count = math.random(1,4) and change the four to a lower num...
by Skamiz Kazzarch
Sun Jan 12, 2020 09:04
 
Forum: WIP Mods
Topic: [Mod] Enchantments [enchantment]
Replies: 23
Views: 4886

Re: Post your mapgen questions here (modding or engine)

What is causing your issue is this: groups = {"cracky=3, stone=1"}, It should be without the "" groups = {cracky=3, stone=1}, After you fix that for all your nodes the next error you will see is complaining about this: minetest.register_craftitem("chunk_bismuthinite", e...
by Skamiz Kazzarch
Sat Jan 11, 2020 18:03
 
Forum: Modding Discussion
Topic: Post your mapgen questions here (modding or engine)
Replies: 668
Views: 67329

Re: Is it possible to get callbacks from a specific node?

Here is some example code which, after you dig a node, calls the _on_update function defined in the node deffinitions of the surounding nodes, effectively creating a new callback. -- this is just a quick way to get only the 6 directly touching nodes local directions = {} directions.up = {x = 0, y = ...
by Skamiz Kazzarch
Sat Jan 11, 2020 14:06
 
Forum: Modding Discussion
Topic: Is it possible to get callbacks from a specific node?
Replies: 5
Views: 184

Re: Post your Screenshots of Terrain!

https://forum.minetest.net/download/file.php?mode=view&id=20754&sid=4142fc45b16a68cc727489393ff9def5 for each mapchunk choose two random points and connect them with a line for each of the six touching mapchunks generate their random points and connect the closest points, from the current c...
by Skamiz Kazzarch
Tue Dec 10, 2019 22:37
 
Forum: General Discussion
Topic: Post your Screenshots of Terrain!
Replies: 137
Views: 8205

Re: Post your screenshots!

Image
by Skamiz Kazzarch
Sat Dec 07, 2019 15:27
 
Forum: General Discussion
Topic: Post your screenshots!
Replies: 9355
Views: 1156774
Next

Return to advanced search