sfan5 wrote:Iron is very rare <- A Bug
If you search for a long time you can find it
Death Dealer wrote:The bug no longer exists with this FIX dudeXD people.....
/*
Add iron
*/
u16 iron_amount = 8;
randomproof wrote: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
/*
Add iron
*/
u16 iron_amount = 8;
Here is the code in server.cpp (search for 'Add iron'). Just change the 8 to a bigger number and start a new world.
thj01 wrote:Sorry - new guy here.
Where is server.cpp located?
I'm using Ubuntu 11.10
Is the same hack poissible for MESE?
thj01 wrote:@Death Dealer
Sorry - used to Ubuntu forum, where beginner questions (even stupid ones) are welcome and accepted. So i'm sorry that i have had this bad habit since 2006, where i startede helping out on Denmark LOCO teams page.
If you noticed - my question were about finding the server.cpp file, so i could hack it - and in the same time make mese more common in new worlds by default.
I havn't seen any guides in the wiki that explains how to find/hack the server.cpp file - so i tried asking all the experienced users. I didn't ask how to apply cheat codes directly (actually knew that).
Sorry for having this way of thinking.
So if *facepalms* is the standard answer to new people - then the best of luck with it.
thj01 wrote:@jordan4ibanez
Thanks for the answer. But i'm still having trouble locating the file. - or is it a file that i myself have to make.
I've located the program files to /usr/share/minetest, but there aren't any *.cpp files anywhere. And neither in the hidden /home/*user*/.mintetest directory.
Do i have to get the sourcecode to do it - or is there something i just have missed?
btw. as a 41 year old man i've been around the internet for a lot of years, so i have experiencenced worse than this - but i just had to retort gg
AND btw - running daily builds from the developer ppa
jordan4ibanez wrote:thj01 wrote:@Death Dealer
Sorry - used to Ubuntu forum, where beginner questions (even stupid ones) are welcome and accepted. So i'm sorry that i have had this bad habit since 2006, where i startede helping out on Denmark LOCO teams page.
If you noticed - my question were about finding the server.cpp file, so i could hack it - and in the same time make mese more common in new worlds by default.
I havn't seen any guides in the wiki that explains how to find/hack the server.cpp file - so i tried asking all the experienced users. I didn't ask how to apply cheat codes directly (actually knew that).
Sorry for having this way of thinking.
So if *facepalms* is the standard answer to new people - then the best of luck with it.
hello, i am sorry for DD's rudeness, you will find server.cpp in minetest-src-server.cpp
thj01 wrote:Sorry - new guy here.
Where is server.cpp located?
I'm using Ubuntu 11.10
Is the same hack poissible for MESE?
Death Dealer wrote:jordan4ibanez wrote:thj01 wrote:@Death Dealer
Sorry - used to Ubuntu forum, where beginner questions (even stupid ones) are welcome and accepted. So i'm sorry that i have had this bad habit since 2006, where i startede helping out on Denmark LOCO teams page.
If you noticed - my question were about finding the server.cpp file, so i could hack it - and in the same time make mese more common in new worlds by default.
I havn't seen any guides in the wiki that explains how to find/hack the server.cpp file - so i tried asking all the experienced users. I didn't ask how to apply cheat codes directly (actually knew that).
Sorry for having this way of thinking.
So if *facepalms* is the standard answer to new people - then the best of luck with it.
hello, i am sorry for DD's rudeness, you will find server.cpp in minetest-src-server.cpp
F**k you! hows that for rudeness. at least i dont spam the forum with CRAP.
Jordach wrote:Death Dealer wrote:jordan4ibanez wrote:hello, i am sorry for DD's rudeness, you will find server.cpp in minetest-src-server.cpp
F**k you! hows that for rudeness. at least i dont spam the forum with CRAP.
Hey, sisters! CAN YOU BOTH STOP FIGTHING. IT'S NOW ANNOYING, SFAN5 MAKES THIS ALL THE TIME ( \o/ ) JUST LEAVE IT NOW. Jeez. Play spleef or something.
minetest.register_on_generated(
function(minp, maxp)
max_add = 200
for x = minp.x,maxp.x do
for y = minp.y,maxp.y do
for z = minp.z,maxp.z do
pos = {x=x, y=y, z=z}
if minetest.env:get_node(pos).name == "default:stone_with_iron" then
max_check = 5
while max_check do
pos_i = {x=pos.x + math.random(-1, 1), y=pos.y + math.random(-1, 1), z=pos.z + math.random(-1, 1)}
if minetest.env:get_node(pos_i).name == "default:stone" then
minetest.env:set_node(pos_i, {name="default:stone_with_iron"})
max_add = max_add - 1
break
end
max_check = max_check - 1
end
end
if max_add == 0 then
return
end
end
end
end
end)
Users browsing this forum: No registered users and 12 guests