[Mod] xtrablocks [0.0.1] [xtrablocks] New File Host

User avatar
GJH105775
Member
Posts: 106
Joined: Thu Sep 27, 2012 16:11
Location: Ohio, USA
Contact:

[Mod] xtrablocks [0.0.1] [xtrablocks] New File Host

by GJH105775 » Post

This is my mod named "xtrablocks"
Post any comments good or bad. I am open to ideas.

Here is the newest Init.Lua. It fixes items not showing in inventory
Direct: http://dc737.4shared.com/download/ENDkq ... &lgfp=2000

Indirect: http://www.4shared.com/file/ENDkqFDJba/init__1_.html

Code if you don't want to download

Code: Select all

    --fancy wood
    minetest.register_node("xtrablocks:fancywood", {
        tile_images = {"xtrablocks_fancywood.png"},
        groups={snappy=2,choppy=3,oddly_breakable_by_hand=2,flammable=3},
       description = "FancyWood"   
    })
minetest.register_craft({
    output = '"xtrablocks:fancywood" 5',
    recipe = {
        {'default:wood', 'default:wood', 'default:wood'},
        {'default:wood', 'default:wood', 'default:wood'},
        {'', '', ''},
    }
})

--fancy tile cobble,stone
minetest.register_node("xtrablocks:fancytile", {
    tile_images = {"xtrablocks_fancytile.png"},
    groups={cracky=3},
	description = "FancyCobble"  
})
minetest.register_craft({
    output = '"xtrablocks:fancytile" 2',
    recipe = {
        {'default:cobble', 'default:stone', ''},
        {'default:stone', 'default:cobble', ''},
        {'', '', ''},
    }
})


--fancy marble
minetest.register_node("xtrablocks:fancymarble", {
    tile_images = {"xtrablocks_fancymarble.png"},
    groups={cracky=1},
	description = "FancyMarble"   
})

minetest.register_craft({
    type = "cooking",
    output = "xtrablocks:fancymarble",
    recipe = "default:stone",
})


--fancy pure white marble
minetest.register_node("xtrablocks:fancypurewhitemarble", {
    tile_images = {"xtrablocks_fancypurewhitemarble.png"},
    groups={cracky=1},
	description = "FancyPureWhite"   
})

--fancy green marble
minetest.register_node("xtrablocks:fancygreenmarble", {
    tile_images = {"xtrablocks_fancygreenmarble.png"},
    groups={cracky=1},
	description = "FancyGreen"   
})


--fancy black marble
minetest.register_node("xtrablocks:fancyblackmarble", {
    tile_images = {"xtrablocks_fancyblackmarble.png"},
    groups={cracky=1},
	description = "FancyBlack"   
})

--fancy red marble
minetest.register_node("xtrablocks:fancyredmarble", {
    tile_images = {"xtrablocks_fancyredmarble.png"},
    groups={cracky=1},
	description = "FancyRed"   
})
--generation

local function generate_ore(name, wherein, minp, maxp, seed, chunks_per_volume, ore_per_chunk, height_min, height_max)
	if maxp.y < height_min or minp.y > height_max then
		return
	end
	local y_min = math.max(minp.y, height_min)
	local y_max = math.min(maxp.y, height_max)
	local volume = (maxp.x-minp.x+1)*(y_max-y_min+1)*(maxp.z-minp.z+1)
	local pr = PseudoRandom(seed)
	local num_chunks = math.floor(chunks_per_volume * volume)
	local chunk_size = 3
	if ore_per_chunk <= 4 then
		chunk_size = 2
	end
	local inverse_chance = math.floor(chunk_size*chunk_size*chunk_size / ore_per_chunk)
	--print("generate_ore num_chunks: "..dump(num_chunks))
	for i=1,num_chunks do
	if (y_max-chunk_size+1 <= y_min) then return end
		local y0 = pr:next(y_min, y_max-chunk_size+1)
		if y0 >= height_min and y0 <= height_max then
			local x0 = pr:next(minp.x, maxp.x-chunk_size+1)
			local z0 = pr:next(minp.z, maxp.z-chunk_size+1)
			local p0 = {x=x0, y=y0, z=z0}
			for x1=0,chunk_size-1 do
			for y1=0,chunk_size-1 do
			for z1=0,chunk_size-1 do
				if pr:next(1,inverse_chance) == 1 then
					local x2 = x0+x1
					local y2 = y0+y1
					local z2 = z0+z1
					local p2 = {x=x2, y=y2, z=z2}
					if minetest.env:get_node(p2).name == wherein then
						minetest.env:set_node(p2, {name=name})
					end
				end
			end
			end
			end
		end
	end
	print("generate_ore done")
