Skip to content

Commit

Permalink
envoy 2
Browse files Browse the repository at this point in the history
  • Loading branch information
MBatt1 committed May 1, 2024
1 parent bb7c928 commit a37b9d4
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
import net.minecraft.entity.data.TrackedDataHandlerRegistry;
import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.entity.mob.EndermanEntity;
import net.minecraft.entity.mob.SkeletonEntity;
import net.minecraft.nbt.NbtCompound;
import net.minecraft.particle.ParticleTypes;
import net.minecraft.util.math.random.Random;
import net.minecraft.world.LocalDifficulty;
import net.minecraft.world.World;
Expand All @@ -35,6 +37,21 @@ protected void initDataTracker() {
protected void initEquipment(Random random, LocalDifficulty localDifficulty) {
}

public boolean isShaking() {
return this.getEnlightened() || super.isShaking();
}


public void tick() {
if (this.world.isClient && this.getEnlightened() && this.random.nextInt(3) == 0) {
this.world.addParticle(ParticleTypes.CLOUD,
this.getParticleX(0.2), (this.getY() + this.random.nextDouble() * 0.6) + 0.85, this.getParticleZ(0.2),
(this.random.nextDouble() - 0.5) * 0.05, -this.random.nextDouble() * 0.025, (this.random.nextDouble() - 0.5) * 0.05
);
}
super.tick();
}

public boolean tryAttack(Entity target) {
if (!super.tryAttack(target)) {
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ private static Settings misc() {
public static final AurelBucketItem AUREL_MILK_BUCKET = add("aurel_milk_bucket", new AurelBucketItem(aurelBucket));

public static final SpawnEggItem HELLENROSE_SPAWN_EGG = add("hellenrose_spawn_egg", new SpawnEggItem(ParadiseLostEntityTypes.HELLENROSE, 0x97DED4, 0x31897D, misc), spawnEggBehavior);
public static final SpawnEggItem ENVOY_SPAWN_EGG = add("envoy_spawn_egg", new SpawnEggItem(ParadiseLostEntityTypes.ENVOY, 0xc5b1af, 0x993c3c, misc), spawnEggBehavior);
public static final SpawnEggItem PARADISE_HARE_SPAWN_EGG = add("corsican_hare_spawn_egg", new SpawnEggItem(ParadiseLostEntityTypes.PARADISE_HARE, 0xC5D6ED, 0x82A6D9, misc), spawnEggBehavior);
public static final SpawnEggItem MOA_SPAWN_EGG = add("moa_spawn_egg", new SpawnEggItem(ParadiseLostEntityTypes.MOA, 0xC55C2E4, 0xB3A8BB, misc), spawnEggBehavior);

Expand Down
1 change: 1 addition & 0 deletions src/main/resources/assets/paradise_lost/lang/en_us.json
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@
"item.paradise_lost.cloud_vial": "Cloud Vial",

"item.paradise_lost.hellenrose_spawn_egg": "Hellenrose Spawn Egg",
"item.paradise_lost.envoy_spawn_egg": "Envoy Spawn Egg",
"item.paradise_lost.corsican_hare_spawn_egg": "Corsican Hare Spawn Egg",
"item.paradise_lost.moa_spawn_egg": "Moa Spawn Egg",

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"parent": "paradise_lost:item/template_spawn_egg"
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"type": "minecraft:entity",
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "minecraft:item",
"name": "paradise_lost:bloomed_calcite"
}
],
"conditions": [
{
"condition": "minecraft:random_chance",
"chance": 0.05
}
]
},
{
"rolls": 1,
"bonus_rolls": 0,
"entries": [
{
"type": "minecraft:item",
"name": "minecraft:bone",
"functions": [
{
"function": "minecraft:set_count",
"count": {
"type": "minecraft:uniform",
"min": 0,
"max": 2
},
"add": false
},
{
"function": "minecraft:looting_enchant",
"count": {
"type": "minecraft:uniform",
"min": 0,
"max": 1
}
}
]
}
]
}
]
}

0 comments on commit a37b9d4

Please sign in to comment.