mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-24 15:14:26 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8d455c329b | ||
|
|
23cae600de | ||
|
|
c1f57ba1ce | ||
|
|
2749637ed6 | ||
|
|
0608068276 | ||
|
|
06df9e015e | ||
|
|
2262639182 |
No files matched your search
+2
-2
@@ -17,9 +17,9 @@ buildscript {
|
||||
|
||||
apply plugin: 'forge'
|
||||
|
||||
version = "1.0"
|
||||
version = "1.01"
|
||||
group= "com.yourname.modid" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
archivesBaseName = "modid"
|
||||
archivesBaseName = "CustomNPC-Plus"
|
||||
|
||||
minecraft {
|
||||
version = "1.7.10-10.13.4.1614-1.7.10"
|
||||
|
||||
@@ -63,7 +63,7 @@ import noppes.npcs.entity.old.EntityNpcNagaFemale;
|
||||
import noppes.npcs.entity.old.EntityNpcNagaMale;
|
||||
import noppes.npcs.entity.old.EntityNpcSkeleton;
|
||||
|
||||
@Mod(modid = "customnpcs", name = "CustomNpcs", version = "1.7.10f")
|
||||
@Mod(modid = "customnpcs", name = "CustomNpcs", version = "1.0.1")
|
||||
public class CustomNpcs {
|
||||
|
||||
@ConfigProp(info = "Disable Chat Bubbles")
|
||||
|
||||
@@ -38,6 +38,7 @@ public class RenderNPCHumanMale extends RenderNPCInterface
|
||||
protected ModelNPCMale modelArmorChestplate;
|
||||
protected ModelNPCMale modelArmor;
|
||||
|
||||
protected final ModelNPCMale originalBipedMain;
|
||||
protected final ModelMPM steve = new ModelMPM(0, false);
|
||||
protected final ModelMPM alex = new ModelMPM(0, true);
|
||||
|
||||
@@ -45,6 +46,7 @@ public class RenderNPCHumanMale extends RenderNPCInterface
|
||||
{
|
||||
super(mainmodel, 0.5F);
|
||||
modelBipedMain = mainmodel;
|
||||
originalBipedMain = mainmodel;
|
||||
modelArmorChestplate = armorChest;
|
||||
modelArmor = armor;
|
||||
}
|
||||
@@ -132,6 +134,7 @@ public class RenderNPCHumanMale extends RenderNPCInterface
|
||||
((EntityCustomNpc) npc).modelData.armwear = 0;
|
||||
((EntityCustomNpc) npc).modelData.legwear = 0;
|
||||
this.mainModel = originalModel;
|
||||
this.modelBipedMain = originalBipedMain;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1699,6 +1699,7 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
|
||||
{
|
||||
return this.display.modelType;
|
||||
}
|
||||
|
||||
public void setModelType(int val)
|
||||
{
|
||||
this.display.modelType = val;
|
||||
|
||||
@@ -57,6 +57,25 @@ public class ScriptNpc extends ScriptLiving{
|
||||
npc.display.modelSize = size;
|
||||
npc.script.clientNeedsUpdate = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Returns the current npcs modelType of the NPC
|
||||
*/
|
||||
public int getModelType(){
|
||||
return npc.display.modelType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param modelType The modelType of the NPC. 0: Steve, 1: Steve64, 2: Alex
|
||||
*/
|
||||
public void setModelType(int modelType){
|
||||
if(modelType > 2)
|
||||
modelType = 2;
|
||||
else if(modelType < 0)
|
||||
modelType = 0;
|
||||
npc.display.modelType = modelType;
|
||||
npc.script.clientNeedsUpdate = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The npcs name
|
||||
@@ -566,7 +585,7 @@ public class ScriptNpc extends ScriptLiving{
|
||||
* @since 1.7.10c
|
||||
* @param resistance Explosion resistance (0-2) default is 1
|
||||
*/
|
||||
public void seExplosionResistance(float resistance){
|
||||
public void setExplosionResistance(float resistance){
|
||||
npc.stats.resistances.explosion = ValueUtil.correctFloat(resistance, 0, 2);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user