capes url update

This commit is contained in:
2026-04-13 16:38:30 +02:00
parent 6b355a1f47
commit b476d156dc
9 changed files with 169 additions and 5 deletions

View File

@@ -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<OrbanEntity, BipedEntityModel<OrbanEntity>> {
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");
}
}

View File

@@ -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<? extends PathAwareEntity> 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";
}
}

View File

@@ -0,0 +1,3 @@
{
"parent": "minecraft:item/template_spawn_egg"
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "szar:item/bullet"
}
}

View File

@@ -0,0 +1,6 @@
{
"parent": "minecraft:item/generated",
"textures": {
"layer0": "szar:item/bullet"
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 970 B

View File

@@ -0,0 +1,23 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"NEN",
"EDN",
"NEN"
],
"key": {
"N": {
"item": "minecraft:netherite_ingot"
},
"D": {
"item": "minecraft:diamond"
},
"E": {
"item": "szar:ender_ingot"
}
},
"result": {
"item": "szar:super_diamond",
"count": 1
}
}

View File

@@ -0,0 +1,33 @@
{
"type": "minecraft:crafting_shaped",
"ingredients": [
{
"item": "minecraft:gunpowder"
},
{
"item": "minecraft:iron_nugget"
}
],
"pattern": [
"PPP",
"BBB",
"LRB"
],
"key": {
"P": {
"tag": "minecraft:planks"
},
"B": {
"item": "minecraft:iron_block"
},
"L": {
"item": "minecraft:leather"
},
"R": {
"item": "minecraft:redstone"
}
},
"result": {
"item": "szar:ak47"
}
}