From b476d156dc8799f0f24cb6c1e15f49c3df8decdd Mon Sep 17 00:00:00 2001 From: TGGamesYT Date: Mon, 13 Apr 2026 16:38:30 +0200 Subject: [PATCH] capes url update --- capes.json | 10 +-- .../szar/client/MagyarEntityRenderer.java | 26 +++++++ .../java/dev/tggamesyt/szar/MagyarEntity.java | 67 ++++++++++++++++++ .../szar/models/item/magyar_spawn_egg.json | 3 + .../assets/szar/models/item/super_apple.json | 6 ++ .../szar/models/item/super_diamond.json | 6 ++ .../assets/szar/textures/item/super_apple.png | Bin 0 -> 970 bytes .../data/szar/recipes/super_apple.json | 23 ++++++ .../data/szar/recipes/super_diamond.json | 33 +++++++++ 9 files changed, 169 insertions(+), 5 deletions(-) create mode 100644 src/client/java/dev/tggamesyt/szar/client/MagyarEntityRenderer.java create mode 100644 src/main/java/dev/tggamesyt/szar/MagyarEntity.java create mode 100644 src/main/resources/assets/szar/models/item/magyar_spawn_egg.json create mode 100644 src/main/resources/assets/szar/models/item/super_apple.json create mode 100644 src/main/resources/assets/szar/models/item/super_diamond.json create mode 100644 src/main/resources/assets/szar/textures/item/super_apple.png create mode 100644 src/main/resources/data/szar/recipes/super_apple.json create mode 100644 src/main/resources/data/szar/recipes/super_diamond.json diff --git a/capes.json b/capes.json index 1bdc0db..ab43601 100644 --- a/capes.json +++ b/capes.json @@ -2,23 +2,23 @@ "capes": [ { "id": "tg", - "texture": "https://raw.githubusercontent.com/tggamesyt/szar/main/src/main/resources/assets/szar/textures/etc/tg_cape.png" + "texture": "Magyarhttps://gitea.tggamesyt.dev/tggamesyt/szar/raw/main/src/main/resources/assets/szar/textures/etc/tg_cape.png" }, { "id": "gabri", - "texture": "https://raw.githubusercontent.com/tggamesyt/szar/main/src/main/resources/assets/szar/textures/etc/gabri_cape.png" + "texture": "Magyarhttps://gitea.tggamesyt.dev/tggamesyt/szar/raw/main/src/main/resources/assets/szar/textures/etc/gabri_cape.png" }, { "id": "tg1", - "texture": "https://raw.githubusercontent.com/tggamesyt/szar/main/src/main/resources/assets/szar/textures/etc/tg_cape1.png" + "texture": "Magyarhttps://gitea.tggamesyt.dev/tggamesyt/szar/raw/main/src/main/resources/assets/szar/textures/etc/tg_cape1.png" }, { "id": "test", - "texture": "https://raw.githubusercontent.com/tggamesyt/szar/main/src/main/resources/assets/szar/textures/etc/testcape.png" + "texture": "Magyarhttps://gitea.tggamesyt.dev/tggamesyt/szar/raw/main/src/main/resources/assets/szar/textures/etc/testcape.png" }, { "id": "ciber", - "texture": "https://raw.githubusercontent.com/tggamesyt/szar/main/src/main/resources/assets/szar/textures/etc/ciber_cape.png" + "texture": "Magyarhttps://gitea.tggamesyt.dev/tggamesyt/szar/raw/main/src/main/resources/assets/szar/textures/etc/ciber_cape.png" } ] } \ No newline at end of file diff --git a/src/client/java/dev/tggamesyt/szar/client/MagyarEntityRenderer.java b/src/client/java/dev/tggamesyt/szar/client/MagyarEntityRenderer.java new file mode 100644 index 0000000..916957b --- /dev/null +++ b/src/client/java/dev/tggamesyt/szar/client/MagyarEntityRenderer.java @@ -0,0 +1,26 @@ +package dev.tggamesyt.szar.client; + +import dev.tggamesyt.szar.OrbanEntity; +import net.minecraft.client.render.entity.EntityRendererFactory; +import net.minecraft.client.render.entity.MobEntityRenderer; +import net.minecraft.client.render.entity.model.BipedEntityModel; +import net.minecraft.client.render.entity.model.EntityModelLayers; +import net.minecraft.util.Identifier; + +public class OrbanEntityRenderer + extends MobEntityRenderer> { + + public OrbanEntityRenderer(EntityRendererFactory.Context context) { + super( + context, + new BipedEntityModel<>(context.getPart(EntityModelLayers.PLAYER)), + 0.5F + ); + } + + @Override + public Identifier getTexture(OrbanEntity entity) { + return new Identifier("szar", "textures/entity/orban.png"); + } +} + diff --git a/src/main/java/dev/tggamesyt/szar/MagyarEntity.java b/src/main/java/dev/tggamesyt/szar/MagyarEntity.java new file mode 100644 index 0000000..a2a9b10 --- /dev/null +++ b/src/main/java/dev/tggamesyt/szar/MagyarEntity.java @@ -0,0 +1,67 @@ +package dev.tggamesyt.szar; + +import net.minecraft.entity.EntityData; +import net.minecraft.entity.EntityType; +import net.minecraft.entity.SpawnReason; +import net.minecraft.entity.ai.goal.MeleeAttackGoal; +import net.minecraft.entity.ai.goal.WanderAroundFarGoal; +import net.minecraft.entity.attribute.DefaultAttributeContainer; +import net.minecraft.entity.attribute.EntityAttributes; +import net.minecraft.entity.damage.DamageSource; +import net.minecraft.entity.mob.MobEntity; +import net.minecraft.entity.mob.PathAwareEntity; +import net.minecraft.item.ItemStack; +import net.minecraft.item.Items; +import net.minecraft.nbt.NbtCompound; +import net.minecraft.nbt.NbtList; +import net.minecraft.nbt.NbtString; +import net.minecraft.server.world.ServerWorld; +import net.minecraft.world.LocalDifficulty; +import net.minecraft.world.ServerWorldAccess; +import net.minecraft.world.World; +import org.jetbrains.annotations.Nullable; + +public class OrbanEntity extends PathAwareEntity implements Arrestable, HunPartie { + + public static boolean arrestable = false; + + public OrbanEntity(EntityType type, World world) { + super(type, world); + } + + @Override + protected void initGoals() { + this.goalSelector.add(2, new FollowLeaderWanderGoal(this, 1.0D, 6.0F)); + this.goalSelector.add(3, new WanderAroundFarGoal(this, 0.8D)); + this.goalSelector.add(1, new MeleeAttackGoal(this, 1.0, true)); + + this.targetSelector.add(1, new AggroOnHitRevengeGoal(this)); + this.targetSelector.add(2, new AttackEnemyHunGoal(this, "fidesz")); + } + + + public static DefaultAttributeContainer.Builder createAttributes() { + return MobEntity.createMobAttributes() + .add(EntityAttributes.GENERIC_MAX_HEALTH, 20.0) + .add(EntityAttributes.GENERIC_MOVEMENT_SPEED, 0.25) + .add(EntityAttributes.GENERIC_ATTACK_DAMAGE, 2); + } + + @Override + protected void dropLoot(DamageSource source, boolean causedByPlayer) { + var rand = this.getRandom(); + if (rand.nextFloat() < 0.01F) { + this.dropItem(Szar.HUN_DISC); + } + } + + @Override + public boolean isArrestable() { + return arrestable; + } + + @Override + public String getTeam() { + return "fidesz"; + } +} diff --git a/src/main/resources/assets/szar/models/item/magyar_spawn_egg.json b/src/main/resources/assets/szar/models/item/magyar_spawn_egg.json new file mode 100644 index 0000000..ddd1559 --- /dev/null +++ b/src/main/resources/assets/szar/models/item/magyar_spawn_egg.json @@ -0,0 +1,3 @@ +{ + "parent": "minecraft:item/template_spawn_egg" +} diff --git a/src/main/resources/assets/szar/models/item/super_apple.json b/src/main/resources/assets/szar/models/item/super_apple.json new file mode 100644 index 0000000..f8ca665 --- /dev/null +++ b/src/main/resources/assets/szar/models/item/super_apple.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "szar:item/bullet" + } +} diff --git a/src/main/resources/assets/szar/models/item/super_diamond.json b/src/main/resources/assets/szar/models/item/super_diamond.json new file mode 100644 index 0000000..f8ca665 --- /dev/null +++ b/src/main/resources/assets/szar/models/item/super_diamond.json @@ -0,0 +1,6 @@ +{ + "parent": "minecraft:item/generated", + "textures": { + "layer0": "szar:item/bullet" + } +} diff --git a/src/main/resources/assets/szar/textures/item/super_apple.png b/src/main/resources/assets/szar/textures/item/super_apple.png new file mode 100644 index 0000000000000000000000000000000000000000..7126abe3682da600f2d0822964f507bae5a3b817 GIT binary patch literal 970 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1quc4egmB5hW46K32*3xq68y`AMmI6}bgK)eHls47YguJQ{>uF6ifOi{PD zbs{}UK3djZt>nqvW6s4qD1-ZCERRDRmN*N_31y=g{ z<>lpi<;HsXMd|v6mX?v90`zGE;%B09k2gXakl<5wp<;IRwdJb`TMuUx6%m z$bfsxJbL1O;3=DsPo`;U?R3p{_2DCi~eMTv0EUD7;lDc^RYR?Cf}UY2Wv~vmeZ~yZ3(1=Y8yafAUKz*nMa0QjG6cV|-Ened5zk)AtwE8k9O0 zg%<@)*(I`6FIoK9kt@6(KQUPCWezrfa%Sge5iZts`>M{pUi+S*#e{e1l=CUm9arzr zzjge@1|HGY{b8^}WLMm6*UpO<@ zZr-#-S6qAjJ6`X4v}@gpkDP&vmp?5qQeBqk@mjR;S#tG@8((h+`_GVn@$BDX$$fWs zp4<}s@b5RV?%Aa&rL4J6RI>l>-QmZap8J>Wt|C3JuTamnD@JD#+_}XKlT;@ic>jrmCi~ ztEQOZh0WW)cFRkfK02NH=G3oz!?#KsF5A?ubaCdsbfM{m_tN;yN9y#i#-}cwBIBbn z;hlh=nRAAL+xzC}Q`U;!FS{kVA(`odg#dfPd3EUn>i^V#aGv