Everything posted by loordgek
-
[1.12.1] Making a mod that notify player when inventory is full
oops it is Itemstack good job you copy pasted code that does not work
-
[1.12.1] Making a mod that notify player when inventory is full
where, i cant see it ?
-
[1.12.1] Making a mod that notify player when inventory is full
where did you copy paste it from ??
-
[1.12.1] Making a mod that notify player when inventory is full
show your (new) code then ??????? you posted it you dont need documentation for what you are doing really
-
[1.12.1] Making a mod that notify player when inventory is full
learn java checkFreeSlot : { // this is not valid java for(int i=0; i > 36; i++) { // this does not work if(Minecraft.getMinecraft().player.inventory.getStackInSlot(i).equals(ItemStack.EMPTY)) { Minecraft.getMinecraft().player.sendMessage(new TextComponentString("Your inventory is full")); break checkFreeSlot; // this is not valid java } } you cant use equals on itemstack use itemstack.isEmpty put the inv check code inside the event method
-
[1.14.4] NetworkRegistry$ChannelBuilder.simpleChannel crush
yes
-
NetherEx requires lex?
https://www.curseforge.com/minecraft/mc-mods/libraryex
-
[1.14.4] NetworkRegistry$ChannelBuilder.simpleChannel crush
a i see. you should never do that 1 simpleChannel for each mod do it like so https://github.com/cpw/inventorysorter/blob/master/src/main/java/cpw/mods/inventorysorter/Network.java#L68-L80
-
[1.14.4] NetworkRegistry$ChannelBuilder.simpleChannel crush
what is this doing ????? i can read i promise ? do it like so https://github.com/cpw/inventorysorter/blob/master/src/main/java/cpw/mods/inventorysorter/Network.java#L68-L80
-
[ANSWERED]Custom Block Model can see through the world
no that is not how java works https://stackoverflow.com/questions/94361/when-do-you-use-javas-override-annotation-and-why
-
MinecraftForge Chroma Mod [move to mods]
can you put the mod on github ?? why are there 2 users, Tim Graupmann and LoganJohnG doing the same thing ?? team ?
-
AppliedEnergetics2 Crashing server?
you will not get support here it is not a forge issue and you are using catserver, catserver is illegal because it it shipping minecraft/forge code use sponge https://www.spongepowered.org/
-
[1.14.4] NetworkRegistry$ChannelBuilder.simpleChannel crush
post code
-
Ray Tracing and You
that is for the bedrock version of the game
-
LazyOptional
@Cadiboo never ever do that it makes it impossible to cache the capability https://github.com/MinecraftForge/MinecraftForge/blob/1.14.x/src/main/java/net/minecraftforge/common/util/LazyOptional.java#L294
-
[1.14.3] Syncing changes to capability
not really LazyOptional can be used for anything but it intended to be used by cabability ??????? https://github.com/MinecraftForge/MinecraftForge/commit/8e43dfa7a626387556e642f21aeb632e8e96cdba#diff-c3e85f4c50091d558045cf5dc0dac9b4 blame tterrag1098
-
[1.14.3] Syncing changes to capability
yes but '' orEmpty " is shorter return NOSE_CAP.orEmpty(cap, holder); vs if (cap == NOSE_CAP){ return holder.cast(); } return LazyOptional.empty();
-
[1.14.3] Syncing changes to capability
no the other way was fine @diesieben07 you really need to look at what "orEmpty" does, hint: it is in the name
-
[1.14.3] Syncing changes to capability
make a field holding the LazyOptional that makes it possible to cache the capability
-
[1.13.2] Recipe condition
dont use 1.13 go to 1.14.X
-
Help with auto-ejecting items
draco you never invalidate your lazycaps https://github.com/MinecraftForge/MinecraftForge/blob/1.14.x/src/main/java/net/minecraftforge/common/util/LazyOptional.java#L293
-
Obfuscation help
and what is so special about your mod, what are you making
-
1.13.2 Custom fluids.
https://github.com/MinecraftForge/MinecraftForge/pull/5983
-
Forge 1.14.4 not working at all
buy the game
-
Optifine, forge, and fabric mods
that is not true there are ways to get it to work but it is up to the Fabric team to make it work
IPS spam blocked by CleanTalk.