mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-22 13:10:04 +00:00
Added MarkovNameGenerator, Added Disable Body Part Feature
Two New Features >> + Added Markov Name Generate + Corrected Hide Body Parts
This commit is contained in:
1 parent
f155ef2481
commit
3a36be0ae4
47 files changed
+14517
-93
No files matched your search
@@ -12,6 +12,7 @@ public class GuiModelHead extends GuiModelInterface{
|
||||
|
||||
private GuiScreen parent;
|
||||
|
||||
private final String[] arrHead = new String[]{"gui.no","gui.yes"};
|
||||
private final String[] arrHeadwear = new String[]{"gui.no","gui.yes","Solid"};
|
||||
private final String[] arrHair = new String[]{"gui.no","Player","Long","Thin","Stylish","Ponytail"};
|
||||
private final String[] arrBeard = new String[]{"gui.no","Player","Standard","Viking","Long","Short"};
|
||||
@@ -33,6 +34,9 @@ public class GuiModelHead extends GuiModelInterface{
|
||||
|
||||
int y = guiTop + 20;
|
||||
|
||||
addButton(new GuiNpcButton(30, guiLeft + 50, y += 22, 70, 20, arrHead, playerdata.hideHead));
|
||||
addLabel(new GuiNpcLabel(30, "Hide", guiLeft, y + 5, 0xFFFFFF));
|
||||
|
||||
addButton(new GuiNpcButton(0, guiLeft + 50, y += 22, 70, 20, arrHeadwear, playerdata.headwear));
|
||||
addLabel(new GuiNpcLabel(0, "Headwear", guiLeft, y + 5, 0xFFFFFF));
|
||||
|
||||
@@ -108,6 +112,10 @@ public class GuiModelHead extends GuiModelInterface{
|
||||
playerdata.headwear = (byte) button.getValue();
|
||||
}
|
||||
|
||||
if(button.id == 30){
|
||||
playerdata.hideHead = (byte) button.getValue();
|
||||
}
|
||||
|
||||
if(button.id == 1){
|
||||
if(button.getValue() == 0)
|
||||
playerdata.removePart("hair");
|
||||
|
||||
Reference in new issue
Block a user