end

minetest.register_on_generated(function(minp, maxp, seed)
generate_ore("xtrablocks:fancymarble", "default:stone", minp, maxp, seed+16,   1/11/11/11,    8, -31000,  64)
generate_ore("xtrablocks:fancypurewhitemarble", "default:stone", minp, maxp, seed+17,   1/8/8/8,    2, -31000,  8)
generate_ore("xtrablocks:fancygreenmarble", "default:stone", minp, maxp, seed+18,   1/9/9/9,    5, -31005,  2)
generate_ore("xtrablocks:fancyredmarble", "default:stone", minp, maxp, seed+16,   1/12/12/12,    9, -31000,  64)
generate_ore("xtrablocks:fancyblackmarble", "default:stone", minp, maxp, seed+17,   1/15/15/15,    2, -31000,  8)
--generate_ore("xtrablocks:fancygreenmarble", "default:stone", minp, maxp, seed+18,   1/9/9/9,    5, -31005,  2)
--generate_ore("moreores:xtrablocks:fancyblackmarble", "default:stone", minp, maxp, seed+18,   1/10/10/10,    5, -31000,  2)
--generate_ore("moreores:xtrablocks_fancyredmarble", "default:stone", minp, maxp, seed+19,   1/11/11/11,    5, -31000,  -64)
--generate_ore(":mineral_mithril", "default:stone", minp, maxp, seed+20,   1/6/6/6,    1, -31000,  -512)
end)


Plan to add
-crystals
-Furnace like crafting device
-more woods
-more tiles
Release: 0.0.1
screenshot
All of theese spawned naturally I used nuke from the urainum mod and made a big sphere
http://dc414.2shared.com/download/ZtuC5 ... 0-9455eba0
Image
Image

Download
2 Shared - Click smaller download button
http://www.2shared.com/file/vjpYSQOQ/xtrablockstar.html
or direct link
http://dc589.2shared.com/download/vjpYS ... 3-8f1aac84
4 Shared - Recommended
Tar.gz
http://www.4shared.com/archive/yT6L7kiq ... kstar.html
or .zip
http://www.4shared.com/zip/UITyXQ3Hce/xtrablocks.html
has mutiple marble stone, tile and wood
Glitches include xtrablocks:fancyredmarble and xtrablocks:fancyblackmarble do not spawn
*fixed red marble glitch, now red marble spawns
*fixed black marble glitch, now black marble spawns


Crafting for fancy (cobble, stone tile)
{'default:cobble', 'default:stone', blank''},
{'default:stone', 'default:cobble',blank ''},
{'blank, ''blank, 'blank''},

Crafting for fancy wood
{'default:wood', 'default:wood', 'default:wood'},
{'default:wood', 'default:wood', 'default:wood'},
{''blank, ''blank, ''blank},

License WTFPL [url]http://sam.zoy.org/wtfpl/[/url]

Known bugs

-
balthazariv wrote:Hello,

I am in creative mode and I have no objects that appear in my inventory.
Any suggestions are very welcomed.
balthazariv wrote:
You have :

Code: Select all

--fancy wood
minetest.register_node("xtrablocks:fancywood", {
    tile_images = {"xtrablocks_fancywood.png"},
    groups={snappy=2,choppy=3,oddly_breakable_by_hand=2,flammable=3},
   description = "FancyWood"
    }
})
You need :

Code: Select all

--fancy wood
minetest.register_node("xtrablocks:fancywood", {
    tile_images = {"xtrablocks_fancywood.png"},
    groups={snappy=2,choppy=3,oddly_breakable_by_hand=2,flammable=3},
   description = "FancyWood"    
})



