
vanilla______
Members-
Posts
25 -
Joined
-
Last visited
Everything posted by vanilla______
-
I'm new to forge so sorry if this is a bad question I couldn't find anything else, rn i'm trying to use mc.player.world.addBlockEvent(), I need pos, block, eventid, and eventparam, i'm wondering what event id and event param is and what I should put in there, thanks.
-
14.23.5.2854
-
do you know when this was added, working on a bit older version of forge.
-
how do I create a blockitemusecontext?
-
that's rly it, How can I place a block like a player would. rn I have position in inventory, specifically hotbar if that would be of any importance, thx.
-
1 I know, that's why I said that I only used them in not java 2 I know, i'm wondering if there a variable I can shorten them into, like creating public minecraft mc = Minecraft.getMinecraft(), I tried with double but it kept crashing for some reason
-
note: is there also a way to put these in a vector, by vector I mean multiple cords, like vector4<cord1, cord2, cord3, cord4> (only used these in unity c# so sry if I'm completely wrong with the syntax
-
i'm trying to label some cords, is there a way to do that, like "public cordinates x = player pos x" or something like that
-
item in hotbar checker (idk how to phrase it)
vanilla______ replied to vanilla______'s topic in Modder Support
just did some experimenting realized what's happening, your right. -
item in hotbar checker (idk how to phrase it)
vanilla______ replied to vanilla______'s topic in Modder Support
kiuo.23 When you use i, it won't use a variable called i, it will create a new intiger because i is what a new intiger is called, it's just a throwaway, Capital I is not i, so it won't create a new variable and will use a variable that is called I. -
item in hotbar checker (idk how to phrase it)
vanilla______ replied to vanilla______'s topic in Modder Support
thx for clarifying -
item in hotbar checker (idk how to phrase it)
vanilla______ replied to vanilla______'s topic in Modder Support
1 let's just ignore the first point it doesn't matter 2 well I don't know what your saying then, it seems like I'm doing what you said but I guess i'm not, could you go into a bit more detail thx, specifically wdym by "instances", thx. -
item in hotbar checker (idk how to phrase it)
vanilla______ replied to vanilla______'s topic in Modder Support
1 if I use i as an intiger, it create a new thing i bcs it's just what java does, if i use CAPITAL I it doesn't and I can use my custom variable 2 that's what it does (I think), it gets the stack in slot I, which will increase 9 times from 0-8, and then it sees if it's equal to "obi" aka new ItemStack(Blocks.OBSIDIAN) -
item in hotbar checker (idk how to phrase it)
vanilla______ replied to vanilla______'s topic in Modder Support
(1) i is a generic integer, capital I is not, so I made an int I because it was simple and easy to remember (2) I know, I assume getSTACKinslot would use an itemstack, I made a new itemstack(Blocks.OBSIDIAN) and named it obi. -
item in hotbar checker (idk how to phrase it)
vanilla______ replied to vanilla______'s topic in Modder Support
how would I do that in a for loop, I tried to solo it but i'm dum so I only got this for(int i = 0; i<9; i++) { I++; if(mc.player.inventory.getStackInSlot(I) == obi) { System.out.print("workin fine :D"); Debug.log("workin fine :D"); } } note: i isn't I, I is a int I made for this -
item in hotbar checker (idk how to phrase it)
vanilla______ replied to vanilla______'s topic in Modder Support
k -
item in hotbar checker (idk how to phrase it)
vanilla______ replied to vanilla______'s topic in Modder Support
yeah, but my problem rn is more of what obsidian is, like what do I put inside the for(___)? -
I need to check if obsidian is in your hotbar, rn I have mc.player.inventory.mainInventory.contains(o) but I have no Idea what to do from here. thx for the help.
-
how can I intercept and modify vanilla packets
vanilla______ replied to vanilla______'s topic in Modder Support
ok -
how can I intercept and modify vanilla packets
vanilla______ replied to vanilla______'s topic in Modder Support
I just was wondering lol, that's why people just google random things sometimes, because they are curious about it, plus if I rly need to use it for some reason I would know how to. -
how can I intercept and modify vanilla packets
vanilla______ replied to vanilla______'s topic in Modder Support
I know, but it's also intresting to learn about at least for me. -
how can I intercept and modify vanilla packets
vanilla______ replied to vanilla______'s topic in Modder Support
I'm just learning things, thought it might be helpful some time -
title says what it is, what's the best way to intercept packets.
-
1.12.2
-
I already have a base, it's this public void onEnable() { super.onEnable(); } public void onDisable() { } @SubscribeEvent public void KnockbackEvent(LivingKnockBackEvent event) { mc.player.knockBack(null, 0, 0, 0); } I'm trying to answer two main questions, is there another way to set the knockback strength to zero, and how can I make KnockbackEvent() run?