Skip to content

Commit 6f2b934

Browse files
committed
1.5.9.13-10312019807
1 parent bd007ea commit 6f2b934

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+2074
-249
lines changed

ChangeLog.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
Epic Proportions Mod ChangeLog
22

3+
1.5.9.13
4+
- Changed Multitool Classes so it now uses one class the Universal class from my core mod
5+
- Added Scarecrow [Halloween Addon]
6+
- Added Kit Kat (Candy) [Halloween Addon]
7+
- Added Reeses Cup (Candy) [Halloween Addon]
8+
- Added Butterfinger (Candy) [Halloween Addon]
9+
- Added Milk Duds (Candy) [Halloween Addon]
10+
- Added MilkyWay (Candy) [Halloween Addon]
11+
- Added MilkyWay Midnight Dark (Candy) [Halloween Addon]
12+
- Added PayDay (Candy) [Halloween Addon]
13+
- Added Witches Cauldron [Halloween Addon]
14+
- Fixed some blocks not having correct localization in en_US.lang [Halloween Addon]
15+
- Changed jtrent238 to PopularMMOS in the mod name [Halloween Addon]
16+
317
1.5.9.12
418
- Fixed FuriousDestroyer Statue
519
- Fixed SuperGirlyGamer Statue

EntityJackOLantern.bbmodel

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

EntityJackOLantern.java

Lines changed: 422 additions & 0 deletions
Large diffs are not rendered by default.

EntityJackOLantern.png

442 KB
Loading

EntityPumpkinHead.png

442 KB
Loading

EntityScareCrow.bbmodel

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

EntityScareCrow.java

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
//Made with Blockbench
2+
//Paste this code into your mod.
3+
4+
import org.lwjgl.opengl.GL11;
5+
import net.minecraft.client.model.ModelBase;
6+
import net.minecraft.client.model.ModelBox;
7+
import net.minecraft.client.model.ModelRenderer;
8+
import net.minecraft.client.renderer.GlStateManager;
9+
import net.minecraft.entity.Entity;
10+
11+
public class EntityScareCrow extends ModelBase {
12+
private final ModelRenderer stand;
13+
private final ModelRenderer body;
14+
private final ModelRenderer hat;
15+
16+
public EntityScareCrow() {
17+
textureWidth = 64;
18+
textureHeight = 64;
19+
20+
stand = new ModelRenderer(this);
21+
stand.setRotationPoint(0.0F, 24.0F, 0.0F);
22+
stand.cubeList.add(new ModelBox(stand, 16, 25, -1.0F, -14.0F, -1.0F, 2, 14, 2, 0.0F, false));
23+
stand.cubeList.add(new ModelBox(stand, 0, 0, -4.0F, -1.0F, -4.0F, 8, 1, 8, 0.0F, false));
24+
25+
body = new ModelRenderer(this);
26+
body.setRotationPoint(0.0F, 24.0F, 0.0F);
27+
body.cubeList.add(new ModelBox(body, 0, 9, -4.0F, -17.0F, -2.0F, 8, 10, 4, 0.0F, false));
28+
body.cubeList.add(new ModelBox(body, 24, 25, 5.0F, -16.0F, -1.0F, 2, 7, 2, 0.0F, false));
29+
body.cubeList.add(new ModelBox(body, 24, 9, -7.0F, -16.0F, -1.0F, 2, 7, 2, 0.0F, false));
30+
body.cubeList.add(new ModelBox(body, 0, 3, 4.0F, -17.0F, -1.0F, 1, 1, 2, 0.0F, false));
31+
body.cubeList.add(new ModelBox(body, 0, 3, 5.0F, -17.0F, -1.0F, 1, 1, 2, 0.0F, false));
32+
body.cubeList.add(new ModelBox(body, 0, 0, -5.0F, -17.0F, -1.0F, 1, 1, 2, 0.0F, false));
33+
body.cubeList.add(new ModelBox(body, 0, 0, -6.0F, -17.0F, -1.0F, 1, 1, 2, 0.0F, false));
34+
body.cubeList.add(new ModelBox(body, 0, 23, -2.0F, -21.0F, -2.0F, 4, 4, 4, 0.0F, false));
35+
36+
hat = new ModelRenderer(this);
37+
hat.setRotationPoint(0.0F, 24.0F, 0.0F);
38+
hat.cubeList.add(new ModelBox(hat, 18, 18, -3.0F, -22.0F, -3.0F, 6, 1, 6, 0.0F, false));
39+
hat.cubeList.add(new ModelBox(hat, 24, 0, -2.0F, -24.0F, -2.0F, 4, 2, 4, 0.0F, false));
40+
}
41+
42+
@Override
43+
public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
44+
stand.render(f5);
45+
body.render(f5);
46+
hat.render(f5);
47+
}
48+
public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
49+
modelRenderer.rotateAngleX = x;
50+
modelRenderer.rotateAngleY = y;
51+
modelRenderer.rotateAngleZ = z;
52+
}
53+
}

