Everything posted by Animefan8888
-
[1.8.9] Creating a txt file, and accessing with a command.
Load to a ArrayList from the File and write to that file, look up how to write to a txt file in Java.
-
[Solved] [1.8.9] Scrollwheel as input
Then you may want to look at this in your message. if(player.getItemInUse().getItem() == CustomItems.noiseFill && player.isSneaking()) {
-
[Solved] [1.8.9] Scrollwheel as input
I hope you mean is not sneaking or holding the item, but there since you are performing on the client again you should use EntityPlayerSP.
-
[Solved] [1.8.9] Scrollwheel as input
It is possible for the ItemStack to be null you need to check if it is != null
-
[Solved] [1.8.9] Scrollwheel as input
Don't use EntityPlayerSP for this if you are editing NBT or any data it must be handled by the server, which means use EntityPlayerMP and you can't use Minecraft...thePlayer. You should use... if (ctx.side == Side.SERVER) EntityPlayerMP player = ctx.getServerHandler().playerEntity; or something similar.
-
My capabilities REFUSE to work. 5 devs checked it and all failed to find a clue.
Does it error here as well? https://github.com/TeamWizardry/Wizardry/blob/master/src/main/java/com/teamwizardry/wizardry/common/core/EventHandler.java#L79 Also do you ever send the "syncing" packet?
-
My capabilities REFUSE to work. 5 devs checked it and all failed to find a clue.
Alright, try putting if (hasCapability(...)) before you call getCapability(...)
-
My capabilities REFUSE to work. 5 devs checked it and all failed to find a clue.
I mean't you should post it, guess I wasn't clear enough sorry.
-
My capabilities REFUSE to work. 5 devs checked it and all failed to find a clue.
I assume there was a log or crash?
-
[Solved] [1.8.9] Scrollwheel as input
I assume you have created a packet?
-
[Solved] [1.8.9] Scrollwheel as input
You actually need to get the players UUID so Minecraft holds a client side player variable inside itself.
-
[Solved] [1.8.9] Scrollwheel as input
You should register it in init. What you need to do is use packets to send the data to the server. If you don't know how to use packets here is a link. http://jabelarminecraft.blogspot.com/p/minecraft-forge.html The data should contain something like a boolean or a byte with either 0 or 1 to determine > or <
-
Applying a potion effect through armor?
You could make the variables before checking if they are != null then use them to check if they are not equal to null. Remove the println. That is all I can think of right now, everything else looks good.
-
Applying a potion effect through armor?
It is actually in Item.
-
Applying a potion effect through armor?
Exactly you are not overriding the "right" method(not any method at all), just a suggestion but whenever you are using a method that you didn't create in that class always put @Override. When it was like that it should not have worked at all in previous versions either.
-
Applying a potion effect through armor?
Try putting @Override over your method you should see the error. And if you don't does it print out the ItemStacks?
-
Applying a potion effect through armor?
What is the specific problem? No potion effect at all?
-
[SOLVED] GUI Graphics
Since I myself don't use IntelliJ the best I can do is give you links this looks like a good website for IntelliJ. https://www.jetbrains.com/help/idea/2016.2/debugging.html
-
[SOLVED] GUI Graphics
IDE's have debug mode with will allow you to run the game and make changes to the code in real time. So relocating a slot is not a problem. But if you really want to you would need to override basically every method/create your own to do this. Also you would need to extend Container/Gui... to be able to do that not something I recommend, but if you need to go for it.
-
[1.10.2] Calling code every tick an item renders
There is no such event or way I can think of, but you could always try what I said in my last post on your previous topic. http://www.minecraftforge.net/forum/index.php/topic,41518.0.html
-
Is there any changes to exporting mods in 1.10.2?
Typically you would want to edit these. version = "1.0" group= "com.yourname.modid" archivesBaseName = "modid"
-
Unable to set property PropertyDirection
You need to override IBlockState onBlockPlaced(...) also getStateFromMeta(...)
-
[1.10.2] Making a render pass be full-bright
I thought of a hacky way to do that, maybe. There is a Event Called RenderHandEvent/RenderSpecificHandEvent. You could theoretically render your Item there manually. I think, but you should put in a pull request anyway like something like RenderItemLayerEvent which will get called for every layer of a JSON model when it is rendered?
-
[Solved] [1.8.9] Scrollwheel as input
To register call MinecraftForge.EVENT_BUS.register(...); Doesn't matter right now, but it doesn't say it is or is not(at least for me). Make a new Class to put it in.
-
[1.10.2] Making a render pass be full-bright
If you read the quotes it completely overrides the elements tag, you need to go to your minecraft 1.10 jar file and find the item modrl json called generated and copy over its elements.
IPS spam blocked by CleanTalk.