Everything posted by loordgek
-
Run minecraft from command line using access token
why do you want to make a custom launcher
-
[1.15.2] How to make it save the energy
override detectAndSendChanges in FurnaceGeneratorContainer
-
[1.15.2] How to make it save the energy
yes but do it only when you need to when you have a gui open
-
[1.15.2] How to make it save the energy
https://github.com/TallYate/CrudeTechMod/blob/faface21edc0ffbce67f8420d25d52a5c44e9b01/src/main/java/me/joshua/crudetechmod/Packets/GeneratorPacket.java#L82-L86 you dont need a channel for every packet just make 1 https://github.com/TallYate/CrudeTechMod/blob/faface21edc0ffbce67f8420d25d52a5c44e9b01/src/main/java/me/joshua/crudetechmod/Blocks/FurnaceGeneratorTileEntity.java#L66 https://github.com/TallYate/CrudeTechMod/blob/faface21edc0ffbce67f8420d25d52a5c44e9b01/src/main/java/me/joshua/crudetechmod/Blocks/FurnaceGeneratorTileEntity.java#L85 use stack.isEmpy()
-
[1.15.2] How to make it save the energy
why are you sending from client you should never do that because the client can be cheating ctx.get().getSender() the sender is only null on the client for that you can use Minecraft.Instance.player (can not be correct) why are you sending a packet from readNBT? the client doesnt save date so sending in readNBT to the server will reset the data on the server
-
[1.15.2] How do I create an item with power?
what on earth is this YOU HAVE ACCESS OVER THE ENERGY STORAGE
-
[1.15.2] How do I create an item with power?
https://github.com/TallYate/CrudeTechMod/blob/master/src/main/java/me/joshua/crudetechmod/Items/PowerArmor.java#L42 return a ICapabilitySerializable there
-
[1.15.2] How do I create an item with power?
IntNBT.valueOf
-
[1.15.2] How do I create an item with power?
WHAT Suppressing this will not work
-
[1.15.2] How do I create an item with power?
please note if you want to get power from other mods this will not work. no retrun in initCapabilities ICapabilitySerializable
-
AutoSmelt Effect
lol you copied the test mod
-
1.15 Tame Code
no you are expected to have (basic) java knowledge
- 1.15 Tame Code
-
[SOLVED] Can't register Tile ( Forge 1.15.2 - 31.2.0 )
should addListener throw a exception if you try to add a GenericListener ??
-
[SOLVED] Can't register Tile ( Forge 1.15.2 - 31.2.0 )
how your updated code
-
LazyOptional crushes casting to IEnergyStorage
show your new code
-
LazyOptional crushes casting to IEnergyStorage
dont cast use itemStack.getCapability(CapabilityEnergy.ENERGY).ifPresent(storage -> {do your stuff here})
-
LazyOptional crushes casting to IEnergyStorage
dont use AttachingCapabilitiesEvent override initCapablilty in your item class. you cant do that because items are singeton https://gist.github.com/e3986c6684e536940bba5494a51c13f2
-
LazyOptional crushes casting to IEnergyStorage
?? that is all false if you dont know if it has a cap use for interfacing w/ other tileEntitys energyCapabilitiesExternal.ifPesent(lambda goes here) if you know if you have a cap there use energyCapabilitiesExternal.orElsethrow(throw a runtimeexception there)
-
Forge API with MPC
what is a pvp client sounds like a cheat client
-
Forge API with MPC
what are you trying to do
-
Minecraft won't initialize
plz read the log it is in there
-
Modifier public not allowed here
@squidlex what on earth are you talking about @P4xil you are making a field inside a method you cant do that
-
[1.15.2] Reflection to Change Item#maxStackSize
extend the itemclass
-
[1.15.2] Reflection to Change Item#maxStackSize
what are you trying to do from a end user perspective
IPS spam blocked by CleanTalk.