Register for your free account! | Forgot your password?

Go Back   elitepvpers > Other Online Games > Minecraft > Minecraft Guides & Strategies
You last visited: Today at 19:13

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Minecraft Mods erstellen [ModLoader]

Discussion on Minecraft Mods erstellen [ModLoader] within the Minecraft Guides & Strategies forum part of the Minecraft category.

View Poll Results: Ist diese Thema Hilfreich ?
Ja 247 89.17%
Nein 30 10.83%
Voters: 277. You may not vote on this poll

Reply
 
Old 07/09/2012, 18:42   #436
 
the_cake's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 454
Received Thanks: 345
Quote:
Originally Posted by morice1999 View Post
Wann kommt nun endlich das neue? Du hast geschrieben "morgen", doch das war vor einer Woche.
War alles auf meinen MacBook hab aber heute die nachricht bekommen das mein MainBoard kapput ist ich werde es schon noch einfügen keine angst.
the_cake is offline  
Old 07/09/2012, 20:16   #437
 
elite*gold: 0
Join Date: Apr 2012
Posts: 23
Received Thanks: 2
achso okay, naja bin halt recht ungeduldig ^^
morice1999 is offline  
Old 07/09/2012, 21:13   #438
 
elite*gold: 0
Join Date: Apr 2012
Posts: 22
Received Thanks: 0
Hallo mal wieder!
Und wie immer hab ich eine Frage die lautet
Iche habe einen Tempel gebaut den dann mit mcedit kopiert und gespeichert danach mit diesem ...tojava
umgewandelt nun das Problem ich finde den Tempel nicht such nun schon 1.30 h und hab ihn nicht entdeckt.
Hier die .java datein:
mod_modname:
/*
this is a default mod_ file with structure generation



If you're going to copy the generateSurface method from this file, make sure to not forget the 'import java.util.Random;' (line 15)




Thanks for using my tool.
*/

package net.minecraft.src;
import java.util.Random;

public class mod_modname extends BaseMod{

public void load()
{

}

public void generateSurface(World world, Random rand, int y, int z)
{
for(int k = 0; k < 100; k++)
{
int RandPosX = y + rand.nextInt(16);
int RandPosY = rand.nextInt(128);
int RandPosZ = z + rand.nextInt(16);
(new WorldGenStructure()).generate(world, rand, RandPosX, RandPosY, RandPosZ);
}
}
public String getVersion()
{
return "1.2.5";
}
}


Hier WorldGenStructure:

/*
===== MADE BY HAXMAN2'S .SCHEMATIC TO JAVA CONVERTING TOOLv0.2 ====
There is a tutorial on the forum thread on how to use this tool.
NOTE: The Block limit is 19,500 at the moment, meaning if your file is bigger then 20,000 lines, it MIGHT crash...
*/
package net.minecraft.src;
import java.util.Random;
public class WorldGenStructure extends WorldGenerator
{
public WorldGenStructure()
{
}
public boolean generate(World world, Random rand, int i, int j, int k)
{
int bID = 2; /*2 is the block id for grass, so the structure going to spawn on grass*/
if(world.getBlockId(i, j, k) != bID || world.getBlockId(i, j + 1, k) != 0 || world.getBlockId(i + 7, j, k) != bID || world.getBlockId(i + 7, j, k + 7) != bID || world.getBlockId(i, j, k + 7) != bID || world.getBlockId(i + 7, j + 1, k) != 0 || world.getBlockId(i + 7, j + 1, k + 7) != 0 || world.getBlockId(i, j + 1, k + 7) != 0)
{
return false;
}

return true;
}
} /*=====End of Code=====*/

Könnt ihr mir da irgendwie helfen?

mfg
jonmi
JONMI2000 is offline  
Old 07/09/2012, 22:31   #439
 
