Everything posted by Animefan8888
-
[1.11.2] Server won't let me update my teleport position
Change the method Entity#setPositionAndUpdate to setPosition and use World#updateEntityWithOptionalForce wth the boolean parameter being true.
-
[1.12.2] Mod will not compile code
What does the command prompt say when you run this command.
-
[1.11.2] Server won't let me update my teleport position
I believe you are thinking of onItemUse instead here Draco. You shouldn't be calling this. Try only having this section.
-
Why it doesnt work?
This is a static initalizer. Don't do this. This is basically having IHasModel. This doesn't exactly say what isn't working, but I believe it is this part. You are attempting to register a new instance of the Item class. Which you have supplied no registry name, unlocalized name, etc etc.
-
"Fake" blocks surrounding chunk.
Nevermind it is probably better to do it in RenderWorldLastEvent. But I'm not sure haven't been able to sit down and look at stuff in a while. School just started up and today is my first day off since.
-
"Fake" blocks surrounding chunk.
RenderTickEvent
-
Custom Biomes not Generating Properly
@Andrew Murdza Please reformat your post do that you either use spoilers or the code block the button for which looks like <>
-
Doubts about creating Sword and Armor
It was made for compatibility, if mod one wants all swords to be used in there machine, then it will check if an Item is an instance of ItemSword.
-
[Redacted]
A String is an Object. So you dont need to convert a String to an Object.
-
[Redacted]
Cache the a list of IBlockStates on startup in either the initialization event or the postInitialization event in your @Mod class. This solves long break times, however it will take a little longer to load the game initially. On the other hand you could cache this when a block is broken so only the first block takes a while. I'd recommend the first one personally.
-
[1.12] Gradle and Eclipse can't descide on a name for a file
The name of the class needs to match the name of the file.
-
"Fake" blocks surrounding chunk.
A good way to do this is to kinda sit on the forums and read anything that sounds interesting or anything at all. Because people that help on here tend to have been modding for many years with forge or have worked on forge itself either with PRs on github or actually work on it like LexManos. Indeed. Bukkit as a API is much simpler to use because you cant do too much with it, also you are only ever interacting with the Server side of things, except for sending packets. There is also the limiting factor of not having access to all the Minecraft classes in it of it self. Most of this is actually in vanilla's code base. Forge has plenty of documentation on it's own stuff, but I will say it is difficult to learn how to do stuff like this without documentation or with out knowing where to look.
-
[1.12] Gradle and Eclipse can't descide on a name for a file
What is the java file called?
-
Can't remove task from my entity
I dont think that link works, could you post your code here on the forum using the <> button.
-
Double Jump
Ok. Which part of what he said did you not understand this part Or this part
- Double Jump
-
"Fake" blocks surrounding chunk.
You can read about a few things forge related. On the docs here. You will want to look at the "events" section if you dont know what these are or how to use them. RenderTickEvent is pretty self explanatory I think. I know about the BlockRenderDispatcher from experience. You won't find much comments on semi-advanced to advanced topics. You kinda need to look at the code and figure out what it does and what it is used for. Events are pretty straightforward as mentioned above you can read about them at the link. However rendering code is most of the time unique so that isn't really covered in tutorials you can pieces things together from some online resources scattered over the internet. But it will mostly be from experimenting and reading the already existing code.
-
"Fake" blocks surrounding chunk.
World#getChunkFromBlockPos And use the players position Multiply the chunk coordinates by sixteen and simply calculate from there(will give you one corner) Use the RenderTickEvent and Minecraft#getBlockRendererDispatcher() to render your block of choice.
-
Double Jump
What is that, it is appearing as a completely white box for me.
-
is it possible to change a var in another mod's class?
If you are making an addons for that mod and have access to the class then all you have to do is subscribe to the GuiOpenEvent and replace the Gui with your own Gui.
-
is it possible to change a var in another mod's class?
You should instead elaborate on your problem more, there might be a way to do what you want without having to do what you have stated.
-
Can someone help me?
It is no longer supported, it will never be supported again
-
Minecraft attack speed or attack cooldown
Don't worry as soon as 1.13 is out I will attempt a good modding tutorial for it, and hopefully the plague will end.
-
Minecraft attack speed or attack cooldown
Step one delete the class step to iterate through your items step three call ModelLoader.setCustomModelResourceLocation on all the items in your ModelRegistryEvent.
-
Can someone help me?
Doesnt exist in 1.10
IPS spam blocked by CleanTalk.