Image
Last edited by GJH105775 on Sun Oct 25, 2015 18:17, edited 11 times in total.
Check out my mod xtrablocks, has some different types of marble that you can build with or mine at different depths

I am not here regularly as I just kind of pop in and out. If you want to find me I'll be on quadcopterforum.com helping with multirotor builds and spending other's money haha.

http://i10.photobucket.com/albums/a119/ ... hicons.jpg

User avatar
InfinityProject
Member
Posts: 1009
Joined: Sat Mar 17, 2012 00:52
Location: World of Infinity, US

by InfinityProject » Post

Can you please put it on another download site such as http://ompldr.org/ or http://www.mediafire.com/ ? I don't want to have to create an account just to download it.

User avatar
GJH105775
Member
Posts: 106
Joined: Thu Sep 27, 2012 16:11
Location: Ohio, USA
Contact:

by GJH105775 » Post

Ok, I will do that.
Last edited by GJH105775 on Mon Oct 01, 2012 12:04, edited 1 time in total.
Check out my mod xtrablocks, has some different types of marble that you can build with or mine at different depths

I am not here regularly as I just kind of pop in and out. If you want to find me I'll be on quadcopterforum.com helping with multirotor builds and spending other's money haha.

http://i10.photobucket.com/albums/a119/ ... hicons.jpg

User avatar
GJH105775
Member
Posts: 106
Joined: Thu Sep 27, 2012 16:11
Location: Ohio, USA
Contact:

by GJH105775 » Post

I donot care too much for either of those sites know any others?
Last edited by GJH105775 on Mon Oct 01, 2012 12:45, edited 1 time in total.
Check out my mod xtrablocks, has some different types of marble that you can build with or mine at different depths

I am not here regularly as I just kind of pop in and out. If you want to find me I'll be on quadcopterforum.com helping with multirotor builds and spending other's money haha.

http://i10.photobucket.com/albums/a119/ ... hicons.jpg

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post

GJH105775 wrote:I donot care too mmuch for those two sites know any others?
You could try dropbox. It would be a waste not to publish this mod to a bigger group of players, because your marble textures (64x64) look really great!

The red and black marble didn't spawn naturally. Maybe because of their seed.

Changing the seed of the red marble to +19 made it generate too.

Changing the seed of black marble to +20 or +350 still didn't make it generate. I don't know why, because I didn't look up somewhere how the seed thing is supposed to work. Calinou's Moreores uses a function "get_next_seed()". That mod works.

(I used free + fast move and a cheap x-ray texture to look for it in a big area)

User avatar
GJH105775
Member
Posts: 106
Joined: Thu Sep 27, 2012 16:11
Location: Ohio, USA
Contact:

by GJH105775 » Post

I was going to use dropbox but it needs to be downloaded and I am on a linux base. I want a site that is quick to upload a file, free, and easy for people to download a file. Got any ideas?
Last edited by GJH105775 on Mon Oct 01, 2012 12:58, edited 1 time in total.
Check out my mod xtrablocks, has some different types of marble that you can build with or mine at different depths

I am not here regularly as I just kind of pop in and out. If you want to find me I'll be on quadcopterforum.com helping with multirotor builds and spending other's money haha.

http://i10.photobucket.com/albums/a119/ ... hicons.jpg

User avatar
GJH105775
Member
Posts: 106
Joined: Thu Sep 27, 2012 16:11
Location: Ohio, USA
Contact:

by GJH105775 » Post

Topywo wrote:
GJH105775 wrote:I donot care too mmuch for those two sites know any others?
You could try dropbox. It would be a waste not to publish this mod to a bigger group of players, because your marble textures (64x64) look really great!

The red and black marble didn't spawn naturally. Maybe because of their seed.

Changing the seed of the red marble to +19 made it generate too.

Changing the seed of black marble to +20 or +350 still didn't make it generate. I don't know why, because I didn't look up somewhere how the seed thing is supposed to work. Calinou's Moreores uses a function "get_next_seed()". That mod works.

(I used free + fast move and a cheap x-ray texture to look for it in a big area)

