|
You last visited: Today at 19:13
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% |
07/09/2012, 18:42
|
#436
|
elite*gold: 0
Join Date: Feb 2011
Posts: 454
Received Thanks: 345
|
Quote:
Originally Posted by morice1999
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.
|
|
|
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 ^^
|
|
|
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
|
|
|
07/09/2012, 22:31
|
#439
|
elite*gold: 0
Join Date: Feb 2011
Posts: 454
Received Thanks: 345
|
Quote:
Originally Posted by JONMI2000
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:
Code:
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;
}
world.setBlock(i + 2, j + 0, k + 6, 5);
world.setBlock(i + 2, j + 0, k + 5, 5);
world.setBlock(i + 2, j + 0, k + 4, 35);
world.setBlock(i + 2, j + 0, k + 3, 5);
world.setBlock(i + 2, j + 0, k + 2, 5);
world.setBlock(i + 3, j + 0, k + 6, 5);
world.setBlock(i + 3, j + 0, k + 5, 5);
world.setBlock(i + 3, j + 0, k + 4, 35);
world.setBlock(i + 3, j + 0, k + 3, 5);
world.setBlock(i + 3, j + 0, k + 2, 5);
world.setBlock(i + 4, j + 0, k + 6, 5);
world.setBlock(i + 4, j + 0, k + 5, 5);
world.setBlock(i + 4, j + 0, k + 4, 35);
world.setBlock(i + 4, j + 0, k + 3, 5);
world.setBlock(i + 4, j + 0, k + 2, 5);
world.setBlock(i + 5, j + 0, k + 6, 5);
world.setBlock(i + 5, j + 0, k + 5, 5);
world.setBlock(i + 5, j + 0, k + 4, 35);
world.setBlock(i + 5, j + 0, k + 3, 5);
world.setBlock(i + 5, j + 0, k + 2, 5);
world.setBlock(i + 6, j + 0, k + 4, 35);
world.setBlock(i + 1, j + 1, k + 7, 85);
world.setBlock(i + 1, j + 1, k + 6, 4);
world.setBlock(i + 1, j + 1, k + 5, 4);
world.setBlock(i + 1, j + 1, k + 4, 4);
world.setBlock(i + 1, j + 1, k + 3, 4);
world.setBlock(i + 1, j + 1, k + 2, 4);
world.setBlock(i + 1, j + 1, k + 1, 85);
world.setBlock(i + 2, j + 1, k + 7, 4);
world.setBlock(i + 2, j + 1, k + 6, 47);
world.setBlock(i + 2, j + 1, k + 2, 47);
world.setBlock(i + 2, j + 1, k + 1, 4);
world.setBlock(i + 3, j + 1, k + 7, 4);
world.setBlock(i + 3, j + 1, k + 6, 58);
world.setBlock(i + 3, j + 1, k + 2, 54);
world.setBlock(i + 3, j + 1, k + 1, 4);
world.setBlock(i + 3, j + 1, k + 0, 31);
world.setBlock(i + 4, j + 1, k + 7, 4);
world.setBlock(i + 4, j + 1, k + 6, 61);
world.setBlock(i + 4, j + 1, k + 2, 54);
world.setBlock(i + 4, j + 1, k + 1, 4);
world.setBlock(i + 4, j + 1, k + 0, 37);
world.setBlock(i + 5, j + 1, k + 7, 4);
world.setBlock(i + 5, j + 1, k + 6, 47);
world.setBlock(i + 5, j + 1, k + 2, 47);
world.setBlock(i + 5, j + 1, k + 1, 4);
world.setBlock(i + 6, j + 1, k + 7, 85);
world.setBlock(i + 6, j + 1, k + 6, 4);
world.setBlock(i + 6, j + 1, k + 5, 4);
world.setBlock(i + 6, j + 1, k + 4, 64);
world.setBlock(i + 6, j + 1, k + 3, 4);
world.setBlock(i + 6, j + 1, k + 2, 4);
world.setBlock(i + 6, j + 1, k + 1, 85);
world.setBlock(i + 6, j + 1, k + 0, 31);
world.setBlock(i + 1, j + 2, k + 7, 85);
world.setBlock(i + 1, j + 2, k + 6, 4);
world.setBlock(i + 1, j + 2, k + 5, 102);
world.setBlock(i + 1, j + 2, k + 4, 102);
world.setBlock(i + 1, j + 2, k + 3, 102);
world.setBlock(i + 1, j + 2, k + 2, 4);
world.setBlock(i + 1, j + 2, k + 1, 85);
world.setBlock(i + 2, j + 2, k + 7, 4);
world.setBlock(i + 2, j + 2, k + 1, 4);
world.setBlock(i + 3, j + 2, k + 7, 102);
world.setBlock(i + 3, j + 2, k + 1, 102);
world.setBlock(i + 4, j + 2, k + 7, 102);
world.setBlock(i + 4, j + 2, k + 1, 102);
world.setBlock(i + 5, j + 2, k + 7, 4);
world.setBlock(i + 5, j + 2, k + 1, 4);
world.setBlock(i + 6, j + 2, k + 7, 85);
world.setBlock(i + 6, j + 2, k + 6, 4);
world.setBlock(i + 6, j + 2, k + 5, 5);
world.setBlock(i + 6, j + 2, k + 4, 64);
world.setBlock(i + 6, j + 2, k + 3, 5);
world.setBlock(i + 6, j + 2, k + 2, 4);
world.setBlock(i + 6, j + 2, k + 1, 85);
world.setBlock(i + 7, j + 2, k + 5, 50);
world.setBlock(i + 7, j + 2, k + 3, 50);
world.setBlock(i + 1, j + 3, k + 7, 85);
world.setBlock(i + 1, j + 3, k + 6, 4);
world.setBlock(i + 1, j + 3, k + 5, 102);
world.setBlock(i + 1, j + 3, k + 4, 102);
world.setBlock(i + 1, j + 3, k + 3, 102);
world.setBlock(i + 1, j + 3, k + 2, 4);
world.setBlock(i + 1, j + 3, k + 1, 85);
world.setBlock(i + 2, j + 3, k + 7, 4);
world.setBlock(i + 2, j + 3, k + 1, 4);
world.setBlock(i + 3, j + 3, k + 7, 102);
world.setBlock(i + 3, j + 3, k + 1, 102);
world.setBlock(i + 4, j + 3, k + 7, 102);
world.setBlock(i + 4, j + 3, k + 1, 102);
world.setBlock(i + 5, j + 3, k + 7, 4);
world.setBlock(i + 5, j + 3, k + 4, 50);
world.setBlock(i + 5, j + 3, k + 1, 4);
world.setBlock(i + 6, j + 3, k + 7, 85);
world.setBlock(i + 6, j + 3, k + 6, 4);
world.setBlock(i + 6, j + 3, k + 5, 5);
world.setBlock(i + 6, j + 3, k + 4, 5);
world.setBlock(i + 6, j + 3, k + 3, 5);
world.setBlock(i + 6, j + 3, k + 2, 4);
world.setBlock(i + 6, j + 3, k + 1, 85);
world.setBlock(i + 0, j + 4, k + 7, 44);
world.setBlock(i + 0, j + 4, k + 6, 44);
world.setBlock(i + 0, j + 4, k + 5, 44);
world.setBlock(i + 0, j + 4, k + 4, 44);
world.setBlock(i + 0, j + 4, k + 3, 44);
world.setBlock(i + 0, j + 4, k + 2, 44);
world.setBlock(i + 0, j + 4, k + 1, 44);
world.setBlock(i + 1, j + 4, k + 8, 44);
world.setBlock(i + 1, j + 4, k + 7, 5);
world.setBlock(i + 1, j + 4, k + 6, 4);
world.setBlock(i + 1, j + 4, k + 5, 4);
world.setBlock(i + 1, j + 4, k + 4, 4);
world.setBlock(i + 1, j + 4, k + 3, 4);
world.setBlock(i + 1, j + 4, k + 2, 4);
world.setBlock(i + 1, j + 4, k + 1, 5);
world.setBlock(i + 1, j + 4, k + 0, 44);
world.setBlock(i + 2, j + 4, k + 8, 44);
world.setBlock(i + 2, j + 4, k + 7, 4);
world.setBlock(i + 2, j + 4, k + 1, 4);
world.setBlock(i + 2, j + 4, k + 0, 44);
world.setBlock(i + 3, j + 4, k + 8, 44);
world.setBlock(i + 3, j + 4, k + 7, 4);
world.setBlock(i + 3, j + 4, k + 1, 4);
world.setBlock(i + 3, j + 4, k + 0, 44);
world.setBlock(i + 4, j + 4, k + 8, 44);
world.setBlock(i + 4, j + 4, k + 7, 4);
world.setBlock(i + 4, j + 4, k + 1, 4);
world.setBlock(i + 4, j + 4, k + 0, 44);
world.setBlock(i + 5, j + 4, k + 8, 44);
world.setBlock(i + 5, j + 4, k + 7, 4);
world.setBlock(i + 5, j + 4, k + 1, 4);
world.setBlock(i + 5, j + 4, k + 0, 44);
world.setBlock(i + 6, j + 4, k + 8, 44);
world.setBlock(i + 6, j + 4, k + 7, 5);
world.setBlock(i + 6, j + 4, k + 6, 4);
world.setBlock(i + 6, j + 4, k + 5, 4);
world.setBlock(i + 6, j + 4, k + 4, 4);
world.setBlock(i + 6, j + 4, k + 3, 4);
world.setBlock(i + 6, j + 4, k + 2, 4);
world.setBlock(i + 6, j + 4, k + 1, 5);
world.setBlock(i + 6, j + 4, k + 0, 44);
world.setBlock(i + 7, j + 4, k + 7, 44);
world.setBlock(i + 7, j + 4, k + 6, 44);
world.setBlock(i + 7, j + 4, k + 5, 44);
world.setBlock(i + 7, j + 4, k + 4, 44);
world.setBlock(i + 7, j + 4, k + 3, 44);
world.setBlock(i + 7, j + 4, k + 2, 44);
world.setBlock(i + 7, j + 4, k + 1, 44);
world.setBlock(i + 2, j + 5, k + 6, 44);
world.setBlock(i + 2, j + 5, k + 5, 44);
world.setBlock(i + 2, j + 5, k + 4, 44);
world.setBlock(i + 2, j + 5, k + 3, 44);
world.setBlock(i + 2, j + 5, k + 2, 44);
world.setBlock(i + 3, j + 5, k + 6, 44);
world.setBlock(i + 3, j + 5, k + 5, 4);
world.setBlock(i + 3, j + 5, k + 4, 4);
world.setBlock(i + 3, j + 5, k + 3, 4);
world.setBlock(i + 3, j + 5, k + 2, 44);
world.setBlock(i + 4, j + 5, k + 6, 44);
world.setBlock(i + 4, j + 5, k + 5, 4);
world.setBlock(i + 4, j + 5, k + 4, 4);
world.setBlock(i + 4, j + 5, k + 3, 4);
world.setBlock(i + 4, j + 5, k + 2, 44);
world.setBlock(i + 5, j + 5, k + 6, 44);
world.setBlock(i + 5, j + 5, k + 5, 44);
world.setBlock(i + 5, j + 5, k + 4, 44);
world.setBlock(i + 5, j + 5, k + 3, 44);
world.setBlock(i + 5, j + 5, k + 2, 44);
return true;
}
} /*=====End of Code=====*/
Das ist nicht alles oder ??
Code:
/*
===== 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;
}
|
|
|
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
|
|
|
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ß
|
|
|
07/10/2012, 16:48
|
#442
|
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.
|
|
|
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  ?
|
|
|
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.
|
|
|
07/11/2012, 13:51
|
#445
|
elite*gold: 0
Join Date: Jan 2012
Posts: 41
Received Thanks: 1
|
Hier der besagte Code
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 WorldGenMayaTemple()).generate(world, rand, RandPosX, RandPosY, RandPosZ);
}
}
public String getVersion()
{
return "1.2.5";
}
|
|
|
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?
|
|
|
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
|
|
|
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'
|
|
|
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
|
|
|
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
|
|
|
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.
|
|