-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dynamic essence container textures
- Loading branch information
Showing
44 changed files
with
249 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/java/mod/emt/harkenscythe/items/HSEssenceKeeperBlood.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,28 @@ | ||
package mod.emt.harkenscythe.items; | ||
|
||
import javax.annotation.Nullable; | ||
import mod.emt.harkenscythe.HarkenScythe; | ||
import net.minecraft.entity.EntityLivingBase; | ||
import net.minecraft.item.IItemPropertyGetter; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.util.ResourceLocation; | ||
import net.minecraft.world.World; | ||
import net.minecraftforge.fml.relauncher.Side; | ||
import net.minecraftforge.fml.relauncher.SideOnly; | ||
|
||
public class HSEssenceKeeperBlood extends HSEssenceKeeper | ||
{ | ||
public HSEssenceKeeperBlood() | ||
{ | ||
super(); | ||
setMaxDamage(40); | ||
addPropertyOverride(new ResourceLocation(HarkenScythe.MOD_ID, "level"), new IItemPropertyGetter() | ||
{ | ||
@SideOnly(Side.CLIENT) | ||
public float apply(ItemStack stack, @Nullable World worldIn, @Nullable EntityLivingBase entityIn) | ||
{ | ||
return 1.0F - ((float) getDamage(stack) / getMaxDamage(stack)); | ||
} | ||
}); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/mod/emt/harkenscythe/items/HSEssenceKeeperSoul.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,28 @@ | ||
package mod.emt.harkenscythe.items; | ||
|
||
import javax.annotation.Nullable; | ||
import mod.emt.harkenscythe.HarkenScythe; | ||
import net.minecraft.entity.EntityLivingBase; | ||
import net.minecraft.item.IItemPropertyGetter; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.util.ResourceLocation; | ||
import net.minecraft.world.World; | ||
import net.minecraftforge.fml.relauncher.Side; | ||
import net.minecraftforge.fml.relauncher.SideOnly; | ||
|
||
public class HSEssenceKeeperSoul extends HSEssenceKeeper | ||
{ | ||
public HSEssenceKeeperSoul() | ||
{ | ||
super(); | ||
setMaxDamage(20); | ||
addPropertyOverride(new ResourceLocation(HarkenScythe.MOD_ID, "level"), new IItemPropertyGetter() | ||
{ | ||
@SideOnly(Side.CLIENT) | ||
public float apply(ItemStack stack, @Nullable World worldIn, @Nullable EntityLivingBase entityIn) | ||
{ | ||
return 1.0F - ((float) getDamage(stack) / getMaxDamage(stack)); | ||
} | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
"textures": { | ||
"layer0": "harkenscythe:items/essence_keeper" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/harkenscythe/models/item/essence_keeper_blood_025.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "harkenscythe:items/essence_keeper_blood_025" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/harkenscythe/models/item/essence_keeper_blood_050.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "harkenscythe:items/essence_keeper_blood_050" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/harkenscythe/models/item/essence_keeper_blood_075.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "harkenscythe:items/essence_keeper_blood_075" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/harkenscythe/models/item/essence_keeper_blood_100.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "harkenscythe:items/essence_keeper_blood_100" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/harkenscythe/models/item/essence_keeper_soul_025.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "harkenscythe:items/essence_keeper_soul_025" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/harkenscythe/models/item/essence_keeper_soul_050.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "harkenscythe:items/essence_keeper_soul_050" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/harkenscythe/models/item/essence_keeper_soul_075.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "harkenscythe:items/essence_keeper_soul_075" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/harkenscythe/models/item/essence_keeper_soul_100.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "harkenscythe:items/essence_keeper_soul_100" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
"textures": { | ||
"layer0": "harkenscythe:items/essence_vessel" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/harkenscythe/models/item/essence_vessel_blood_025.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "harkenscythe:items/essence_vessel_blood_025" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/harkenscythe/models/item/essence_vessel_blood_050.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "harkenscythe:items/essence_vessel_blood_050" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/harkenscythe/models/item/essence_vessel_blood_075.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "harkenscythe:items/essence_vessel_blood_075" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/harkenscythe/models/item/essence_vessel_blood_100.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "harkenscythe:items/essence_vessel_blood_100" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/harkenscythe/models/item/essence_vessel_soul_025.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "harkenscythe:items/essence_vessel_soul_025" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/harkenscythe/models/item/essence_vessel_soul_050.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "harkenscythe:items/essence_vessel_soul_050" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/harkenscythe/models/item/essence_vessel_soul_075.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "harkenscythe:items/essence_vessel_soul_075" | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/main/resources/assets/harkenscythe/models/item/essence_vessel_soul_100.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "harkenscythe:items/essence_vessel_soul_100" | ||
} | ||
} |
Binary file added
BIN
+261 Bytes
src/main/resources/assets/harkenscythe/textures/items/essence_keeper_blood_025.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+262 Bytes
src/main/resources/assets/harkenscythe/textures/items/essence_keeper_blood_050.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+270 Bytes
src/main/resources/assets/harkenscythe/textures/items/essence_keeper_blood_075.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+268 Bytes
src/main/resources/assets/harkenscythe/textures/items/essence_keeper_blood_100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+266 Bytes
src/main/resources/assets/harkenscythe/textures/items/essence_keeper_soul_025.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+275 Bytes
src/main/resources/assets/harkenscythe/textures/items/essence_keeper_soul_050.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+303 Bytes
src/main/resources/assets/harkenscythe/textures/items/essence_keeper_soul_075.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+321 Bytes
src/main/resources/assets/harkenscythe/textures/items/essence_keeper_soul_100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+290 Bytes
src/main/resources/assets/harkenscythe/textures/items/essence_vessel_blood_025.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+296 Bytes
src/main/resources/assets/harkenscythe/textures/items/essence_vessel_blood_050.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+302 Bytes
src/main/resources/assets/harkenscythe/textures/items/essence_vessel_blood_075.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+317 Bytes
src/main/resources/assets/harkenscythe/textures/items/essence_vessel_blood_100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+315 Bytes
src/main/resources/assets/harkenscythe/textures/items/essence_vessel_soul_025.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+366 Bytes
src/main/resources/assets/harkenscythe/textures/items/essence_vessel_soul_050.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+422 Bytes
src/main/resources/assets/harkenscythe/textures/items/essence_vessel_soul_075.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+474 Bytes
src/main/resources/assets/harkenscythe/textures/items/essence_vessel_soul_100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.