Thanks for helping on the bug.
Last edited by GJH105775 on Mon Oct 01, 2012 13:29, edited 1 time in total.
Check out my mod xtrablocks, has some different types of marble that you can build with or mine at different depths

I am not here regularly as I just kind of pop in and out. If you want to find me I'll be on quadcopterforum.com helping with multirotor builds and spending other's money haha.

http://i10.photobucket.com/albums/a119/ ... hicons.jpg

User avatar
GJH105775
Member
Posts: 106
Joined: Thu Sep 27, 2012 16:11
Location: Ohio, USA
Contact:

by GJH105775 » Post

I found a site to use that would work.
Check out my mod xtrablocks, has some different types of marble that you can build with or mine at different depths

I am not here regularly as I just kind of pop in and out. If you want to find me I'll be on quadcopterforum.com helping with multirotor builds and spending other's money haha.

http://i10.photobucket.com/albums/a119/ ... hicons.jpg

User avatar
GJH105775
Member
Posts: 106
Joined: Thu Sep 27, 2012 16:11
Location: Ohio, USA
Contact:

by GJH105775 » Post

I set black marble seed to 99 and I got a few spawns per every few chunks!!
Last edited by GJH105775 on Mon Oct 01, 2012 13:46, edited 1 time in total.
Check out my mod xtrablocks, has some different types of marble that you can build with or mine at different depths

I am not here regularly as I just kind of pop in and out. If you want to find me I'll be on quadcopterforum.com helping with multirotor builds and spending other's money haha.

http://i10.photobucket.com/albums/a119/ ... hicons.jpg

cornernote
Member
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Post

GJH105775 wrote:I was going to use dropbox but it needs to be downloaded and I am on a linux base. I want a site that is quick to upload a file, free, and easy for people to download a file. Got any ideas?
Github

User avatar
GJH105775
Member
Posts: 106
Joined: Thu Sep 27, 2012 16:11
Location: Ohio, USA
Contact:

by GJH105775 » Post

cornernote wrote:
GJH105775 wrote:I was going to use dropbox but it needs to be downloaded and I am on a linux base. I want a site that is quick to upload a file, free, and easy for people to download a file. Got any ideas?
Github
I have a site that is perfect now but thanks anyways.
Check out my mod xtrablocks, has some different types of marble that you can build with or mine at different depths

I am not here regularly as I just kind of pop in and out. If you want to find me I'll be on quadcopterforum.com helping with multirotor builds and spending other's money haha.

http://i10.photobucket.com/albums/a119/ ... hicons.jpg

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

by rubenwardy » Post

The screenshot does not work, because it links to a webpage, not an image

Use this link, it is a direct link to the image: http://dc414.2shared.com/download/ZtuC5 ... 1-72ceef5c
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
GJH105775
Member
Posts: 106
Joined: Thu Sep 27, 2012 16:11
Location: Ohio, USA
Contact:

by GJH105775 » Post

rubenwardy wrote:The screenshot does not work, because it links to a webpage, not an image

Use this link, it is a direct link to the image: http://dc414.2shared.com/download/ZtuC5 ... 1-72ceef5c

Ok thanks it was working, but must have been changed by the file sharing site.
Check out my mod xtrablocks, has some different types of marble that you can build with or mine at different depths

I am not here regularly as I just kind of pop in and out. If you want to find me I'll be on quadcopterforum.com helping with multirotor builds and spending other's money haha.

http://i10.photobucket.com/albums/a119/ ... hicons.jpg

User avatar
GJH105775
Member
Posts: 106
Joined: Thu Sep 27, 2012 16:11
Location: Ohio, USA
Contact:

by GJH105775 » Post

I need some suggestions! :)
Check out my mod xtrablocks, has some different types of marble that you can build with or mine at different depths

I am not here regularly as I just kind of pop in and out. If you want to find me I'll be on quadcopterforum.com helping with multirotor builds and spending other's money haha.

http://i10.photobucket.com/albums/a119/ ... hicons.jpg

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post

GJH105775 wrote:I need some suggestions! :)
Pillars made out of marble would look really nice. Small pillars (1 block to make 1 layer) and big pillars (4 blocks to make 1 layer). I guess you'll need to use nodebox for it.

