-
Posts
3624 -
Joined
-
Last visited
-
Days Won
58
Everything posted by Cadiboo
-
Pretty basic question, since 1.13 will be able to use java 9, will it also run on java 10? Wondering which JDK I should install.
-
Can I ask how you came to that conclusion?
-
Exact link please? I’m not a forge dev or anything but I haven’t seen that error before & anything about a ANSI stream seems wierd Id like to make sure it’s not a modified version or forge
-
Pixelmon is broken
-
Where did you download forge from?
-
You should probably run some type of antivirus on your computer
-
1.13 data packs, just wait a little while and all this will be handled (probably) automagically for you
-
Um AABB was written by Notch it’s not just a normal java method
-
Hate to tell you this but this is exactly when it’s your fault. Basically, if your modding minecraft, everything is your fault because minecraft was definitely NOT made to be modded. All of us have to deal with this unfortunate fact everyday. Basically we’re dealing with a dozen other peoples half-written code. You’ve probably figured out by now that even with forge, the end result isn’t pretty. I’m not trying to give you shit but you seem to not understand a lot about how the internals of me work, maybe looking at the concepts that underly it would be a good idea? Who am I kidding your probably gonna have to learn all this through trial and error, as I said minecraft is full of quirks
-
You might want to look at how java variable “copying” works aha
-
Trying to make a musket but wont shoot [1.12.2]
Cadiboo replied to JDtheman19's topic in Modder Support
I think this is probably where your trying to create an entity from an item. In vanilla ItemArrow has a special method to do this which is why the item is cast to it. If the item is not an ItemArrow you’ll get that error Im going to be re-writing and refactoring all my code when forge 1.13 comes out, but feel free to look at all my gun code here. (I have about 5 different guns in my mod) https://github.com/Cadiboo/WIPTech/tree/master/src/main/java/cadiboo/wiptech/item -
Trying to make a musket but wont shoot [1.12.2]
Cadiboo replied to JDtheman19's topic in Modder Support
In your custom entity class (your custom entity class will probably end up extending entityArrow due to some interesting bugs that happen if you don’t extend it) you can call onEntityUpdate() in your onUpdate method, instead of having to call super.onUpdate() These two examples of code might help you https://github.com/Cadiboo/WIPTech/blob/master/src/main/java/cadiboo/wiptech/entity/projectile/EntityParamagneticProjectile113.java https://github.com/Cadiboo/WIPTech/blob/master/src/main/java/cadiboo/wiptech/entity/projectile/EntityParamagneticProjectile.java -
Trying to make a musket but wont shoot [1.12.2]
Cadiboo replied to JDtheman19's topic in Modder Support
Also look at maxUseDuration or whatever it’s called. copying the entire ItemBow class and modifying it to shoot your projectile would be a good way to get familiar with the methods -
Trying to make a musket but wont shoot [1.12.2]
Cadiboo replied to JDtheman19's topic in Modder Support
Try setting a breakpoint at some code that you know 100% will be called (a registry event maybe) does the debugger pause the program? -
Trying to make a musket but wont shoot [1.12.2]
Cadiboo replied to JDtheman19's topic in Modder Support
Are you 100% sure you were using the debugger? What IDE are you using? -
Trying to make a musket but wont shoot [1.12.2]
Cadiboo replied to JDtheman19's topic in Modder Support
If u set up breakpoints and nothing happened... then none of your code is getting called -
@jredfox You might not have learned this yet, but the first rule of programming is: Its ALWAYS your fault. Minecraft is a lot of code by a lot of (mostly novice) programmers, there will be bugs in it. But I highly doubt that any code that gets a lot of use (like getEntitiesWithinAABB). You asked why there is a +1? It turns an AABB representing a point into an AABB with a size of one block.
-
Method Not Found From MinecraftServer.getPort()
Cadiboo replied to jredfox's topic in Modder Support
If people don’t know how something works... they should learn how it works before trying to change anything to do with it. Giving them software that tries to get around this will never solve the problem, especially if we’re dealing with stuff to deal with the internet, as everything on the internet is jury rigged -
This thread was a good read
-
Sorry for the bump, but is this still planned for 1.13?
-
How do you lock a topic?
-
Method Not Found From MinecraftServer.getPort()
Cadiboo replied to jredfox's topic in Modder Support
Before doing all this you should probably look at how IP works and also how ports & port forwarding works. There are quite a few nuances with this stuff, don’t forget that the internet is a massive mess and pretty much everything on it is jerry rigged. - Your IP could be localhost (AKA ::1 AKA 127.0.0.1) on single player or 192.168.0.X on LAN or your actual public IP in multiplayer. It all depends on who’s looking at the IP and from where. Also for the ports, your router could be listening on port 80 for incoming connections and forwarding it to port 500 on your machine which is forwarding it to port 25565 for Minecraft. Just saying that I think your going about this the wrong way, if I were doing it I’d hook into the initial handshakes with new clients and store information about them (IP they connected from, IP & Port they connected to = Sever IP & Port) in an Array and access that array whenever the data is needed by the command. You’d also probably want multiple commands too see local IP and Public IP for the server. Just my two cents hope it helps -
Do some debugging, find out how it generates that text to display and find a way to modify it. If your successful please post your results!
-
I will happily help with this
-
No, but you might want to talk to the Multi-MC people about how they allow users to install different forge versions