This repository has been archived by the owner on Dec 19, 2020. It is now read-only.
-
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 new entity : cookie creeper
- Loading branch information
Showing
13 changed files
with
81 additions
and
4 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
11 changes: 11 additions & 0 deletions
11
src/main/java/io/github/squidcraft/entity/CookieCreeperEntity.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,11 @@ | ||
package io.github.squidcraft.entity; | ||
|
||
import net.minecraft.entity.EntityType; | ||
import net.minecraft.entity.mob.CreeperEntity; | ||
import net.minecraft.world.World; | ||
|
||
public class CookieCreeperEntity extends CreeperEntity { | ||
public CookieCreeperEntity(EntityType<? extends CreeperEntity> entityType, World world) { | ||
super(entityType, world); | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/main/java/io/github/squidcraft/entity/CookieCreeperRenderer.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,18 @@ | ||
package io.github.squidcraft.entity; | ||
|
||
import io.github.squidcraft.SquidCraft; | ||
import net.minecraft.client.render.entity.EntityRenderDispatcher; | ||
import net.minecraft.client.render.entity.MobEntityRenderer; | ||
import net.minecraft.client.render.entity.model.CreeperEntityModel; | ||
import net.minecraft.util.Identifier; | ||
|
||
public class CookieCreeperRenderer extends MobEntityRenderer<CookieCreeperEntity, CreeperEntityModel<CookieCreeperEntity>> { | ||
public CookieCreeperRenderer(EntityRenderDispatcher entityRenderDispatcher_1) { | ||
super(entityRenderDispatcher_1, new CreeperEntityModel<>(), 1); | ||
} | ||
|
||
@Override | ||
public Identifier getTexture(CookieCreeperEntity cookieCreeperEntity) { | ||
return new Identifier(SquidCraft.MODID+":textures/entity/cookie_creeper/creeper.png"); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package io.github.squidcraft.util; | ||
|
||
import io.github.squidcraft.SquidCraft; | ||
import io.github.squidcraft.entity.CookieCreeperEntity; | ||
import net.fabricmc.fabric.api.object.builder.v1.entity.FabricEntityTypeBuilder; | ||
import net.minecraft.entity.EntityCategory; | ||
import net.minecraft.entity.EntityDimensions; | ||
import net.minecraft.entity.EntityType; | ||
import net.minecraft.util.Identifier; | ||
import net.minecraft.util.registry.Registry; | ||
|
||
public class ModEntities { | ||
public static final EntityType<CookieCreeperEntity> COOKIE_CREEPER = | ||
Registry.register( | ||
Registry.ENTITY_TYPE, | ||
new Identifier(SquidCraft.MODID, "cookie_creeper"), | ||
FabricEntityTypeBuilder.create(EntityCategory.AMBIENT, CookieCreeperEntity::new).dimensions(EntityDimensions.fixed(1, 2)).build() | ||
); | ||
} |
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
3 changes: 3 additions & 0 deletions
3
src/main/resources/assets/squidcraft/models/item/cookie_creeper_spawn_egg.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,3 @@ | ||
{ | ||
"parent": "item/template_spawn_egg" | ||
} |
Binary file removed
BIN
-1.06 KB
src/main/resources/assets/squidcraft/textures/entity/bigger_chest/trapped.png
Binary file not shown.
Binary file removed
BIN
-1.04 KB
src/main/resources/assets/squidcraft/textures/entity/bigger_chest/trapped_left.png
Binary file not shown.
Binary file removed
BIN
-1.08 KB
...main/resources/assets/squidcraft/textures/entity/bigger_chest/trapped_right.png
Binary file not shown.
Binary file added
BIN
+1.47 KB
src/main/resources/assets/squidcraft/textures/entity/cookie_creeper/creeper.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.