-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
0a0c074
commit 094e750
Showing
21 changed files
with
924 additions
and
326 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
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
3 changes: 3 additions & 0 deletions
3
src/generated/resources/assets/biomancy/models/item/flesh_cow_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": "minecraft:item/template_spawn_egg" | ||
} |
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
60 changes: 60 additions & 0 deletions
60
src/generated/resources/data/biomancy/loot_tables/biomancy/despoil/flesh_cow.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,60 @@ | ||
{ | ||
"type": "minecraft:entity", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"functions": [ | ||
{ | ||
"add": false, | ||
"count": { | ||
"type": "minecraft:uniform", | ||
"max": 3.0, | ||
"min": 1.0 | ||
}, | ||
"function": "minecraft:set_count" | ||
}, | ||
{ | ||
"count": { | ||
"type": "minecraft:uniform", | ||
"max": 1.0, | ||
"min": 0.0 | ||
}, | ||
"function": "minecraft:looting_enchant" | ||
} | ||
], | ||
"name": "biomancy:mob_sinew", | ||
"weight": 70 | ||
}, | ||
{ | ||
"type": "minecraft:item", | ||
"functions": [ | ||
{ | ||
"add": false, | ||
"count": { | ||
"type": "minecraft:uniform", | ||
"max": 1.0, | ||
"min": -1.0 | ||
}, | ||
"function": "minecraft:set_count" | ||
}, | ||
{ | ||
"count": { | ||
"type": "minecraft:uniform", | ||
"max": 1.0, | ||
"min": 0.0 | ||
}, | ||
"function": "minecraft:looting_enchant" | ||
} | ||
], | ||
"name": "biomancy:mob_gland", | ||
"weight": 40 | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
], | ||
"random_sequence": "biomancy:biomancy/despoil/flesh_cow" | ||
} |
49 changes: 49 additions & 0 deletions
49
src/generated/resources/data/biomancy/loot_tables/entities/flesh_cow.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,49 @@ | ||
{ | ||
"type": "minecraft:entity", | ||
"pools": [ | ||
{ | ||
"bonus_rolls": 0.0, | ||
"entries": [ | ||
{ | ||
"type": "minecraft:item", | ||
"functions": [ | ||
{ | ||
"add": false, | ||
"count": { | ||
"type": "minecraft:uniform", | ||
"max": 4.0, | ||
"min": 2.0 | ||
}, | ||
"function": "minecraft:set_count" | ||
}, | ||
{ | ||
"conditions": [ | ||
{ | ||
"condition": "minecraft:entity_properties", | ||
"entity": "this", | ||
"predicate": { | ||
"flags": { | ||
"is_on_fire": true | ||
} | ||
} | ||
} | ||
], | ||
"function": "minecraft:furnace_smelt" | ||
}, | ||
{ | ||
"count": { | ||
"type": "minecraft:uniform", | ||
"max": 1.0, | ||
"min": 0.0 | ||
}, | ||
"function": "minecraft:looting_enchant" | ||
} | ||
], | ||
"name": "minecraft:beef" | ||
} | ||
], | ||
"rolls": 1.0 | ||
} | ||
], | ||
"random_sequence": "biomancy:entities/flesh_cow" | ||
} |
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
13 changes: 13 additions & 0 deletions
13
src/main/java/com/github/elenterius/biomancy/client/render/entity/mob/FleshCowModel.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,13 @@ | ||
package com.github.elenterius.biomancy.client.render.entity.mob; | ||
|
||
import com.github.elenterius.biomancy.BiomancyMod; | ||
import com.github.elenterius.biomancy.entity.mob.FleshCow; | ||
import software.bernie.geckolib.model.DefaultedEntityGeoModel; | ||
|
||
public class FleshCowModel<T extends FleshCow> extends DefaultedEntityGeoModel<T> { | ||
|
||
public FleshCowModel() { | ||
super(BiomancyMod.createRL("mob/flesh_cow"), true); | ||
} | ||
|
||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/com/github/elenterius/biomancy/client/render/entity/mob/FleshCowRenderer.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,26 @@ | ||
package com.github.elenterius.biomancy.client.render.entity.mob; | ||
|
||
import com.github.elenterius.biomancy.entity.mob.FleshCow; | ||
import com.mojang.blaze3d.vertex.PoseStack; | ||
import net.minecraft.client.renderer.entity.EntityRendererProvider; | ||
import software.bernie.geckolib.cache.object.BakedGeoModel; | ||
import software.bernie.geckolib.renderer.GeoEntityRenderer; | ||
|
||
public class FleshCowRenderer<T extends FleshCow> extends GeoEntityRenderer<T> { | ||
|
||
public FleshCowRenderer(EntityRendererProvider.Context context) { | ||
super(context, new FleshCowModel<>()); | ||
shadowRadius = 0.7f; | ||
} | ||
|
||
@Override | ||
public void scaleModelForRender(float widthScale, float heightScale, PoseStack poseStack, T animatable, BakedGeoModel model, boolean isReRender, float partialTick, int packedLight, int packedOverlay) { | ||
if (animatable.isBaby()) { | ||
widthScale = 0.5f; | ||
heightScale = 0.5f; | ||
} | ||
|
||
super.scaleModelForRender(widthScale, heightScale, poseStack, animatable, model, isReRender, partialTick, packedLight, packedOverlay); | ||
} | ||
|
||
} |
Oops, something went wrong.