-
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.
- Loading branch information
1 parent
8605d91
commit fe65095
Showing
17 changed files
with
180 additions
and
19 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
src/main/generated/.cache/89b86ab0e66f527166d98df92ddbcf5416ed58f6
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,2 +1,2 @@ | ||
// 1.19.2 2024-04-26T22:04:29.1768104 Language | ||
3851efb5ab185dfcb547eb5bcb77baad65fa6623 assets\the_origin_of_magic\lang\en_us.json | ||
// 1.19.2 2024-04-27T17:58:45.6994048 Language | ||
e20b0ea5b300d1f01ca66c6725d1e0c00be855ef assets\the_origin_of_magic\lang\en_us.json |
2 changes: 1 addition & 1 deletion
2
src/main/generated/.cache/dc1d6e7286e7569a79007c10f809d49635ea1c49
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,2 +1,2 @@ | ||
// 1.19.2 2024-04-26T22:04:29.1788149 Block Loot Tables | ||
// 1.19.2 2024-04-27T17:58:45.6969072 Block Loot Tables | ||
fe57f13449a11436bbede8c37e01bd0d1cd87191 data\the_origin_of_magic\loot_tables\blocks\magic_workbench.json |
3 changes: 2 additions & 1 deletion
3
src/main/generated/.cache/f3798f81c7b6fecad2cbfec741314f8a66c0eca3
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
6 changes: 6 additions & 0 deletions
6
...main/generated/assets/the_origin_of_magic/models/item/magic_bullet_with_time_trigger.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": "minecraft:item/generated", | ||
"textures": { | ||
"layer0": "the_origin_of_magic:item/magic_bullet_with_time_trigger" | ||
} | ||
} |
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
63 changes: 63 additions & 0 deletions
63
...a/com/ictye/the_origin_of_magic/foundation/Entitys/Magics/MagicBulletWithTimeTrigger.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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
package com.ictye.the_origin_of_magic.foundation.Entitys.Magics; | ||
|
||
import com.ictye.the_origin_of_magic.Contents.AllParticle; | ||
import net.minecraft.entity.EntityType; | ||
import net.minecraft.entity.LivingEntity; | ||
import net.minecraft.entity.damage.DamageSource; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.item.Items; | ||
import net.minecraft.util.hit.EntityHitResult; | ||
import net.minecraft.world.World; | ||
|
||
public class MagicBulletWithTimeTrigger extends StdThrownMagic{ | ||
@Override | ||
public float getMagicRate() { | ||
return 2; | ||
} | ||
|
||
@Override | ||
public boolean hasNoGravity() { | ||
return true; | ||
} | ||
|
||
@Override | ||
public void tick() { | ||
super.tick(); | ||
world.addParticle(AllParticle.MAGIC_BULLET_PARTICLE, getX(), getY(), getZ(), 0, 0, 0); | ||
world.addParticle(AllParticle.MAGIC_BULLET_PARTICLE, getX()*1.2, getY()*1.2, getZ()*1.2, 0, 0, 0); | ||
world.addParticle(AllParticle.MAGIC_BULLET_PARTICLE, getX()*0.7, getY()*0.7, getZ()*0.7, 0, 0, 0); | ||
world.addParticle(AllParticle.MAGIC_BULLET_PARTICLE, this.getParticleX(0.5) * 1.3, this.getRandomBodyY()* 1.3, this.getParticleZ(0.5)* 1.3, 0, 0, 0); | ||
} | ||
|
||
@Override | ||
protected void onEntityHit(EntityHitResult entityHitResult) { | ||
if(prdRandom!=null){ | ||
prdRandom.setSP((float) (prdRandom.getP() + 0.5)); | ||
if(prdRandom.getBool()){ | ||
entityHitResult.getEntity().damage(DamageSource.thrownProjectile(this, this.getOwner()), 7); | ||
}else { | ||
entityHitResult.getEntity().damage(DamageSource.thrownProjectile(this, this.getOwner()), 4); | ||
} | ||
}else { | ||
entityHitResult.getEntity().damage(DamageSource.thrownProjectile(this, this.getOwner()), 4); | ||
} | ||
|
||
super.onEntityHit(entityHitResult); | ||
} | ||
|
||
@Override | ||
public ItemStack getStack() { | ||
return new ItemStack(Items.AIR); | ||
} | ||
public MagicBulletWithTimeTrigger(EntityType<? extends StdThrownMagic> entityType, World world) { | ||
super(entityType, world); | ||
this.ageCast = true; | ||
this.additionalTrigger = 1; | ||
} | ||
|
||
public MagicBulletWithTimeTrigger(EntityType<? extends StdThrownMagic> type, LivingEntity owner, World world) { | ||
super(type, owner, world); | ||
this.ageCast = true; | ||
this.additionalTrigger = 1; | ||
} | ||
} |
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
21 changes: 21 additions & 0 deletions
21
.../com/ictye/the_origin_of_magic/foundation/Items/Magic/MagicBulletWithTimeTriggerItem.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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.ictye.the_origin_of_magic.foundation.Items.Magic; | ||
|
||
import com.ictye.the_origin_of_magic.Contents.AllEntity; | ||
import com.ictye.the_origin_of_magic.foundation.Entitys.Magics.MagicBulletWithTimeTrigger; | ||
import com.ictye.the_origin_of_magic.foundation.Entitys.Magics.MagicInterfaces.StdMagicInterface; | ||
import com.ictye.the_origin_of_magic.foundation.Entitys.Magics.StdThrownMagic; | ||
import net.minecraft.entity.EntityType; | ||
import net.minecraft.entity.player.PlayerEntity; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.world.World; | ||
|
||
public class MagicBulletWithTimeTriggerItem extends StdMagicItem{ | ||
public MagicBulletWithTimeTriggerItem(Settings settings, EntityType<StdThrownMagic> entityType) { | ||
super(settings, entityType); | ||
} | ||
|
||
@Override | ||
public StdMagicInterface getMagic(PlayerEntity user, World world, ItemStack stack) { | ||
return new MagicBulletWithTimeTrigger(AllEntity.MAGIC_BULLET_WITH_TIME_TRIGGER_ENTITY_TYPE,user, world); | ||
} | ||
} |
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
Binary file added
BIN
+315 Bytes
...ces/assets/the_origin_of_magic/textures/item/magic_bullet_with_time_trigger.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 Byte
(100%)
...esources/assets/the_origin_of_magic/textures/item/magic_bullet_with_trigger.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 removed
BIN
-314 Bytes
...urces/assets/the_origin_of_magic/textures/item/magic_bullt_with_time_tigger.png
Binary file not shown.