-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a new weapon and add new character
- Loading branch information
Showing
21 changed files
with
120 additions
and
27 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
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
36 changes: 22 additions & 14 deletions
36
src/main/java/huige233/transcend/lib/TranscendDamageSources.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,22 +1,30 @@ | ||
package huige233.transcend.lib; | ||
|
||
import net.minecraft.entity.Entity; | ||
import net.minecraft.entity.EntityLivingBase; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.util.DamageSource; | ||
public class TranscendDamageSources { | ||
public static final DamageSource FLAWLESS = (new DamageSource( "flawless" ) ).setDamageIsAbsolute().setDamageBypassesArmor().setDamageIsAbsolute().setDamageAllowedInCreativeMode().setMagicDamage().setExplosion(); | ||
import net.minecraft.util.EntityDamageSource; | ||
import net.minecraft.util.EnumHand; | ||
import net.minecraft.util.text.ITextComponent; | ||
import net.minecraft.util.text.TextComponentTranslation; | ||
|
||
public static class DamageFLAWLESS extends DamageSource { | ||
public DamageFLAWLESS() | ||
{ | ||
super("flawless"); | ||
setDamageAllowedInCreativeMode(); | ||
setDamageBypassesArmor(); | ||
setDamageIsAbsolute(); | ||
setMagicDamage(); | ||
setExplosion(); | ||
public class TranscendDamageSources extends EntityDamageSource{ | ||
public TranscendDamageSources(Entity source) { | ||
super("flawless",source); | ||
} | ||
@Override | ||
public ITextComponent getDeathMessage(EntityLivingBase entity) { | ||
ItemStack itemstack = damageSourceEntity instanceof EntityLivingBase ? ((EntityLivingBase) damageSourceEntity).getHeldItem(EnumHand.MAIN_HAND) : null; | ||
String s = "death.attack.transcend"; | ||
int rando = entity.getEntityWorld().rand.nextInt(5); | ||
if(rando != 0) { | ||
s = s+ "." + rando; | ||
} | ||
return new TextComponentTranslation(s,entity.getDisplayName(),itemstack.getDisplayName()); | ||
} | ||
public boolean isUnblockable() | ||
{ | ||
return(true); | ||
@Override | ||
public boolean isDifficultyScaled() { | ||
return false; | ||
} | ||
} |
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
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/transcend/models/item/transcend_axe.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"parent": "item/handheld", | ||
"textures": { | ||
"layer0": "transcend:item/transcend_axe" | ||
"layer0": "transcend:items/transcend_axe" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/transcend/models/item/transcend_hoe.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"parent": "item/handheld", | ||
"textures": { | ||
"layer0": "transcend:item/transcend_hoe" | ||
"layer0": "transcend:items/transcend_hoe" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/transcend/models/item/transcend_pickaxe.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"parent": "item/handheld", | ||
"textures": { | ||
"layer0": "transcend:item/transcend_pickaxe" | ||
"layer0": "transcend:items/transcend_pickaxe" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/transcend/models/item/transcend_shovel.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"parent": "item/handheld", | ||
"textures": { | ||
"layer0": "transcend:item/transcend_shovel" | ||
"layer0": "transcend:items/transcend_shovel" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
src/main/resources/assets/transcend/models/item/transcend_sword.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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"parent": "item/handheld", | ||
"textures": { | ||
"layer0": "transcend:item/transcend_sword" | ||
"layer0": "transcend:items/transcend_sword" | ||
} | ||
} |
Binary file modified
BIN
-1.91 KB
(7.9%)
src/main/resources/assets/transcend/textures/items/flawless.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 modified
BIN
-217 Bytes
(89%)
src/main/resources/assets/transcend/textures/items/flawless_boots.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 modified
BIN
-1.05 KB
(66%)
src/main/resources/assets/transcend/textures/items/flawless_chestplate.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 modified
BIN
-218 Bytes
(89%)
src/main/resources/assets/transcend/textures/items/flawless_helmet.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 modified
BIN
-248 Bytes
(87%)
src/main/resources/assets/transcend/textures/items/flawless_leggings.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
+274 Bytes
src/main/resources/assets/transcend/textures/items/transcend_sword.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 modified
BIN
-1.95 KB
(39%)
src/main/resources/assets/transcend/textures/models/armor/flawless_layer_1.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 modified
BIN
-1.79 KB
(23%)
src/main/resources/assets/transcend/textures/models/armor/flawless_layer_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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