is there anyway to make a mob spawn in our custom structures ?
Thank you very Much for the tutorial
Yes, you can spawn villagers or mobs, how or which method are you using to generate. My tutorial, or the tool/utility by coolAlias. They are both easy to do, it just helps me help you...
Yes, you can spawn villagers or mobs, how or which method are you using to generate. My tutorial, or the tool/utility by coolAlias. They are both easy to do, it just helps me help you...
Thanks for the replay
another question : how to make the structure very rare ?
When you generate, use your Random variable to randomize it: 'if (random.nextFloat < 0.01 F) generate structure' will only generate 1 in 100 times called, on average, meaning 1 out of 100 chunks will have your structure if the other conditions are met. Change it to whatever number you want.
Check out the tool in my signature - the code is all up on github and the demo mod should give you an idea of what it can do.
When you generate, use your Random variable to randomize it: 'if (random.nextFloat < 0.01 F) generate structure' will only generate 1 in 100 times called, on average, meaning 1 out of 100 chunks will have your structure if the other conditions are met. Change it to whatever number you want.
Check out the tool in my signature - the code is all up on github and the demo mod should give you an idea of what it can do.
Yes, the guide I have up here is pretty basic and generalized, I actually wrote this for easy generation. I use coolAlias' utility/tool for my generation. I have much more control over my structures and the things I can add and do with them is much more efficient and precise. May seem intimidating at first, but read through it a few times and it is really all laid out nice and clear on how to use it...
I'm new to modding and I don't understand any of this. I've been trying for the past few hours with no success.
I know quite a bit of C++ but I can't seem to get any of this stuff down. The worst part is I don't even want to learn modding a whole lot. I just wanted to generate some structures onto my 3 person server.
I hate to seem so close minded, but I'm just looking for a way to generate larger structures. I've been using MCreator and it works great for me up until I realized you can only generate structures that use less than 1,600 blocks. I was able to use two Schematic to Java tools perfectly fine. ( #1 and #3 on your list) but I don't know what to do with the files afterwards. Would it be possible to get a sample mod that contains all the coding already done? Maybe just a mold for someone like me. Who would much rather just swap out the schematic's in the sample with my own, and maybe have the option to change the rarity of the structure? Thanks for reading.
Well, to be honest, I made that as simple as I could, all the code and there and I explain where it goes as well...MCreator is a nice cheat tool to use, but java is from what I hear very similar to C++. Perhaps post your code and I can help you with wherever you are lost...
That would be the best way, as a sample mod wont really explain that some structures of larger size have a code limit, and also impact how they generate on servers. Too large and too much lag can potentially bring down a server...
The Meaning of Life, the Universe, and Everything.
Join Date:
12/4/2013
Posts:
45
Minecraft:
bluecube2
Member Details
Sweet. Applause to you guys.
Anyway, would I be able to make a dimension that consists of a custom structure and nothing else?
I just need the structure to be created when the dimension is loaded...
Also if you could help me out with custom hooks for this version cause I have a boss in this tower and some knights I want to spawn into and possibly some loot in chest's.
After some time away I have returned to modding and can say this, to a point this tutorial still works. Exceptions are, minecraft no longer uses block IDs, world.setBlock is not the correct way of doing this(though I may be wrong on that partially), and there are API tools for generating single structures using schematic files. After I finish recreating my mod, I plan to come back and remake a few of my tutorials, and this may or may not be one of them. I do apologize for this, however, your best bet is to try and modify or update coolAlias' structure generation tool as ultimately after making this tutorial that was what I had used for my previous generation in my builder mod. It is an excellent tool for creating single structures as it has hooks for just about anything youd want to add to it.
hmmmmmm ok i hope you redo this tutorial and I will see if I can redo coolalias api to work. I just wish i could figure out why the dimension wont load after I register the world generator
That may be part of the issue, are you registering the world generator properly? I know there have been changes to the way some things have to be registered now. I have just begun to update and recreate my mod and as I am not doing world gen now, but mapgen instead I have not looked into that at all.
I followed several tutorials and they all say where they go and how to register them.
GameRegistry.registerWorldGenerator(new necromancerstower(), 0); this line of code is in preinit in my main mod class. Also i changed it to where my first schem file has the iworldgenerator in it. http://pastebin.com/SEHVrm1n
I wont have time to look into it anytime soon, not till I finish up the first version of the remake of my mod, maybe a few days. An easy test would be to just set a few vanilla blocks and generate that and see if all is working, then Then at least you will know if youre on the right track. Until then hang in there. I created this tutorial out of necessity when I was doing world gen. There were no real tutorials at that point so I feel your pain honestly. Keep plugging away, youll get it. If not I should be done in a few days like I said then I will take a look okay. Could you link me to the tutorials you have used for this so far?
Yes, you can spawn villagers or mobs, how or which method are you using to generate. My tutorial, or the tool/utility by coolAlias. They are both easy to do, it just helps me help you...
Find out how I generate....coolAlias...world structure generation and rotation tool...
Thanks for the replay
another question : how to make the structure very rare ?
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumCheck out the tool in my signature - the code is all up on github and the demo mod should give you an idea of what it can do.
Thank you very much
Find out how I generate....coolAlias...world structure generation and rotation tool...
I know quite a bit of C++ but I can't seem to get any of this stuff down. The worst part is I don't even want to learn modding a whole lot. I just wanted to generate some structures onto my 3 person server.
I hate to seem so close minded, but I'm just looking for a way to generate larger structures. I've been using MCreator and it works great for me up until I realized you can only generate structures that use less than 1,600 blocks. I was able to use two Schematic to Java tools perfectly fine. ( #1 and #3 on your list) but I don't know what to do with the files afterwards. Would it be possible to get a sample mod that contains all the coding already done? Maybe just a mold for someone like me. Who would much rather just swap out the schematic's in the sample with my own, and maybe have the option to change the rarity of the structure? Thanks for reading.
That would be the best way, as a sample mod wont really explain that some structures of larger size have a code limit, and also impact how they generate on servers. Too large and too much lag can potentially bring down a server...
Find out how I generate....coolAlias...world structure generation and rotation tool...
Anyway, would I be able to make a dimension that consists of a custom structure and nothing else?
I just need the structure to be created when the dimension is loaded...
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumMy problem is im using 1.7.10 and I am completely lost. None of these tutorials are helping. I am using the schematic to java file.
WorldGen:
http://pastebin.com/a2zVDBVN
Main Mod File (with some things removed):
http://pastebin.com/cEFiVk7V
One of the java files:
http://pastebin.com/iMrA8FJB
Also if you could help me out with custom hooks for this version cause I have a boss in this tower and some knights I want to spawn into and possibly some loot in chest's.
Check out my mod:http://minecraft.curseforge.com/projects/medieval-age
Day 75: Still searching for a 1.8 tutorial
After some time away I have returned to modding and can say this, to a point this tutorial still works. Exceptions are, minecraft no longer uses block IDs, world.setBlock is not the correct way of doing this(though I may be wrong on that partially), and there are API tools for generating single structures using schematic files. After I finish recreating my mod, I plan to come back and remake a few of my tutorials, and this may or may not be one of them. I do apologize for this, however, your best bet is to try and modify or update coolAlias' structure generation tool as ultimately after making this tutorial that was what I had used for my previous generation in my builder mod. It is an excellent tool for creating single structures as it has hooks for just about anything youd want to add to it.
Find out how I generate....coolAlias...world structure generation and rotation tool...
-
View User Profile
-
View Posts
-
Send Message
Curse Premiumhmmmmmm ok i hope you redo this tutorial and I will see if I can redo coolalias api to work. I just wish i could figure out why the dimension wont load after I register the world generator
Check out my mod:http://minecraft.curseforge.com/projects/medieval-age
That may be part of the issue, are you registering the world generator properly? I know there have been changes to the way some things have to be registered now. I have just begun to update and recreate my mod and as I am not doing world gen now, but mapgen instead I have not looked into that at all.
Find out how I generate....coolAlias...world structure generation and rotation tool...
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumI followed several tutorials and they all say where they go and how to register them.
GameRegistry.registerWorldGenerator(new necromancerstower(), 0); this line of code is in preinit in my main mod class. Also i changed it to where my first schem file has the iworldgenerator in it. http://pastebin.com/SEHVrm1n
Check out my mod:http://minecraft.curseforge.com/projects/medieval-age
I wont have time to look into it anytime soon, not till I finish up the first version of the remake of my mod, maybe a few days. An easy test would be to just set a few vanilla blocks and generate that and see if all is working, then Then at least you will know if youre on the right track. Until then hang in there. I created this tutorial out of necessity when I was doing world gen. There were no real tutorials at that point so I feel your pain honestly. Keep plugging away, youll get it. If not I should be done in a few days like I said then I will take a look okay. Could you link me to the tutorials you have used for this so far?
Find out how I generate....coolAlias...world structure generation and rotation tool...