User avatar
GJH105775
Member
Posts: 106
Joined: Thu Sep 27, 2012 16:11
Location: Ohio, USA
Contact:

by GJH105775 » Post

Topywo wrote:
GJH105775 wrote:I need some suggestions! :)
Pillars made out of marble would look really nice. Small pillars (1 block to make 1 layer) and big pillars (4 blocks to make 1 layer). I guess you'll need to use nodebox for it.
Nice idea.
Check out my mod xtrablocks, has some different types of marble that you can build with or mine at different depths

I am not here regularly as I just kind of pop in and out. If you want to find me I'll be on quadcopterforum.com helping with multirotor builds and spending other's money haha.

http://i10.photobucket.com/albums/a119/ ... hicons.jpg

User avatar
Krock
Developer
Posts: 4649
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: [Mod] xtrablocks [0.0.1] [Marble_Blocks]

by Krock » Post

Please add more stones and use an other file hoster for this. I would prefer mediacrush, mediafire and dropbox.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
balthazariv
Member
Posts: 214
Joined: Mon Apr 07, 2014 15:48
Contact:

Re: [Mod] xtrablocks [0.0.1] [Marble_Blocks]

by balthazariv » Post

Hello,

I am in creative mode and I have no objects that appear in my inventory.

User avatar
GJH105775
Member
Posts: 106
Joined: Thu Sep 27, 2012 16:11
Location: Ohio, USA
Contact:

Re: [Mod] xtrablocks [0.0.1] [Marble_Blocks]

by GJH105775 » Post

Ok, will try to transfer to another fileshareing site.
Won't allow on mediacrush.

-----------------EDIT-----------------
Added to 4shared, in both tar.gz and .zip .

User avatar
GJH105775
Member
Posts: 106
Joined: Thu Sep 27, 2012 16:11
Location: Ohio, USA
Contact:

Re: [Mod] xtrablocks [0.0.1] [Marble_Blocks]

by GJH105775 » Post

balthazariv wrote:Hello,

I am in creative mode and I have no objects that appear in my inventory.
What do I have to do to fix this?

User avatar
balthazariv
Member
Posts: 214
Joined: Mon Apr 07, 2014 15:48
Contact:

Re: [Mod] xtrablocks [0.0.1] [Marble_Blocks] New File Host

by balthazariv » Post

I know nothing in programming but I think you should be able to find a solution in this article http://dev.minetest.net/minetest.register_node

But people should certainly be able to help you.

Thanks

User avatar
GJH105775
Member
Posts: 106
Joined: Thu Sep 27, 2012 16:11
Location: Ohio, USA
Contact:

Re: [Mod] xtrablocks [0.0.1] [Marble_Blocks] New File Host

by GJH105775 » Post

Been too long scince I have messed with minetest mods. I forgot the different variable and class names.

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

Re: [Mod] xtrablocks [0.0.1] [Marble_Blocks]

by Topywo » Post

GJH105775 wrote:
balthazariv wrote:Hello,

I am in creative mode and I have no objects that appear in my inventory.
What do I have to do to fix this?
Add this line of code under each minetest.register_node:
description = "Name you want to give the node in the inventory",

User avatar
GJH105775
Member
Posts: 106
Joined: Thu Sep 27, 2012 16:11
Location: Ohio, USA
Contact:

Re: [Mod] xtrablocks [0.0.1] [Marble_Blocks] New File Host

by GJH105775 » Post

I am not near any of my Linux PCs and cannot test it. If someone could test by replacing your init.lua with this http://www.4shared.com/file/50JIkDNhba/init.html

Then go to creative mode and see if you have the items in your inventory.

User avatar
balthazariv
Member
Posts: 214
Joined: Mon Apr 07, 2014 15:48
Contact:

Re: [Mod] xtrablocks [0.0.1] [Marble_Blocks] New File Host

by balthazariv » Post

http://www.4shared.com requires registration to download.
I don't want to register for having to download a single file. Why no you not use simply Github to post your mod ?
Or insert you code in forum between code tags Thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 13 guests