the_cake's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 454
Received Thanks: 345
Quote:
Originally Posted by JONMI2000 View Post
Hallo mal wieder!
Und wie immer hab ich eine Frage die lautet
Iche habe einen Tempel gebaut den dann mit mcedit kopiert und gespeichert danach mit diesem ...tojava
umgewandelt nun das Problem ich finde den Tempel nicht such nun schon 1.30 h und hab ihn nicht entdeckt.
Hier die .java datein:
mod_modname:
/*
this is a default mod_ file with structure generation



If you're going to copy the generateSurface method from this file, make sure to not forget the 'import java.util.Random;' (line 15)




Thanks for using my tool.
*/

package net.minecraft.src;
import java.util.Random;

public class mod_modname extends BaseMod{

public void load()
{

}

public void generateSurface(World world, Random rand, int y, int z)
{
for(int k = 0; k < 100; k++)
{
int RandPosX = y + rand.nextInt(16);
int RandPosY = rand.nextInt(128);
int RandPosZ = z + rand.nextInt(16);
(new WorldGenStructure()).generate(world, rand, RandPosX, RandPosY, RandPosZ);
}
}
public String getVersion()
{
return "1.2.5";
}
}


Hier WorldGenStructure:

/*
===== MADE BY HAXMAN2'S .SCHEMATIC TO JAVA CONVERTING TOOLv0.2 ====
There is a tutorial on the forum thread on how to use this tool.
NOTE: The Block limit is 19,500 at the moment, meaning if your file is bigger then 20,000 lines, it MIGHT crash...
*/
package net.minecraft.src;
import java.util.Random;
public class WorldGenStructure extends WorldGenerator
{
public WorldGenStructure()
{
}
public boolean generate(World world, Random rand, int i, int j, int k)
{
int bID = 2; /*2 is the block id for grass, so the structure going to spawn on grass*/
if(world.getBlockId(i, j, k) != bID || world.getBlockId(i, j + 1, k) != 0 || world.getBlockId(i + 7, j, k) != bID || world.getBlockId(i + 7, j, k + 7) != bID || world.getBlockId(i, j, k + 7) != bID || world.getBlockId(i + 7, j + 1, k) != 0 || world.getBlockId(i + 7, j + 1, k + 7) != 0 || world.getBlockId(i, j + 1, k + 7) != 0)
{
return false;
}

return true;
}
} /*=====End of Code=====*/

Könnt ihr mir da irgendwie helfen?

mfg
jonmi
Ist aber ein kleiner WorldGenStructure Code schau dir mal meinen an der zu meinen KLEINEN haus gehört:


Das ist nicht alles oder ??

the_cake is offline  
Old 07/10/2012, 13:20   #440
 
elite*gold: 0
Join Date: Apr 2012
Posts: 22
Received Thanks: 0
Doch das ist alles was da drin ist.
Weiß auch nicht

mal gucken
bb
jonmi

ah ich habs hab was falsch gemacht trotzdem danke!
bb
jonmi
JONMI2000 is offline  
Old 07/10/2012, 14:08   #441
 
elite*gold: 0
Join Date: Jan 2012
Posts: 41
Received Thanks: 1
Habe das selbe Problem ^^ Mein Code fällt etwas größer aus kann es villeicht auch sein dass der Tempel den ich gebaut habe zu groß ist ?

Der Code hat ingesamt 7000 Zeilen und mehr villeicht ist der Tempel ja einfach zu groß
Domekilla12 is offline  
Old 07/10/2012, 16:48   #442
 
the_cake's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 454
Received Thanks: 345
Doch das ist ganz normal kommt immer drauf an wie gros dein Gebäude ist. Um so größer um so mehr zeilen.
the_cake is offline  
Old 07/10/2012, 18:33   #443
 
elite*gold: 0
Join Date: Jan 2012
Posts: 41
Received Thanks: 1
Ja aber es spawnt nicht wie kann ich das fixxen ?
Domekilla12 is offline  
Old 07/10/2012, 23:08   #444
 
