Just to explain the for loop it dosnt matter what number you put if its less than 1 because what your saying is that if a is less than 1 do the brackets then increase by 1 which makes it more than 1 so it stops the loop
How I would do it would be to add an if bracket and generate a random number (Math.Random()) then if it's less than 0.1 do the generation.
//generate your cabbage
If you want the mojang way of doing it just find the pumpkin class
- Registered Member
Member for 5 years, 11 months, and 11 days
Last active Tue, Apr, 16 2013 10:47:51
- 0 Followers
- 437 Total Posts
- 143 Thanks
Aug 17, 2012AlexM posted a message on How to make flowers really rare + a question on mob spawning.Posted in: Modification Development
Aug 8, 2012scratch that, after thinking about it entities probably dont even have health since minecarts are included.Posted in: Modification Development
what about if you cast it as a player?
Aug 8, 2012public void onEntityCollidedWithBlock(World world, int i, int j, int k, Entity entity)Posted in: Modification Development
instead of just healing the player you can heal anything that collides with the block using entity.heal(4)
if you do this then it will heal anything that collides with the block but its better than nothing.
Aug 8, 2012not wishing to be "that guy" but if your just starting out in java, modding really isnt the best place to go. my recomendation is to go watch some java tutorials on youtube then come back and things will make alot more sense. even just knowing the basics will help you infinitly when your look at other peoples code and then you can learn from there.Posted in: Modification Development
now, to your problem, can you post some of your code? i'll see if i can help.
Feb 26, 2012Posted in: Minecraft ModsQuote from GodOfNeoN
Can I ask you how u did the transparant but colored textures? And can I use the mod in a texture pack?
you can make a texture for it, i don't really understand what use it in a texture pack means.
Feb 20, 2012AlexM posted a message on [Tool] Minecraft Mod Maker !!Now has MCP Auto-Setup!!Posted in: Minecraft ToolsQuote from CustomMapFan123
Its not in development anymore?
wow its such a good tool but it does have a few errors but he should still develop it :mellow.gif:
He is! don't worry! :biggrin.gif:
i'm still working on it in the background its just very slow because ive had exams, they're over now but i don't want to make any promises i can't keep so i dont know when the next version will be available.
hopefully it will be coded in java if i get round to it so it will be mac compatible.
for updates subscribe to me on youtube; http://www.youtube.com/EvilWizardGaming
Feb 20, 2012Posted in: Minecraft ModsQuote from Xentri420
Nice. Now you need to have an angelic chorus of HALLELUJAH like in Worms! That would be awesome.
I was going to do that :biggrin.gif: but as far as I know it requires an additional mod called sound mod or something so its probably too much hassle for most people.
i'll maybe make an additional download.Quote from Evilhydrochicken123
Really good mate! Well set out thread aswell. Im going to download it as soon as i get home. Would you like a spotlight on it?
A spotlight would be awesome, the more videos the better. :smile.gif:
Feb 19, 2012[center][size="7"]Holy Hand Grenade![/size][/center]Posted in: Minecraft Mods
[center][size="2"]The Holy Hand Grenade of antioch, from the film Monty Python and the holy grail, also appears in the game worms and now, MINECRAFT![/center]
download the current version here! [1.1]
[center]firstly, if you don't understand the reference of this mod i suggest you search it on youtube. this mod adds The holy hand grenade, holy nitroglycerine and the book of armament, so you can edit the stats. This mod requires modloader.[/center][/size]
[center]click on the book to open to GUI!
... or big ones!
[center][size="6"]Check out my other mods![/size][/center]
*Click the link below and then look to the top right hand corner there will be a five second countdown, after five seconds click "Skip Ad" DO NOT CLICK ANYTHING ELSE ON THE PAGE. I don't want people getting a virus :smile.gif:*
[size="5"]Holy Hand Grenade [1.1]: http://adf.ly/5cYvl[/size]
Please show you support for my mod by putting the banner in your sig.
[center]need a banner :smile.gif:
This item is licensed to AlexM and EvilWizardGaming.com under a creative commons licence.
All the work in this content is all my own.
[size="3"]You cannot under any cercumstances;[/size]
reuse content from this mod in other mods,
re-distribute this content,
edit the content in any way,
Proxy/Mirror any of my downloads.
write reviews with Screenshots,
Make videos using this content.
*as long as full credit is given to the owners (AlexM and EvilWizardGaming.com) and a link is posted directing users to this thread.[/center]
- To post a comment, please login or register a new account.