
MCrafterzz
Members-
Posts
285 -
Joined
-
Last visited
Everything posted by MCrafterzz
-
You need to change it to: @Override @Nullable public ItemStack onItemUseFinish(ItemStack stack, World worldIn, EntityLivingBase entityLiving) { YOUR CODE } I think nullable makes it so it can return null but I'm not totaly sure
-
.
-
anyone?
-
Any more replys?
-
You will need to create a new style like this: Style style = getStyle().setColor(TextFormatting.COLOUR); then you need to use it by adding this: setStyle(style);
-
[1.9.4][Solved] Making a custom wall without extending BlockWall
MCrafterzz replied to MCrafterzz's topic in Modder Support
Thank you very much, it worked! -
In modflowergenerator
-
You should use items/generated instead of builtin/generated
-
I am trying to generate flowers, but the problem is that I don't know how I should get the wright y-value. ModFlowerGenerator.java: http://pastebin.com/PQ2Rp6yx ModWorldGeneratorFlowers: http://pastebin.com/qexEeP6P
-
Search for tutorials. Fof information aboug more specific stuff sfite on these fofums but you need to tell your idea s otherwise we wont be able go help you
-
I'm sorry but I think the only way to change the model is json. Mojang made everything harder in 1.8+....
-
[1.9.4][SOLVED!] Colour codes in lang (Command)
MCrafterzz replied to MCrafterzz's topic in Modder Support
Worked thank you for everyones help -
[1.9.4][SOLVED!] Colour codes in lang (Command)
MCrafterzz replied to MCrafterzz's topic in Modder Support
I've added this, Ill se if it works: Style red = new Style().setColor(TextFormatting.DARK_RED); -
[1.9.4][SOLVED!] Colour codes in lang (Command)
MCrafterzz replied to MCrafterzz's topic in Modder Support
I've added this on it's own line: getStyle().setColor(TextFormatting.DARK_RED) but It sais create methoud getStyle -
[1.9.4][SOLVED!] Colour codes in lang (Command)
MCrafterzz replied to MCrafterzz's topic in Modder Support
Why do use # Style#Setcolor for example instead of Style.SetColour (Colour) -
[1.9.4][SOLVED!] Colour codes in lang (Command)
MCrafterzz replied to MCrafterzz's topic in Modder Support
I know what casts do it converts it to what your casting and I thought that would work because it wants a textcomponent. I didn't know that you should have done it on a new line. Now you have learned me so I won't make this mistake again. I have only made minecraft mods for a couple of weeks so I don't know how to do everything. Thank you for your reply -
Everyone conplains about unlocalized name but I have never had any problems with it
-
[1.9.4][SOLVED!] Colour codes in lang (Command)
MCrafterzz replied to MCrafterzz's topic in Modder Support
player.addChatComponentMessage((ITextComponent) new TextComponentTranslation("commands.mm.name").getStyle().setColor(TextFormatting.DARK_RED)); I changed it to this but then it said: A unknown error occured while attempting to perform this command -
[1.9.4][SOLVED!] Colour codes in lang (Command)
MCrafterzz replied to MCrafterzz's topic in Modder Support
Thank you very much -
If you have the same problem then change it to this: @Override public void execute(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException { if (sender instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer) sender; Style red = new Style().setColor(TextFormatting.DARK_RED); player.addChatComponentMessage(new TextComponentTranslation("commands.mm.name").setStyle(red)); } } I can't use coulour codes in lang, am I doing something wrong? commands.mm.name=§1Name: MCrafterzz Mod public class CommandMCrafterzzMod extends CommandBase { public CommandMCrafterzzMod() { } @Override public String getCommandName() { return "mcrafterzzmod"; } @Override public String getCommandUsage(ICommandSender sender) { return "mcrafterzzmod"; } @Override public void execute(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException { if (sender instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer) sender; player.addChatComponentMessage(new TextComponentTranslation("commands.mm.name")); player.addChatComponentMessage(new TextComponentTranslation("commands.mm.modid")); player.addChatComponentMessage(new TextComponentTranslation("commands.mm.version")); player.addChatComponentMessage(new TextComponentTranslation("commands.mm.minecraftversion")); player.addChatComponentMessage(new TextComponentTranslation("commands.mm.creator")); player.addChatComponentMessage(new TextComponentTranslation("commands.mm.updatepage")); } } @Override public boolean checkPermission(MinecraftServer server, ICommandSender sender) { return true; } @Override public List<String> getTabCompletionOptions(MinecraftServer server, ICommandSender sender, String[] args, BlockPos pos) { return null; } }
-
[1.9.4] Redstone connecting to custom bluestone
MCrafterzz replied to MCrafterzz's topic in Modder Support
What's breakpoints -
[1.9.4] Redstone connecting to custom bluestone
MCrafterzz replied to MCrafterzz's topic in Modder Support
Yes, but I still don't understand the debugger thing. I started it in debug mode and the console looked like before. I thanges to what windows it recomeded for debugging but it still didn't say anything about what methoud that were called, so a screenshot would really help. -
[1.9.4] Redstone connecting to custom bluestone
MCrafterzz replied to MCrafterzz's topic in Modder Support
Ok... very confusing could you possibly help me more exactly what I need to do. Thank you very much for your answer -
[1.9.4] Redstone connecting to custom bluestone
MCrafterzz replied to MCrafterzz's topic in Modder Support
I didn't find anything in the console so could you maybe send a example?