[WIP] Virus mod
I am creating a mod where you can craft a block that takes over your world, I need some textures, the link to the texture requests is here. I will try to upload screenshots as soon as I have something worth showing.
Questions:
1. How to register a node that is unbreakable?
2. for this code, how to make it so that neigbors are all blocks? Do I just delete that line or do I put something there?
3. How do I make a schematic (see instabuild or something) ? I need this because the only purified block is going to be inside, and i need this building to spawn somewhere random in the currupted region
Corrupted Block for now: (NOT PERMANENT!!!)

Questions:
1. How to register a node that is unbreakable?
2. for this code, how to make it so that neigbors are all blocks? Do I just delete that line or do I put something 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_abm({
nodenames = {"virus:corrupted_block"},
neighbors = {"default:dirt"},
interval = 5,
chance = 1,
action = function(pos, node, active_object_count, active_object_count_wider)
minetest.set_node(pos, {name = "virus:corrupted_block"})
end,
})
3. How do I make a schematic (see instabuild or something) ? I need this because the only purified block is going to be inside, and i need this building to spawn somewhere random in the currupted region
Corrupted Block for now: (NOT PERMANENT!!!)