EntityScareCrow.png

103 KB
Loading

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ buildscript {
1717

1818
apply plugin: 'forge'
1919

20-
version = "1.5.9.12"
20+
version = "1.5.9.13"
2121
group= "com.jtrent238.epicproportionsmod" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
2222
archivesBaseName = "epicproportionsmod"
2323

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
package com.jtrent238.coremod.items.tools;
2+
3+
import java.util.Set;
4+
5+
import com.google.common.collect.ImmutableSet;
6+
import com.google.common.collect.Sets;
7+
8+
import cpw.mods.fml.common.eventhandler.Event.Result;
9+
import net.minecraft.block.Block;
10+
import net.minecraft.block.material.Material;
11+
import net.minecraft.entity.player.EntityPlayer;
12+
import net.minecraft.entity.projectile.EntityLargeFireball;
13+
import net.minecraft.init.Blocks;
14+
import net.minecraft.item.EnumAction;
15+
import net.minecraft.item.ItemPickaxe;
16+
import net.minecraft.item.ItemStack;
17+
import net.minecraft.util.Vec3;
18+
import net.minecraft.world.World;
19+
import net.minecraftforge.common.MinecraftForge;
20+
import net.minecraftforge.event.entity.player.UseHoeEvent;
21+
22+
/**
23+
* @author jtrent238
24+
* jtrent238 Coremod Version: 1.0.0.4
25+
*`class: com.jtrent238.coremod.items.tools.ItemMultiTool
26+
*/
27+
28+
public class ItemMultiTool extends ItemPickaxe {
29+
30+
public ItemMultiTool(ToolMaterial material) {
31+
super(material);
32+
}
33+
34+
@Override
35+
public Set<String> getToolClasses(ItemStack stack) {
36+
return ImmutableSet.of("pickaxe", "spade");
37+
}
38+
39+
private static Set effectiveAgainst = Sets.newHashSet(new Block[] {
40+
Blocks.grass, Blocks.dirt, Blocks.sand, Blocks.gravel,
41+
Blocks.snow_layer, Blocks.snow, Blocks.clay, Blocks.farmland,
42+
Blocks.soul_sand, Blocks.mycelium});
43+
44+
@Override
45+
public float func_150893_a(ItemStack stack, Block block) {
46+
return effectiveAgainst.contains(block) ? this.efficiencyOnProperMaterial : super.func_150893_a(stack, block);
47+
}
48+
49+
public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ) {
50+
if (!player.canPlayerEdit(x, y, z, side, stack)) {
51+
return false;
52+
} else {
53+
UseHoeEvent event = new UseHoeEvent(player, stack, world, x, y, z);
54+
if (MinecraftForge.EVENT_BUS.post(event)) {
55+
return false;
56+
}
57+
58+
if (event.getResult() == Result.ALLOW) {
59+
stack.damageItem(1, player);
60+
return true;
61+
}
62+
63+
Block block = world.getBlock(x, y, z);
64+
65+
if (side != 0 && world.getBlock(x, y + 1, z).isAir(world, x, y + 1, z) && (block == Blocks.grass || block == Blocks.dirt)) {
66+
Block block1 = Blocks.farmland;
67+
world.playSoundEffect((double)((float)x + 0.5F), (double)((float)y + 0.5F), (double)((float)z + 0.5F), block1.stepSound.getStepResourcePath(), (block1.stepSound.getVolume() + 1.0F) / 2.0F, block1.stepSound.getPitch() * 0.8F);
68+
69+
if (world.isRemote) {
70+
return true;
71+
} else {
72+
world.setBlock(x, y, z, block1);
73+
stack.damageItem(1, player);
74+
return true;
75+
}
76+
} else {
77+
return false;
78+
}
79+
}
80+
}
81+
82+
/**
83+
* returns the action that specifies what animation to play when the items is being used
84+
*/
85+
public EnumAction getItemUseAction(ItemStack p_77661_1_)
86+
{
87+
return EnumAction.eat;
88+
}
89+
90+
/**
91+
* Called whenever this item is equipped and the right mouse button is pressed. Args: itemStack, world, entityPlayer
92+
*/
93+
public ItemStack onItemRightClick(ItemStack p_77659_1_, World p_77659_2_, EntityPlayer p_77659_3_)
94+
{
95+
p_77659_3_.setItemInUse(p_77659_1_, this.getMaxItemUseDuration(p_77659_1_));
96+
return p_77659_1_;
97+
}
98+
}

0 commit comments

Comments
 (0)