Skip to content

Commit

Permalink
slightly increase seed drop chance and increment version number
Browse files Browse the repository at this point in the history
  • Loading branch information
Lothrazar committed Dec 1, 2015
1 parent c95c686 commit 4766d0c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ plugins {
id "net.minecraftforge.gradle.forge" version "2.0.2"
}
*/
version = "1.0"
group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "modid"
version = "1.8.8-1.0.1"
group= "com.lothrazar.samsbeetroot"
archivesBaseName = "SimpleBeetroot"


minecraft {
version = "1.8.8-11.15.0.1594-1.8.8"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,15 @@ public List<ItemStack> getDrops(IBlockAccess world, BlockPos pos, IBlockState st
Random rand = (world instanceof World) ? ((World)world).rand : new Random();
if (age >= GROWTHMAX)
{
int k = MAXDROPPED + fortune;
for (int i = 0; i < MAXDROPPED + fortune; i++)
{
if (rand.nextInt(15) <= age)
{
ret.add(new ItemStack(ItemBlockRegistry.beetrootItem));
int seeds = rand.nextInt(3);//0,1,2 only
if(seeds > 0)
ret.add(new ItemStack(ItemBlockRegistry.beetroot_seed,seeds));
//raised drop chances of getting a seed
//the range of seed drops is [1,2,3]
if(rand.nextInt(5) > 0)
ret.add(new ItemStack(ItemBlockRegistry.beetroot_seed,rand.nextInt(3)+1));
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/mcmod.info
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"modid": "samsbeetroot",
"name": "Simple Beetroot",
"description": "Beetroot inspired by MCPE.",
"version": "1.8-1.0.0",
"mcversion": "1.8",
"url": "https://github.com/PrinceOfAmber/SamsPowerups/releases",
"version": "1.0.1",
"mcversion": "1.8.8",
"url": "http://minecraft.curseforge.com/projects/simple-beetroot",
"updateUrl": "",
"authorList": [ "Lothrazar" ],
"credits": "Thanks to LexManos for the gradle video, and everyone on the forums",
Expand Down

0 comments on commit 4766d0c

Please sign in to comment.