elite*gold: 7
Join Date: Oct 2009
Posts: 1,817
Received Thanks: 369
@takenobuokaba: #reported

@DomeKilla: Wie wärs, wenn du uns mal den Code (im Spoiler) zeigst? Nur die Methode generateSurface die ja anscheinend Probleme macht.
cakeflavor is offline  
Old 07/11/2012, 13:51   #445
 
elite*gold: 0
Join Date: Jan 2012
Posts: 41
Received Thanks: 1
Hier der besagte Code

Domekilla12 is offline  
Old 07/11/2012, 19:22   #446
 
elite*gold: 0
Join Date: Apr 2012
Posts: 22
Received Thanks: 0
Hallo!
Ich hab mal die Fragen:
1. Wie geht das anstelle von normalen Ziegel auch brüchige/bemooste Ziegel generiert werden? weil bei mir selbst wenn ich bemooste ziegel baue spawnen normale wie behebe ich das?
2. Wie kann man solche gebäude nur in einen bestimmten biom spawnen lassen?
3. Wann kommt das Tut zum Mob der dort spawnt?
4.Wann kommt das Tut zum eigenen Mob?

Ich weiß es sind sehr viele Fragen aber ich brauche Antworten


Danke im voraus
jonmi

Mir ist grad noch was eingefallen
5. Wie kann man in plazierte Truhen etwas reinmachendas dann mit spawnt?
JONMI2000 is offline  
Old 07/11/2012, 21:10   #447
 
elite*gold: 0
Join Date: Jul 2012
Posts: 19
Received Thanks: 1
the_cake i h bin echt begeistert von deinem toturial hier. es hat mir sehr geholfen.

könnetst du dass vllt alles als youtube tutorial durchzeiehn. ich garantiere dir es würde dich echt famem machen.

Mfg Arkensor
Arkensor is offline  
Old 07/11/2012, 21:21   #448
 
elite*gold: 7
Join Date: Oct 2009
Posts: 1,817
Received Thanks: 369
Ich werde, wenn the_cake nichts dagegen hat, das Tutorial demnächst mal weiterführen, da der Rest Tutorial auf seinem defekten MacBook wohl verloren gegangen sind. Schreibe gleich den Part 'Items'
cakeflavor is offline  
Old 07/12/2012, 11:32   #449
 
elite*gold: 0
Join Date: Apr 2012
Posts: 23
Received Thanks: 2
Und wenn du, the_cake, nichts dagegen hast, kann ich es auch für dich auf Youtube durchziehen. Würde natürlich deinen Thread verlinken und deinen Namen mehrmals erwähnen, aber natürlich nur solange du dass willst
morice1999 is offline  
Old 07/12/2012, 14:02   #450
 
elite*gold: 0
Join Date: Jan 2012
Posts: 41
Received Thanks: 1
Und was ist jetzt mit meinem Code ? Hoffe der wurde nicht übersehen und ich bekomme noch ne Antwort

PS. Ich finde es toll das k0thaufen! Die tutorials weiterführen will
Domekilla12 is offline  
Reply

Tags
java, minecraft, mod, modloader, tutorial


Similar Threads Similar Threads
Minecraft Mods selber erstellen
10/26/2011 - Minecraft - 6 Replies
Vorab: Ich weiß folgende Frage wurde schon oft gestellt: Wie mache ich eigene Mods? Hab keine Java Kentnisse. Bei mir ist der Fall ähnlich ich habe im Internet gesucht und folgendes gefunden: Minecraft Mod Maker - Minecraft Forum Jedoch funktioniert der bei mir nicht :( Meine Frage an euch gibt e einei alternative oder gibt es eine andere Möglichkeit? Es muss nichts großes sein. Ich möchte jedoch nur zb. einen Block erstellen der kwinw besonderen Funktionen hat wie der Grassblock



All times are GMT +1. The time now is 19:16.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.